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", "license": "AGPL-3.0-or-later",
"repository": "https://git.bauke.xyz/Holllo/re-nav", "repository": "https://git.bauke.xyz/Holllo/re-nav",
"private": true, "private": true,
"type": "module",
"scripts": { "scripts": {
"start": "vite build -m development --watch", "start": "vite build -m development --watch",
"start:chromium": "VITE_BROWSER=chromium pnpm start", "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: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", "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", "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": { "dependencies": {
"@holllo/migration-helper": "^0.1.3", "@holllo/migration-helper": "^0.1.3",
@ -40,14 +42,15 @@
"xo": "^0.52.3" "xo": "^0.52.3"
}, },
"ava": { "ava": {
"extensions": [ "extensions": {
"ts" "ts": "module"
], },
"files": [ "files": [
"tests/**/*.test.ts" "tests/**/*.test.ts"
], ],
"require": [ "nodeArguments": [
"ts-node/register" "--loader=ts-node/esm",
"--no-warnings"
], ],
"snapshotDir": "tests/snapshots" "snapshotDir": "tests/snapshots"
}, },
@ -68,7 +71,6 @@
"files": "tests/**/*.test.ts", "files": "tests/**/*.test.ts",
"rules": { "rules": {
"@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/triple-slash-reference": "off",
"import/extensions": "off",
"no-await-in-loop": "off" "no-await-in-loop": "off"
} }
} }

View File

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