Switch CommonJS configuration to module instead.

This commit is contained in:
Bauke 2022-10-05 18:31:53 +02:00
parent ee1d72362f
commit b6fb952580
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 10 additions and 13 deletions

View File

@ -3,6 +3,7 @@
"license": "AGPL-3.0-or-later",
"repository": "https://git.bauke.xyz/Holllo/re-nav",
"private": true,
"type": "module",
"scripts": {
"start": "vite build -m development --watch",
"start:chromium": "VITE_BROWSER=chromium pnpm start",
@ -11,7 +12,8 @@
"build:chromium": "VITE_BROWSER=chromium vite build && web-ext build -n re-nav-chromium-{version}.zip -s build/chromium",
"build:firefox": "VITE_BROWSER=firefox vite build && web-ext build -n re-nav-firefox-{version}.zip -s build/firefox",
"zip-source": "git archive --format zip --output web-ext-artifacts/re-nav-source.zip HEAD",
"test": "xo && stylelint 'source/**/*.scss' && tsc && c8 ava"
"test": "xo && stylelint 'source/**/*.scss' && tsc && c8 ava",
"test:snapshots": "c8 ava --update-snapshots"
},
"dependencies": {
"@holllo/migration-helper": "^0.1.3",
@ -40,14 +42,15 @@
"xo": "^0.52.3"
},
"ava": {
"extensions": [
"ts"
],
"extensions": {
"ts": "module"
},
"files": [
"tests/**/*.test.ts"
],
"require": [
"ts-node/register"
"nodeArguments": [
"--loader=ts-node/esm",
"--no-warnings"
],
"snapshotDir": "tests/snapshots"
},
@ -68,7 +71,6 @@
"files": "tests/**/*.test.ts",
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"import/extensions": "off",
"no-await-in-loop": "off"
}
}

View File

@ -15,10 +15,5 @@
"source/**/*.ts",
"tests/**/*.ts",
"vite.config.ts"
],
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
}
}
]
}