Skip to content

Commit

Permalink
Compile files and directories whose names start with .
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed May 7, 2023
1 parent b7d1571 commit b3c68ed
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-cougars-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

When using esbuild, ensure files and directories whose names start with . are also compiled
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ export {};
"data": "{
"exclude": ["**/__mocks__/**/*", "**/*.test.ts", "src/testing/**/*"],
"extends": "./tsconfig.json",
"include": ["src/**/*"]
"include": [
"src/**/*",
// Must be explicit about including dotfiles otherwise TypeScript ignores them
// https://github.com/microsoft/TypeScript/blob/v5.0.4/src/compiler/utilities.ts#L8828-L8830
"src/**/.*",
"src/**/.*/**/*",
"src/**/.*/**/.*"
]
}
",
"operation": "A",
Expand Down
9 changes: 8 additions & 1 deletion template/base/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"exclude": ["**/__mocks__/**/*", "**/*.test.ts", "src/testing/**/*"],
"extends": "./tsconfig.json",
"include": ["src/**/*"]
"include": [
"src/**/*",
// Must be explicit about including dotfiles otherwise TypeScript ignores them
// https://github.com/microsoft/TypeScript/blob/v5.0.4/src/compiler/utilities.ts#L8828-L8830
"src/**/.*",
"src/**/.*/**/*",
"src/**/.*/**/.*"
]
}

0 comments on commit b3c68ed

Please sign in to comment.