build: fix build script - extractorResult is not defined (#1068)
This commit is contained in:
parent
6bb838392d
commit
2e0373bb7a
@ -101,12 +101,12 @@ async function build(target) {
|
||||
const extractorConfig = ExtractorConfig.loadFileAndPrepare(
|
||||
extractorConfigPath
|
||||
)
|
||||
const result = Extractor.invoke(extractorConfig, {
|
||||
const extractorResult = Extractor.invoke(extractorConfig, {
|
||||
localBuild: true,
|
||||
showVerboseMessages: true
|
||||
})
|
||||
|
||||
if (result.succeeded) {
|
||||
if (extractorResult.succeeded) {
|
||||
// concat additional d.ts to rolled-up dts (mostly for JSX)
|
||||
if (pkg.buildOptions && pkg.buildOptions.dts) {
|
||||
const dtsPath = path.resolve(pkgDir, pkg.types)
|
||||
|
Loading…
Reference in New Issue
Block a user