Skip to content

Commit

Permalink
Use TypeScript 3's project references
Browse files Browse the repository at this point in the history
  • Loading branch information
parzhitsky committed Jan 30, 2019
1 parent 50afae2 commit ca47c1f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"lint": "tslint --project . --format stylish",
"test": "npx mocha -r ./node_modules/ts-node/register ./test/**/*.spec.ts",
"build": "npx tsc",
"build": "npx tsc --build src",
"clean": "npx rimraf dist",
"rebuild": "npm run clean && npm run build",
"dev": "npm run build -- --watch",
Expand Down
6 changes: 6 additions & 0 deletions src/tsconfig.json
@@ -0,0 +1,6 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"composite": true
}
}
6 changes: 6 additions & 0 deletions test/tsconfig.json
@@ -0,0 +1,6 @@
{
"extends": "../tsconfig",
"references": [
{ "path": "../src" }
]
}
3 changes: 0 additions & 3 deletions tsconfig.json
Expand Up @@ -10,7 +10,4 @@
"stripInternal": true,
"downlevelIteration": true,
},
"include": [
"./src",
],
}

0 comments on commit ca47c1f

Please sign in to comment.