fix: absolute import path
This commit is contained in:
parent
11f2f5af1a
commit
f0002b6c97
|
@ -2,6 +2,7 @@
|
|||
console.log(process.argv)
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
/* Configure git */
|
||||
|
@ -20,7 +21,7 @@ if (messages.map(message => message.includes('BREAKING CHANGE')).includes(true))
|
|||
version = 'minor'
|
||||
}
|
||||
|
||||
let pkg = require('./package.json')
|
||||
let pkg = require(path.join(process.cwd(), 'package.json'))
|
||||
let current = execSync(`npm view ${pkg.name} version`).toString()
|
||||
process.stdout.write(execSync(`npm version --allow-same-version=true --git-tag-version=false ${current} `))
|
||||
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
|
||||
|
|
Loading…
Reference in New Issue