Skip to content

Commit

Permalink
Exclude lib- directories from compilation (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jun 24, 2020
1 parent 407fb10 commit 5283618
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-papayas-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**configure, init**: Exclude `lib-` directories from compilation
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ By convention, this points to a `tsconfig.build.json` that excludes tests from y
"compilerOptions": {
"outDir": "lib"
},
"exclude": ["lib/**/*"]
"exclude": ["lib*/**/*"]
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ module.exports = {
\\"src\\": [\\"src\\"]
}
},
\\"exclude\\": [\\"lib/**/*\\"],
\\"exclude\\": [\\"lib*/**/*\\"],
\\"extends\\": \\"skuba/config/tsconfig.json\\"
}
",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/configure/modules/tsconfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('tsconfigModule', () => {
assertDefined(outputData);
expect(outputData.compilerOptions!.outDir).toBe('lib');
expect(outputData.compilerOptions!.target).toBe('ES2020');
expect(outputData.exclude).toContain('lib/**/*');
expect(outputData.exclude).toContain('lib*/**/*');
expect(outputData.exclude).toContain('.idea');
expect(outputData.extends).toBe('skuba/config/tsconfig.json');
expect(outputData.include).toBeUndefined();
Expand Down
2 changes: 1 addition & 1 deletion template/base/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"target": "ES2019"
},
"exclude": ["lib/**/*"],
"exclude": ["lib*/**/*"],
"extends": "skuba/config/tsconfig.json"
}
2 changes: 1 addition & 1 deletion template/oss-npm-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"outDir": "lib",
"target": "ES2019"
},
"exclude": ["lib/**/*"],
"exclude": ["lib*/**/*"],
"extends": "skuba/config/tsconfig.json"
}
2 changes: 1 addition & 1 deletion template/private-npm-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"outDir": "lib",
"target": "ES2019"
},
"exclude": ["lib/**/*"],
"exclude": ["lib*/**/*"],
"extends": "skuba/config/tsconfig.json"
}

0 comments on commit 5283618

Please sign in to comment.