@pisell/common 0.0.18-1 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,7 +96,7 @@ function _init() {
|
|
|
96
96
|
|
|
97
97
|
// 删除本地在远程不存在的tag
|
|
98
98
|
_context.next = 9;
|
|
99
|
-
return $(_templateObject || (_templateObject = _taggedTemplateLiteral(["git fetch --prune
|
|
99
|
+
return $(_templateObject || (_templateObject = _taggedTemplateLiteral(["git fetch --prune-tags"])));
|
|
100
100
|
case 9:
|
|
101
101
|
uploadCode = new UploadCode(res);
|
|
102
102
|
_context.next = 12;
|
package/es/script/utils/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var getCurrentProjectName = function getCurrentProjectName() {
|
|
|
241
241
|
return loadJSON(path.join(process.cwd(), './package.json')).name;
|
|
242
242
|
};
|
|
243
243
|
var loadJSON = function loadJSON(path) {
|
|
244
|
-
return JSON.parse(fs.readFileSync(
|
|
244
|
+
return JSON.parse(fs.readFileSync(path));
|
|
245
245
|
};
|
|
246
246
|
var getCurrentUserName = /*#__PURE__*/function () {
|
|
247
247
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -100,7 +100,7 @@ async function init() {
|
|
|
100
100
|
path: "./",
|
|
101
101
|
fileName: (0, import_utils.getCurrentProjectName)()
|
|
102
102
|
};
|
|
103
|
-
await $`git fetch --prune
|
|
103
|
+
await $`git fetch --prune-tags`;
|
|
104
104
|
const uploadCode = new import_uploadCode.default(res);
|
|
105
105
|
if (!await uploadCode.check()) {
|
|
106
106
|
return;
|
|
@@ -46,7 +46,6 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
46
46
|
var dotenv = __toESM(require("dotenv"));
|
|
47
47
|
var import_path = __toESM(require("path"));
|
|
48
48
|
var import_ssh2 = __toESM(require("ssh2"));
|
|
49
|
-
var import_meta = {};
|
|
50
49
|
var isWorkingTreeClean = async () => {
|
|
51
50
|
const v = await $`git status --porcelain`;
|
|
52
51
|
return v.stdout === "";
|
|
@@ -200,7 +199,7 @@ var versionSort = (versionList) => {
|
|
|
200
199
|
var getCurrentProjectName = () => {
|
|
201
200
|
return loadJSON(import_path.default.join(process.cwd(), "./package.json")).name;
|
|
202
201
|
};
|
|
203
|
-
var loadJSON = (path2) => JSON.parse(fs.readFileSync(
|
|
202
|
+
var loadJSON = (path2) => JSON.parse(fs.readFileSync(path2));
|
|
204
203
|
var getCurrentUserName = async () => {
|
|
205
204
|
const { stdout } = await $`git config user.name`;
|
|
206
205
|
return stdout;
|