Skip to content

Commit

Permalink
feat: 移动脚本位置
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Jul 19, 2022
1 parent 0cb5e5b commit 1044a7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ temp

package-lock.json

.env.local
.env.local

/test.js
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lib",
"LICENSE",
"CHANGELOG.md",
"README.md"
"README.md",
"script"
],
"sideEffects": "false",
"repository": {
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion src/version-tip/gen-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
* ```
*/
export function genVersion({ path, execFile, needPush = 0 }) {
const bashFile = path.resolve(__dirname, './gen-version.bash')
const bashFile = path.resolve(__dirname, '../script/gen-version.bash')

return new Promise((resolve, reject) => {
execFile('bash', [bashFile, needPush], (error, stdout, stderr) => {
if (error) {
reject(error)
} else {
resolve({ stdout, stderr })
console.log(stdout)
console.log('stderr', stderr)
}
})
})
Expand Down

0 comments on commit 1044a7f

Please sign in to comment.