Skip to content

Commit

Permalink
fix lerna build generate multiple d.ts
Browse files Browse the repository at this point in the history
ezolenko/rollup-plugin-typescript2#72
add separate tsconfig in package dir
  • Loading branch information
kayw committed Jan 30, 2021
1 parent 2451126 commit b8f64a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/astore/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.build.json",
"include": ["src", "types", "../../types"]
}
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"lib": ["dom", "esnext"],
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"sourceMap": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
9 changes: 4 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"extends": "./tsconfig.build.json",
"include": ["packages", "types", "scripts", "example"],
"include": ["packages", "types", "scripts"],
"compilerOptions": {
"allowJs": false,
"baseUrl": ".",
"typeRoots": ["./node_modules/@types", "./types"],
"paths": {
"@astok/store": ["packages/astore/src"],
"$test/*": ["test/*"]
}
"@astok/store": ["packages/astore/src"]
},
"typeRoots": ["./node_modules/@types", "./types"]
}
}

0 comments on commit b8f64a1

Please sign in to comment.