update sw to the new templates
This commit is contained in:
parent
f6d5a2378a
commit
ae16425230
6 changed files with 12 additions and 22 deletions
|
|
@ -19,7 +19,7 @@ export default [
|
|||
},
|
||||
parserOptions: {
|
||||
parser: tsParser,
|
||||
project: ['./jsconfig.scripts.json'],
|
||||
project: ['./tsconfig.scripts.json'],
|
||||
sourceType: 'module',
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
8
packages/sw/tsconfig.scripts.json
Normal file
8
packages/sw/tsconfig.scripts.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "../shared/tsconfig.scripts.jsonc",
|
||||
"include": [
|
||||
"*.js",
|
||||
"*.ts"
|
||||
]
|
||||
}
|
||||
|
|
@ -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_",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue