Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-20 22:41:48 +06:00
parent d186a6f25c
commit a088b51e24
No known key found for this signature in database
GPG Key ID: 211936D31001B31C

View File

@ -94,15 +94,21 @@ function bumpPackage (name, dependency, depVersion) {
function publish (name) { function publish (name) {
const package = packages[name] const package = packages[name]
execSync(`cd ${package.path}`, { encoding: 'utf-8' }) execSync(`cd ${package.path} && npm publish && cd ../..`, { encoding: 'utf-8' })
execSync(`npm publish`, { encoding: 'utf-8' }) }
execSync(`cd ../..`, { encoding: 'utf-8' })
function getConfig () {
const res = execSync('node common/scripts/install-run-rush.js list -p --json', { encoding: 'utf-8' })
const index = res.indexOf('{')
const list = res.substring(index)
const config = JSON.parse(list)
return config
} }
function main () { function main () {
const args = process.argv const args = process.argv
const config = JSON.parse(execSync('node common/scripts/install-run-rush.js list -p --json', { encoding: 'utf-8' })) const config = getConfig()
fillPackages(config) fillPackages(config)
buildDependencyTree() buildDependencyTree()