From 8325f2de2a1f1cbd539f15170ec2e647e39e3ce8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 1 Nov 2019 12:24:12 -0400 Subject: [PATCH] build: fix build script --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index a224c309..3959532d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -99,7 +99,7 @@ async function build(target) { if (result.succeeded) { // concat additional d.ts to rolled-up dts (mostly for JSX) - if (pkg.buildOptions.dts) { + if (pkg.buildOptions && pkg.buildOptions.dts) { const dtsPath = path.resolve(pkgDir, pkg.types) const existing = await fs.readFile(dtsPath, 'utf-8') const toAdd = await Promise.all(