Skip to content

Commit 69ef5a8

Browse files
committed
fixup! Fix build and runtime issues in rush-sdk.
1 parent b37a0bb commit 69ef5a8

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

libraries/rush-sdk/config/heft.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,34 @@
3333
},
3434

3535
"webpack": {
36-
"taskDependencies": ["typescript"],
36+
"taskDependencies": ["transpile"],
3737
"taskPlugin": {
3838
"pluginPackage": "@rushstack/heft-webpack5-plugin"
3939
}
4040
},
4141

42+
"copy-stub-dts": {
43+
"taskPlugin": {
44+
"pluginPackage": "@rushstack/heft",
45+
"pluginName": "copy-files-plugin",
46+
"options": {
47+
"copyOperations": [
48+
{
49+
"sourcePath": "./node_modules/@microsoft/rush-lib/lib-dts",
50+
"destinationFolders": ["lib"],
51+
"fileExtensions": [".d.ts", ".map"]
52+
}
53+
]
54+
}
55+
}
56+
},
57+
4258
"generate-stubs": {
43-
"taskDependencies": ["typescript"],
59+
"taskDependencies": [
60+
"transpile",
61+
// Do this after "copy-stub-dts" to avoid disk concurrency issues
62+
"copy-stub-dts"
63+
],
4464
"taskPlugin": {
4565
"pluginPackage": "@rushstack/heft",
4666
"pluginName": "run-script-plugin",

0 commit comments

Comments
 (0)