node: update ts build

This commit is contained in:
Pierric Cistac
2020-01-28 15:42:31 -05:00
parent 880cd7199b
commit d977d82a72
4 changed files with 12 additions and 3 deletions

View File

@ -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",

View File

@ -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. */

View File

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": [
"./**/*.test.ts"
]
}

View File

@ -2,5 +2,8 @@
"extends": "./tsconfig.json",
"exclude": [
"./**/*.test.ts"
]
],
"compilerOptions": {
"sourceMap": false
}
}