Skip to content

Commit

Permalink
fix: args robustness (#15)
Browse files Browse the repository at this point in the history
* fix: args robustness

* fix: run changelog before publish
  • Loading branch information
ycjcl868 authored and PeachScript committed Dec 1, 2019
1 parent d187622 commit cce16cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "lerna clean -y",
"test": "umi-test --coverage",
"debug": "umi-test",
"publish": "npm run build && lerna publish"
"publish": "npm run changelog && npm run build && lerna publish"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/father-doc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = () => {
// start umi use child process
const child = fork(
require.resolve('umi/bin/umi'),
[...process.argv.slice(2)],
[...(process.argv.slice(2) || [])],
{
stdio: 'inherit'
},
Expand Down

0 comments on commit cce16cf

Please sign in to comment.