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 .",
"test": "jest",
"build": "tsc",
"postinstall": "tsc"
"postinstall": "npm run build"
},
"repository": {
"type": "git",

View File

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