update sw to the new templates

This commit is contained in:
Hazelnoot 2025-10-07 00:35:38 -04:00
parent f6d5a2378a
commit ae16425230
6 changed files with 12 additions and 22 deletions

View file

@ -19,7 +19,7 @@ export default [
},
parserOptions: {
parser: tsParser,
project: ['./jsconfig.scripts.json'],
project: ['./tsconfig.scripts.json'],
sourceType: 'module',
tsconfigRootDir: import.meta.dirname,
},

View file

@ -1,16 +0,0 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../shared/jsconfig.node.json",
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"./src/@types"
]
},
"include": [
"*.js"
],
"exclude": [
"node_modules"
]
}

View file

@ -7,7 +7,7 @@
"typecheck-all": "pnpm run --no-bail typecheck:sw && pnpm run --no-bail typecheck:scripts",
"typecheck": "pnpm run typecheck:sw && pnpm run typecheck:scripts",
"typecheck:sw": "tsc -p tsconfig.sw.json --noEmit",
"typecheck:scripts": "tsc -p jsconfig.scripts.json --noEmit",
"typecheck:scripts": "tsc -p tsconfig.scripts.json --noEmit",
"eslint": "eslint --quiet --cache -c eslint.config.js",
"lint": "pnpm typecheck && pnpm eslint"
},

View file

@ -4,6 +4,6 @@
// WebStorm only reads one tsconfig per directory, so this tricks it into loading both.
"references": [
{ "path": "./tsconfig.sw.json" },
{ "path": "./jsconfig.scripts.json" }
{ "path": "./tsconfig.scripts.json"}
]
}

View file

@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../shared/tsconfig.scripts.jsonc",
"include": [
"*.js",
"*.ts"
]
}

View file

@ -1,11 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../shared/tsconfig.webworker.json",
"extends": "../shared/tsconfig.webworker.jsonc",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"inlineSources": true,
"removeComments": false,
"baseUrl": ".",
"outDir": "../../built/_sw_dist_",