Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw committed May 6, 2021
1 parent 0095005 commit fae83e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/runtime/browser-snapshot/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/runtime/sp-sandbox/src/index.d.ts",
"mainEntryPointFilePath": "./dist/packages/runtime/browser-snapshot/src/index.d.ts",
"dtsRollup": {
"publicTrimmedFilePath": "./dist/sp-sandbox.d.ts"
"publicTrimmedFilePath": "./dist/browser-snapshot.d.ts"
}
}
}
6 changes: 3 additions & 3 deletions packages/runtime/browser-vm/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/runtime/vm-sandbox/src/index.d.ts",
"mainEntryPointFilePath": "./dist/packages/runtime/browser-vm/src/index.d.ts",
"dtsRollup": {
"publicTrimmedFilePath": "./dist/vm-sandbox.d.ts"
"publicTrimmedFilePath": "./dist/browser-vm.d.ts"
}
}
}
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async function build(target) {
);

// Merge .d.ts
if (mergeTypes && pkg.types) {
if (mergeTypes && pkg.types && !pkgDir.includes('hooks')) {
mergeBuildTypes(pkgDir, target);
}
}
Expand Down

0 comments on commit fae83e4

Please sign in to comment.