Skip to content

Commit f792926

Browse files
committed
fix: publish script
1 parent d646bd7 commit f792926

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

publish-version.js

+8-11
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ if (!/[0-9]+\.[0-9]+\.[0-9]+/.test(version)) {
2020
}
2121

2222
// avoid eslint warnings
23-
;['vscode-extension'].forEach((p) => {
24-
console.info(`Run eslint on ${p}`)
25-
if (
26-
childProcess.spawnSync('npx', ['eslint', '-c', '.eslintrc.js', 'src'], {
27-
cwd: p,
28-
stdio: 'inherit',
29-
}).status !== 0
30-
) {
31-
throw new Error('failed to lint modules (are there eslint warnings or errors?)')
32-
}
33-
})
23+
console.info(`Run eslint`)
24+
if (
25+
childProcess.spawnSync('npx', ['eslint', '-c', '.eslintrc.js', 'src'], {
26+
stdio: 'inherit',
27+
}).status !== 0
28+
) {
29+
throw new Error('failed to lint modules (are there eslint warnings or errors?)')
30+
}
3431

3532
// check git status
3633
const gitStatusRes = childProcess.spawnSync('git', ['diff', '--name-only'], { encoding: 'utf8' })

0 commit comments

Comments
 (0)