build: fix build script
This commit is contained in:
parent
5eee1152ca
commit
8325f2de2a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user