Skip to content

Commit

Permalink
chore: unify "tsconfig" in "core" package
Browse files Browse the repository at this point in the history
- change "tsconfig.build" to extend "tsconfig"
- add script "build:tests"
  • Loading branch information
hasezoey committed Oct 7, 2020
1 parent 12e2643 commit 35d96dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ tmp
# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# IntelliJ Files
*.iml
*.ipr
Expand All @@ -46,3 +43,4 @@ packages/mongodb-memory-server-core/lib
coverage
.nyc_output
package-lock.json
build
1 change: 1 addition & 0 deletions packages/mongodb-memory-server-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"scripts": {
"clean": "rimraf tmp lib coverage node_modules/.cache",
"build": "rimraf ./lib && tsc -p ./tsconfig.build.json",
"build:tests": "rimraf ./build && tsc -p ./tsconfig.json",
"watch": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --watchAll",
"coverage": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --coverage",
"lint": "npm run eslint && npm run tscheck",
Expand Down
17 changes: 2 additions & 15 deletions packages/mongodb-memory-server-core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"noEmit": false,
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": false,
"strict": true,
"lib": ["esnext"],
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"types": ["node", "jest"]
"outDir": "./lib"
},
"include": ["src/**/*"],
"exclude": ["**/__tests__"]
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-memory-server-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"outDir": "./build",
"noEmit": false,
"target": "es5",
"module": "commonjs",
Expand Down

0 comments on commit 35d96dc

Please sign in to comment.