Skip to content

Commit

Permalink
Build specifically for BSB core
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed Dec 20, 2023
1 parent 16bff1c commit 19131b4
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
1 change: 0 additions & 1 deletion nodejs/development/tsconfig-release.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"node_modules/**",
"src/plugins/*-test*/**/*.*",
"src/plugins/-*/**/*.*",
"src/plugins/service-*/**/*.*",
"src/tests/**/*.*"
]
}
2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dev": "nodemon --config ./nodemon.json",
"start": "node lib/cli.js",
"build": "rm -rfv ./lib && tsc && npm run testDev",
"build-release": "rm -rfv ./lib && tsc --p ./development/tsconfig-release.json",
"build-release": "rm -rfv ./lib && tsc --p ./tsconfig-release.json",
"xZpostinstall": "node ./postinstall.js",
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' node ./node_modules/nyc/bin/nyc.js --reporter json --reporter lcov ./node_modules/mocha/bin/mocha.js -r ts-node/register 'src/tests/**/*.ts' --reporter json --reporter-options output=junit.json",
Expand Down
44 changes: 44 additions & 0 deletions nodejs/tsconfig-release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"sourceMap": true,
"outDir": "lib",
"rootDir": "src",
"strict": true,
"target": "es2021",
"lib": ["es2021"],
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
},
"linterOptions": {
"exclude": [
"src/plugins/-*/**/*.*",
"src/tests/**/*.*"
]
},
"compileOnSave": true,
"include": [
"src"
],
"exclude": [
"node_modules/**",
"src/plugins/*-test*/**/*.*",
"src/plugins/-*/**/*.*",
"src/plugins/service-*/**/*.*",
"src/tests/**/*.*"
]
}

0 comments on commit 19131b4

Please sign in to comment.