Skip to content

Commit 73ff8b3

Browse files
committedMar 29, 2021
fix: still not working
1 parent 2a5013c commit 73ff8b3

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed
 

‎packages/vue-quill/src/assets/snow.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ backgroundColor = #fff
55
inactiveColor = #4B5563
66
shadowColor = #D1D5DB
77
textColor = #4B5563
8-
// Additional color
8+
// Additional colors
99
backgroundHoverColor = #F3F4F6
1010
backgroundActiveColor = #DBEAFE
1111

‎scripts/release.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import chalk from "chalk"
2+
13
(() => {
24
// const chalk = require('chalk')
35
const execa = require('execa')
@@ -37,19 +39,20 @@
3739
]
3840
}
3941

40-
run(target)
42+
run()
4143

42-
async function run(target: string) {
44+
async function run() {
4345
const nextVersion = await getNextVersion()
4446
await prepare(target, nextVersion)
4547
await release()
4648
}
4749

4850
async function prepare(target: string, nextVersion: string) {
4951
const buildScript = path.resolve(__dirname, 'build.ts')
50-
execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
51-
execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
52-
execa.sync('npx', ['semantic-release'])
52+
console.log(chalk.bgCyan("Build package"))
53+
await execa('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
54+
console.log(chalk.bgCyan("Zipping distribution file"))
55+
await execa('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
5356
}
5457

5558
async function release() {
@@ -61,7 +64,7 @@
6164
plugins: releaserc.plugins
6265
}, {
6366
// Run semantic-release from `/path/to/git/repo/root` without having to change local process `cwd` with `process.chdir()`
64-
cwd: '',
67+
// cwd: '',
6568
// Pass the variable `MY_ENV_VAR` to semantic-release without having to modify the local `process.env`
6669
env: { ...process.env },
6770
// Store stdout and stderr to use later instead of writing to `process.stdout` and `process.stderr`

0 commit comments

Comments
 (0)
Please sign in to comment.