@seayoo-web/scripts 2.0.0 → 2.0.1
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.
|
@@ -208,6 +208,7 @@ async function getCommitLogs(branchOrCommit, sinceCommit, codePath) {
|
|
|
208
208
|
const cmd = [
|
|
209
209
|
"git log",
|
|
210
210
|
sinceCommit ? `${sinceCommit}..${branchOrCommit || "HEAD"}` : branchOrCommit || "",
|
|
211
|
+
/** spell-checker:disable-next-line */
|
|
211
212
|
`--oneline --pretty=format:"[%cd][%h] %s" --date=short -n 60`,
|
|
212
213
|
`-- ${codePath}`
|
|
213
214
|
].filter((f) => !!f).join(" ");
|
|
@@ -241,7 +242,7 @@ async function createBackupTag(action, info) {
|
|
|
241
242
|
const tagName = `${BackupTagPrefix}${action}_${info.replace(/\//g, "-")}`;
|
|
242
243
|
const gitUser = await execCmd(`git config user.email`).catch(() => "");
|
|
243
244
|
const user = (gitUser || "unknown").replace(/@.+/g, "");
|
|
244
|
-
await execCmd(`git tag -f ${tagName} -m "${getNowTime()} destroyed by ${user}`);
|
|
245
|
+
await execCmd(`git tag -f ${tagName} -m "${getNowTime()} destroyed by ${user}"`);
|
|
245
246
|
try {
|
|
246
247
|
await execCmd(`git push origin -f ${tagName}`, true);
|
|
247
248
|
} catch (e) {
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import vueDevTools from "vite-plugin-vue-devtools";
|
|
|
7
7
|
import { existsSync, readFileSync } from "fs";
|
|
8
8
|
import { loadEnv } from "vite";
|
|
9
9
|
import "colors";
|
|
10
|
-
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-
|
|
10
|
+
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-w5-27jZ7.js";
|
|
11
11
|
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
|
12
12
|
import { vueTsConfigs, defineConfigWithVueTs } from "@vue/eslint-config-typescript";
|
|
13
13
|
import { flatConfigs } from "eslint-plugin-import";
|
package/dist/node.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Command } from "commander";
|
|
|
5
5
|
import fs from "fs-extra";
|
|
6
6
|
import inquirer from "inquirer";
|
|
7
7
|
import ora from "ora";
|
|
8
|
-
import { b as getMonorepoRoot, d as addProjectToWorkspace, e as copyTemplate, f as copyGlobalFiles, h as getProjects, i as getTemplates, j as checkGitStatusBeforeDestroy, k as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, l as getRepos } from "./git-
|
|
8
|
+
import { b as getMonorepoRoot, d as addProjectToWorkspace, e as copyTemplate, f as copyGlobalFiles, h as getProjects, i as getTemplates, j as checkGitStatusBeforeDestroy, k as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, l as getRepos } from "./git-w5-27jZ7.js";
|
|
9
9
|
const commitRE = /^(?:revert: )?(?:feat|fix|docs|style|refactor|test|build|chore|debug|tweak|improve)(?:\(.+\))?: .{1,100}/;
|
|
10
10
|
function checkCommit() {
|
|
11
11
|
const msgPath = process.argv[2];
|
package/package.json
CHANGED