mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
node: update ts build
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
"node": ">=10 < 11 || >=12 <14"
|
||||
},
|
||||
"scripts": {
|
||||
"dev-ts": "rm -rf dist && tsc -p tsconfig.prod.json && ln -s $(pwd)/lib/bindings dist/bindings",
|
||||
"dev-ts": "rm -rf dist && tsc -p tsconfig.lib.json && ln -s $(pwd)/lib/bindings dist/bindings",
|
||||
"dev-rs": "neon build",
|
||||
"dev": "npm run dev-rs && npm run dev-ts",
|
||||
"compile": "neon build --release",
|
||||
|
@ -13,7 +13,7 @@
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
"sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||
"outDir": "./dist", /* Redirect output structure to the directory. */
|
||||
"rootDir": "./lib", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
|
6
bindings/node/tsconfig.lib.json
Normal file
6
bindings/node/tsconfig.lib.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": [
|
||||
"./**/*.test.ts"
|
||||
]
|
||||
}
|
@ -2,5 +2,8 @@
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": [
|
||||
"./**/*.test.ts"
|
||||
]
|
||||
],
|
||||
"compilerOptions": {
|
||||
"sourceMap": false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user