Update build script
All checks were successful
CI / build (push) Successful in 21s

This commit is contained in:
2025-09-03 20:17:17 +01:00
parent 3d2c5ba45d
commit a91f1ee417
2 changed files with 15 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
"format": "prettier --write .", "format": "prettier --write .",
"test": "jest", "test": "jest",
"build": "tsc", "build": "tsc",
"postinstall": "tsc" "postinstall": "npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -1,18 +1,19 @@
{ {
"compilerOptions": { "compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */ "target": "esnext",
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, "module": "node20",
"module": "node16" /* Specify what module code is generated. */, "moduleResolution": "node16",
"moduleResolution": "node16" /* Specify how TypeScript looks up a file from a given module specifier. */, "rootDir": "src",
"rootDir": "src" /* Specify the root folder within your source files. */, "outDir": "dist",
"sourceMap": true /* Create source map files for emitted JavaScript files. */, "sourceMap": true,
"outDir": "dist" /* Specify an output folder for all emitted files. */, "declaration": true,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, "strict": true,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, "esModuleInterop": true,
"strict": true /* Enable all strict type-checking options. */, "forceConsistentCasingInFileNames": true,
"skipLibCheck": true /* Skip type checking all .d.ts files. */, "skipLibCheck": true,
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */, "isolatedModules": true,
"declaration": true "noEmitOnError": true
}, },
"include": ["src/**/*"],
"exclude": ["tests", "dist"] "exclude": ["tests", "dist"]
} }