chore: replace gift devDep with simple-git (#26728)

This commit is contained in:
Emily Rohrbough
2023-06-02 15:12:24 -05:00
committed by GitHub
parent 9c4d5f7db6
commit c3e3500d5c
3 changed files with 3 additions and 25 deletions

View File

@@ -159,7 +159,6 @@
"filesize": "4.1.2",
"fs-extra": "9.1.0",
"getenv": "^1.0.0",
"gift": "0.10.2",
"glob": "7.1.6",
"got": "11.8.5",
"graphql": "^15.5.1",

View File

@@ -4,7 +4,7 @@ const cwd = process.cwd()
const path = require('path')
const _ = require('lodash')
const os = require('os')
const gift = require('gift')
const simpleGit = require('simple-git')
const chalk = require('chalk')
const Promise = require('bluebird')
const minimist = require('minimist')
@@ -23,9 +23,6 @@ const uploadUtils = require('./util/upload')
const { uploadArtifactToS3 } = require('./upload-build-artifact')
const { moveBinaries } = require('./move-binaries')
// initialize on existing repo
const repo = Promise.promisifyAll(gift(cwd))
const success = (str) => {
return console.log(chalk.bgGreen(` ${chalk.black(str)} `))
}
@@ -58,8 +55,8 @@ process.chdir(cwd)
const commitVersion = function (version) {
const msg = `release ${version} [skip ci]`
return repo.commitAsync(msg, {
'allow-empty': true,
return simpleGit.commit(msg, {
'--allow-empty': null,
})
}

View File

@@ -15388,11 +15388,6 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
flex-exec@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/flex-exec/-/flex-exec-1.0.0.tgz#06974b68532839d2a12c32debcdb12378200fdf0"
integrity sha1-BpdLaFMoOdKhLDLevNsSN4IA/fA=
floating-vue@2.0.0-beta.17:
version "2.0.0-beta.17"
resolved "https://registry.yarnpkg.com/floating-vue/-/floating-vue-2.0.0-beta.17.tgz#f488d992f58d76b41fc3490f3ef969d58a5c8f99"
@@ -16006,14 +16001,6 @@ gh-pages@5.0.0:
fs-extra "^8.1.0"
globby "^6.1.0"
gift@0.10.2:
version "0.10.2"
resolved "https://registry.yarnpkg.com/gift/-/gift-0.10.2.tgz#4600efe8f284b51fcb01c3527b321e22b494e156"
integrity sha512-wC9aKnQpjfOTWX+JG4DPJkS89ux6sl8EN4hXhv/2vBoXCDTEz1JiTeGTSeuKYlCqIgUFM1JwPVym34Sys3hvzw==
dependencies:
flex-exec "^1.0.0"
underscore "^1.8.3"
gifwrap@^0.9.2:
version "0.9.2"
resolved "https://registry.yarnpkg.com/gifwrap/-/gifwrap-0.9.2.tgz#348e286e67d7cf57942172e1e6f05a71cee78489"
@@ -29268,11 +29255,6 @@ underscore.string@3.3.6, underscore.string@^3.3.6:
sprintf-js "^1.1.1"
util-deprecate "^1.0.2"
underscore@^1.8.3:
version "1.12.1"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e"
integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==
underscore@~1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"