build: fix build script

This commit is contained in:
Evan You 2019-11-01 12:24:12 -04:00
parent 5eee1152ca
commit 8325f2de2a

View File

@ -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(