From 0ab85ff5aa16be6244681c9f2055ce3d00033be0 Mon Sep 17 00:00:00 2001 From: Remus Mate Date: Sun, 7 May 2023 12:49:04 +1000 Subject: [PATCH] Compile files and directories whose names start with . --- .changeset/fifty-cougars-begin.md | 5 +++++ .../analysis/__snapshots__/project.test.ts.snap | 9 ++++++++- template/base/tsconfig.build.json | 9 ++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .changeset/fifty-cougars-begin.md diff --git a/.changeset/fifty-cougars-begin.md b/.changeset/fifty-cougars-begin.md new file mode 100644 index 000000000..e9fb53fe0 --- /dev/null +++ b/.changeset/fifty-cougars-begin.md @@ -0,0 +1,5 @@ +--- +'skuba': patch +--- + +build: When using esbuild, ensure files and directories whose names start with . are also compiled diff --git a/src/cli/configure/analysis/__snapshots__/project.test.ts.snap b/src/cli/configure/analysis/__snapshots__/project.test.ts.snap index 6aa8ba674..8acefde68 100644 --- a/src/cli/configure/analysis/__snapshots__/project.test.ts.snap +++ b/src/cli/configure/analysis/__snapshots__/project.test.ts.snap @@ -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", diff --git a/template/base/tsconfig.build.json b/template/base/tsconfig.build.json index ccce6cf7b..9b4e9a678 100644 --- a/template/base/tsconfig.build.json +++ b/template/base/tsconfig.build.json @@ -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/**/.*/**/.*" + ] }