Skip to content

Commit 0537b0e

Browse files
committed
fix: 🐛 fix script verifyRelease.ts
1 parent 10a552b commit 0537b0e

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
# [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)
12

3+
4+
### Bug Fixes
5+
6+
* :bug: remove unsupported workspaces (semantic-release) ([10a552b](https://github.com/vueup/vue-quill/commit/10a552b79fdda00b1e81f9795232d665f2805cd1))
7+
* try to fix semantic-release/npm ([3cc858a](https://github.com/vueup/vue-quill/commit/3cc858ab5c10da7539a05bdd512d17907bc32f83))

scripts/verifyRelease.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
const packageOptions = pkg.buildOptions
3232
const buildOutputPaths: string[] = []
3333
packageOptions.formats.forEach((format: string) => {
34-
buildOutputPaths.push(path.resolve(pkgDir, 'dist', `${target}.${format}.js`))
34+
buildOutputPaths.push(
35+
path.resolve(pkgDir, 'dist', `${target}.${format}.js`)
36+
)
3537
if (packageOptions.prod === false) return
36-
buildOutputPaths.push(path.resolve(pkgDir, 'dist', `${target}.${format}.prod.js`))
38+
buildOutputPaths.push(
39+
path.resolve(pkgDir, 'dist', `${target}.${format}.prod.js`)
40+
)
3741
})
3842
checkBuildFiles(`${target} builds`, buildOutputPaths)
3943

@@ -63,17 +67,20 @@
6367
function checkBuildFile(target: string, buildPath: string) {
6468
try {
6569
if (fs.existsSync(buildPath)) {
66-
logger.success(target, `✔ The file ${chalk.underline(buildPath)} exists.`)
70+
logger.success(
71+
target,
72+
`✔ The file ${chalk.underline(buildPath)} exists.`
73+
)
6774
} else {
6875
logger.error(
6976
target,
7077
`✖ The file ${chalk.underline(buildPath)} file does not exist.`
7178
)
7279
errors.push(`Missing file: ${buildPath}`)
7380
}
74-
} catch (err) {
81+
} catch (err: any) {
7582
logger.error(target, err)
76-
errors.push(err)
83+
errors.push(err.message || 'Unknown error')
7784
}
7885
}
7986

@@ -97,9 +104,9 @@
97104
}
98105
}
99106
logger.list(target, `BUILD FILES`, buildResults)
100-
} catch (err) {
107+
} catch (err: any) {
101108
logger.error(target, err)
102-
errors.push(err)
109+
errors.push(err.message || 'Unknown error')
103110
}
104111
}
105112
})()

0 commit comments

Comments
 (0)