chore: simplify build configs
This commit is contained in:
4
pkgs/pow-captcha/.npmignore
Normal file
4
pkgs/pow-captcha/.npmignore
Normal file
@@ -0,0 +1,4 @@
|
||||
*
|
||||
!/dist/*
|
||||
!/src/*
|
||||
/src/*.spec.ts
|
||||
@@ -1,15 +1,23 @@
|
||||
{
|
||||
"name": "@pow-captcha/pow-captcha",
|
||||
"version": "0.0.0",
|
||||
"main": "dist/lib.js",
|
||||
"source": "src/lib.ts",
|
||||
"module": "dist/lib.js",
|
||||
"type": "module",
|
||||
"types": "dist/lib.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"build": "tsc",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"base64-js": "^1.5.1",
|
||||
"zod": "^4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.0.4",
|
||||
"@swc/jest": "^0.2.38",
|
||||
"jest": "^30.0.3",
|
||||
"typescript": "^5.8.3",
|
||||
"@jest/globals": "^30.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import * as server from "./server";
|
||||
import * as solver from "./solver";
|
||||
import * as wire from "./wire";
|
||||
|
||||
export { server, solver, wire };
|
||||
export * as server from "./server";
|
||||
export * as solver from "./solver";
|
||||
export * as wire from "./wire";
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.build.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["**/*.spec.ts"]
|
||||
}
|
||||
@@ -1,4 +1,26 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"include": ["src/**/*"]
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"resolveJsonModule": true,
|
||||
|
||||
"strict": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
|
||||
/* Experimental Options */
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": false,
|
||||
|
||||
"incremental": false,
|
||||
"noEmit": false,
|
||||
"target": "es2020",
|
||||
"module": "es2020",
|
||||
"moduleResolution": "bundler",
|
||||
"sourceMap": true,
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true,
|
||||
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["**/*.spec.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user