Skip to content

Commit

Permalink
build: also build with tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber69 committed May 9, 2024
1 parent efb8d3f commit ae31ffb
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"files.autoSave": "onFocusChange",
"editor.rulers": [73]
"editor.rulers": [73],
"typescript.tsdk": "node_modules/typescript/lib"
}
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
"private": true,
"scripts": {
"start": "vite --open",
"build": "vite build",
"build": "tsc -p './src' && vite build",
"preview": "vite preview --open",
"ci": "npm run build"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"kiss-worker": "^2.0.0",
"typescript": "^5.4.5",
"vite": "^5.2.11"
}
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createCalculatorWorker } from "./createCalculatorWorker.ts";
import { createCalculatorWorker } from "./createCalculatorWorker.js";

// Start a new worker thread waiting for work.
const worker = await createCalculatorWorker();
Expand Down
14 changes: 14 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"@tsconfig/strictest/tsconfig",
"@tsconfig/node20/tsconfig"
],
"compilerOptions": {
"lib": ["dom", "es2023", "WebWorker"],
"noEmit": true,
"verbatimModuleSyntax": true
},
"include": [
"*.ts"
]
}

0 comments on commit ae31ffb

Please sign in to comment.