diff --git a/common/changes/@rushstack/heft-node-rig/copilot-add-lib-dts-lib-esm-cleanfiles_2025-11-07-23-47.json b/common/changes/@rushstack/heft-node-rig/copilot-add-lib-dts-lib-esm-cleanfiles_2025-11-07-23-47.json new file mode 100644 index 00000000000..38aef1a8261 --- /dev/null +++ b/common/changes/@rushstack/heft-node-rig/copilot-add-lib-dts-lib-esm-cleanfiles_2025-11-07-23-47.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Include lib-dts and lib-esm folders in default files to clean", + "type": "patch", + "packageName": "@rushstack/heft-node-rig" + } + ], + "packageName": "@rushstack/heft-node-rig", + "email": "198982749+Copilot@users.noreply.github.com" +} \ No newline at end of file diff --git a/rigs/heft-node-rig/profiles/default/config/heft.json b/rigs/heft-node-rig/profiles/default/config/heft.json index 922aed1cd6b..e550329a62c 100644 --- a/rigs/heft-node-rig/profiles/default/config/heft.json +++ b/rigs/heft-node-rig/profiles/default/config/heft.json @@ -21,7 +21,7 @@ "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs"] }], + "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs", "lib-dts", "lib-esm"] }], "tasksByName": { "typescript": {