Skip to content

Commit 2e0373b

Browse files
authored
build: fix build script - extractorResult is not defined (#1068)
1 parent 6bb8383 commit 2e0373b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ async function build(target) {
101101
const extractorConfig = ExtractorConfig.loadFileAndPrepare(
102102
extractorConfigPath
103103
)
104-
const result = Extractor.invoke(extractorConfig, {
104+
const extractorResult = Extractor.invoke(extractorConfig, {
105105
localBuild: true,
106106
showVerboseMessages: true
107107
})
108108

109-
if (result.succeeded) {
109+
if (extractorResult.succeeded) {
110110
// concat additional d.ts to rolled-up dts (mostly for JSX)
111111
if (pkg.buildOptions && pkg.buildOptions.dts) {
112112
const dtsPath = path.resolve(pkgDir, pkg.types)

0 commit comments

Comments
 (0)