Skip to content

Commit f7a4843

Browse files
committed
chore: 📦 Update packages.
1 parent ae583b1 commit f7a4843

File tree

5 files changed

+38
-25
lines changed

5 files changed

+38
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev": "vite",
1212
"build": "vite build",
13-
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json"
13+
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
1414
},
1515
"devDependencies": {
1616
"@crxjs/vite-plugin": "2.0.0-beta.29",

src/manifest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const [major, minor, patch] = version
1010
// split into version parts
1111
.split(/[.-]/);
1212

13-
export default defineManifest(async (env) => ({
13+
export default defineManifest(async () => ({
1414
manifest_version: 3,
1515
name: name,
1616
description: description,

tsconfig.app.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "@tsconfig/svelte/tsconfig.json",
3+
"compilerOptions": {
4+
"target": "ESNext",
5+
"useDefineForClassFields": true,
6+
"module": "ESNext",
7+
"resolveJsonModule": true,
8+
/**
9+
* Typecheck JS in `.svelte` and `.js` files by default.
10+
* Disable checkJs if you'd like to use dynamic types in JS.
11+
* Note that setting allowJs false does not prevent the use
12+
* of JS in `.svelte` files.
13+
*/
14+
"allowJs": true,
15+
"checkJs": true,
16+
"isolatedModules": true,
17+
"moduleDetection": "force"
18+
},
19+
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"]
20+
}

tsconfig.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
{
2-
"extends": "@tsconfig/svelte/tsconfig.json",
3-
"compilerOptions": {
4-
"target": "ESNext",
5-
"useDefineForClassFields": true,
6-
"module": "ESNext",
7-
"resolveJsonModule": true,
8-
/**
9-
* Typecheck JS in `.svelte` and `.js` files by default.
10-
* Disable checkJs if you'd like to use dynamic types in JS.
11-
* Note that setting allowJs false does not prevent the use
12-
* of JS in `.svelte` files.
13-
*/
14-
"allowJs": true,
15-
"checkJs": true,
16-
"isolatedModules": true,
17-
"moduleDetection": "force"
18-
},
19-
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
20-
// https://github.com/vitejs/vite/issues/18139
21-
"references": [{ "path": "./tsconfig.node.json" }]
2+
"files": [],
3+
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
224
}

tsconfig.node.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
43
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
4+
"target": "ES2022",
5+
"lib": ["ES2023"],
66
"module": "ESNext",
7+
"skipLibCheck": true,
8+
9+
/* Bundler mode */
710
"moduleResolution": "bundler",
8-
"strict": true,
11+
"allowImportingTsExtensions": true,
12+
"isolatedModules": true,
13+
"moduleDetection": "force",
914
"noEmit": true,
15+
16+
/* Linting */
17+
"strict": true,
18+
"noUnusedLocals": true,
19+
"noUnusedParameters": true,
20+
"noFallthroughCasesInSwitch": true,
1021
"noUncheckedSideEffectImports": true
1122
},
1223
"include": ["vite.config.ts", "src/manifest.config.ts", "package.json"]

0 commit comments

Comments
 (0)