Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Rely on lerna build order instead of tsc -b
Browse files Browse the repository at this point in the history
  • Loading branch information
NiGhTTraX committed May 25, 2019
1 parent 85ba73a commit 67712a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"scripts": {
"build": "npm run clean && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.build.tsbuildinfo",
"compile": "tsc -b tsconfig.build.json"
"clean": "rm -rf ./dist",
"compile": "tsc -p tsconfig.build.json"
},
"dependencies": {
"@nighttrax/foo": "^1.0.0"
Expand Down
11 changes: 2 additions & 9 deletions packages/bar/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.build.json",

"compilerOptions": {
"composite": true,
"declaration": true,
"outDir": "./dist",
"rootDir": "./src"
"outDir": "./dist"
},

"references": [{
"path": "../foo/tsconfig.build.json"
}],

"include": [
"src/**/*"
]
Expand Down
4 changes: 2 additions & 2 deletions packages/foo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"scripts": {
"build": "npm run clean && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.build.tsbuildinfo",
"compile": "tsc -b tsconfig.build.json"
"clean": "rm -rf ./dist",
"compile": "tsc -p tsconfig.build.json"
},
"devDependencies": {
"typescript": "~3.4.5"
Expand Down
7 changes: 2 additions & 5 deletions packages/foo/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.build.json",

"compilerOptions": {
"composite": true,
"declaration": true,
"outDir": "./dist",
"rootDir": "./src"
"outDir": "./dist"
},

"include": [
Expand Down

0 comments on commit 67712a2

Please sign in to comment.