diff --git a/package.json b/package.json index 5dc946a..2d4ec39 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "format": "prettier --write .", "test": "jest", "build": "tsc", - "postinstall": "tsc" + "postinstall": "npm run build" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index a582033..51d62dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }