Skip to content

Commit

Permalink
fix: 🐛 fix script verifyRelease.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Feb 17, 2022
1 parent 10a552b commit 0537b0e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# [1.0.0-beta.8](https://github.com/vueup/vue-quill/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2022-02-17)


### Bug Fixes

* :bug: remove unsupported workspaces (semantic-release) ([10a552b](https://github.com/vueup/vue-quill/commit/10a552b79fdda00b1e81f9795232d665f2805cd1))
* try to fix semantic-release/npm ([3cc858a](https://github.com/vueup/vue-quill/commit/3cc858ab5c10da7539a05bdd512d17907bc32f83))
21 changes: 14 additions & 7 deletions scripts/verifyRelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@
const packageOptions = pkg.buildOptions
const buildOutputPaths: string[] = []
packageOptions.formats.forEach((format: string) => {
buildOutputPaths.push(path.resolve(pkgDir, 'dist', `${target}.${format}.js`))
buildOutputPaths.push(
path.resolve(pkgDir, 'dist', `${target}.${format}.js`)
)
if (packageOptions.prod === false) return
buildOutputPaths.push(path.resolve(pkgDir, 'dist', `${target}.${format}.prod.js`))
buildOutputPaths.push(
path.resolve(pkgDir, 'dist', `${target}.${format}.prod.js`)
)
})
checkBuildFiles(`${target} builds`, buildOutputPaths)

Expand Down Expand Up @@ -63,17 +67,20 @@
function checkBuildFile(target: string, buildPath: string) {
try {
if (fs.existsSync(buildPath)) {
logger.success(target, `✔ The file ${chalk.underline(buildPath)} exists.`)
logger.success(
target,
`✔ The file ${chalk.underline(buildPath)} exists.`
)
} else {
logger.error(
target,
`✖ The file ${chalk.underline(buildPath)} file does not exist.`
)
errors.push(`Missing file: ${buildPath}`)
}
} catch (err) {
} catch (err: any) {
logger.error(target, err)
errors.push(err)
errors.push(err.message || 'Unknown error')
}
}

Expand All @@ -97,9 +104,9 @@
}
}
logger.list(target, `BUILD FILES`, buildResults)
} catch (err) {
} catch (err: any) {
logger.error(target, err)
errors.push(err)
errors.push(err.message || 'Unknown error')
}
}
})()

0 comments on commit 0537b0e

Please sign in to comment.