Skip to content

Commit b057f87

Browse files
authored
fix: npm run start with existing build artifacts (#3100)
Exclude build outputs (.js, .d.ts, .js.map) from the esbuild tsconfig so TypeScript doesn't try to overwrite them. Closes #2712 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3935154 commit b057f87

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`npm run start` no longer fails when TypeScript build artifacts
6+
are present in the working tree.

tsconfig.esbuild.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
"**/demo/*.d.ts",
1010
"**/_temp/**/*",
1111
"**/*.story.*",
12-
"**/test/*_e2e*"
12+
"**/test/*_e2e*",
13+
"elements/**/*.js",
14+
"elements/**/*.d.ts",
15+
"elements/**/*.js.map",
16+
"core/**/*.js",
17+
"core/**/*.d.ts",
18+
"core/**/*.js.map",
19+
"tools/**/*.js",
20+
"tools/**/*.d.ts",
21+
"tools/**/*.js.map"
1322
],
1423
"compilerOptions": {
1524
"allowJs": true,

0 commit comments

Comments
 (0)