mirror of https://github.com/certd/certd
chore: 1
parent
0b769a1c86
commit
c8243c573f
11
deploy.js
11
deploy.js
|
@ -6,17 +6,6 @@ import {default as packageJson} from './packages/core/pipeline/package.json' ass
|
||||||
const certdVersion = packageJson.version
|
const certdVersion = packageJson.version
|
||||||
console.log("certdVersion", certdVersion)
|
console.log("certdVersion", certdVersion)
|
||||||
|
|
||||||
|
|
||||||
const gitAdd = fs.readAsText("./node_modules/@lerna-lite/version/dist/lib/git-add.js")
|
|
||||||
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
|
||||||
console.log("git-add 已经修改过了")
|
|
||||||
}else{
|
|
||||||
console.log("git-add 没有修改过")
|
|
||||||
fs.writeTextFile("./node_modules/@lerna-lite/version/dist/lib/git-add.js", gitAdd.replace("('git', ['add', '--', ...files]", "('git', ['add', '.']"))
|
|
||||||
console.log("git-add 修改成功")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 同步npmmirror的包
|
// 同步npmmirror的包
|
||||||
async function getPackages(directoryPath) {
|
async function getPackages(directoryPath) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
import fs from 'fs'
|
||||||
|
function check(){
|
||||||
|
const gitAdd = fs.readFileSync("./node_modules/@lerna-lite/version/dist/lib/git-add.js","utf-8")
|
||||||
|
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
||||||
|
console.log("git-add 已经修改过了")
|
||||||
|
}else{
|
||||||
|
console.error("git-add 没有修改过")
|
||||||
|
throw new Error("git-add 还没修改过")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
check()
|
Loading…
Reference in New Issue