Skip to content

Commit b467045

Browse files
committed
chore: fix svelte-check build
1 parent 62b31ff commit b467045

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/svelte-check/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"typescript": ">=5.0.0"
3838
},
3939
"scripts": {
40-
"build": "rollup -c && node ./dist/src/index.js --workspace ./test --tsconfig ./tsconfig.json",
41-
"prepublishOnly": "npm run build",
42-
"test": "npm run build"
40+
"build": "cd ../svelte2tsx && pnpm build && cd ../language-server && pnpm build && cd ../svelte-check && rollup -c && node ./dist/src/index.js --workspace ./test --tsconfig ./tsconfig.json",
41+
"prepublishOnly": "pnpm build",
42+
"test": "pnpm build"
4343
},
4444
"devDependencies": {
4545
"@rollup/plugin-commonjs": "^24.0.0",

packages/svelte-check/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ function getCompilerWarnings(opts: Record<string, any>) {
180180
}
181181
}
182182

183-
const diagnosticSources = ['js', 'css', 'svelte'] as const;
184-
type DiagnosticSource = (typeof diagnosticSources)[number];
183+
type DiagnosticSource = 'js' | 'css' | 'svelte';
184+
const diagnosticSources: DiagnosticSource[] = ['js', 'css', 'svelte'];
185185

186186
function getDiagnosticSources(opts: Record<string, any>): DiagnosticSource[] {
187187
const sources = opts['diagnostic-sources'];

0 commit comments

Comments
 (0)