@seayoo-web/scripts 3.1.7 → 3.1.9
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.
|
@@ -223,7 +223,7 @@ async function createPageDeployTag(page, deployTo, finderUser) {
|
|
|
223
223
|
);
|
|
224
224
|
try {
|
|
225
225
|
await execCmd(`git push origin -f ${tagName}`, true);
|
|
226
|
-
} catch
|
|
226
|
+
} catch {
|
|
227
227
|
await execCmd(`git push origin -f --tags`, true);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -281,7 +281,7 @@ async function createBackupTag(action, info) {
|
|
|
281
281
|
await execCmd(`git tag -f ${tagName} -m "${getNowTime()} destroyed by ${user}"`);
|
|
282
282
|
try {
|
|
283
283
|
await execCmd(`git push origin -f ${tagName}`, true);
|
|
284
|
-
} catch
|
|
284
|
+
} catch {
|
|
285
285
|
await execCmd(`git push origin --tags`, true);
|
|
286
286
|
}
|
|
287
287
|
}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { sentryVitePlugin } from "@sentry/vite-plugin";
|
|
|
6
6
|
import legacy from "@vitejs/plugin-legacy";
|
|
7
7
|
import { existsSync, readFileSync, statSync, readdirSync } from "fs";
|
|
8
8
|
import { loadEnv } from "vite";
|
|
9
|
-
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-
|
|
9
|
+
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-B0Cnp5wC.js";
|
|
10
10
|
import "colors";
|
|
11
11
|
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
|
12
12
|
import { vueTsConfigs, defineConfigWithVueTs } from "@vue/eslint-config-typescript";
|
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, m as isPlainObject, n as format, o as deepMerge } 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, m as isPlainObject, n as format, o as deepMerge } from "./git-B0Cnp5wC.js";
|
|
9
9
|
import { finderUpload } from "@seayoo-web/finder";
|
|
10
10
|
import { finderDeploy, finderUpload as finderUpload2 } from "@seayoo-web/finder";
|
|
11
11
|
import { createServer } from "http";
|
|
@@ -31,6 +31,8 @@ async function initRepoQuestions$1() {
|
|
|
31
31
|
return [
|
|
32
32
|
{
|
|
33
33
|
type: "list",
|
|
34
|
+
//@ts-expect-error known issue
|
|
35
|
+
name: "project",
|
|
34
36
|
message: "选择项目:",
|
|
35
37
|
choices: projects.map((project) => ({
|
|
36
38
|
name: `${project.id} ${project.name}`,
|
|
@@ -40,6 +42,8 @@ async function initRepoQuestions$1() {
|
|
|
40
42
|
},
|
|
41
43
|
{
|
|
42
44
|
type: "list",
|
|
45
|
+
//@ts-expect-error known issue
|
|
46
|
+
name: "template",
|
|
43
47
|
message: "选择模板:",
|
|
44
48
|
choices: templates.map((template) => ({
|
|
45
49
|
name: `${template.id} ${template.desc}`,
|
|
@@ -49,8 +53,9 @@ async function initRepoQuestions$1() {
|
|
|
49
53
|
},
|
|
50
54
|
{
|
|
51
55
|
type: "input",
|
|
52
|
-
message: "仓库名称:",
|
|
53
56
|
//@ts-expect-error known issue
|
|
57
|
+
name: "repoName",
|
|
58
|
+
message: "仓库名称:",
|
|
54
59
|
validate: (input) => {
|
|
55
60
|
if (/^[a-z0-9-]+$/.test(input)) return true;
|
|
56
61
|
return "仓库名称只能包含小写字母、数字和中横线";
|
|
@@ -70,6 +75,7 @@ async function initProjectQuestions$1() {
|
|
|
70
75
|
type: "input",
|
|
71
76
|
message: "项目 ID:",
|
|
72
77
|
//@ts-expect-error known issue
|
|
78
|
+
name: "project",
|
|
73
79
|
validate: (input) => {
|
|
74
80
|
if (!/^[a-zA-Z0-9-_]+$/.test(input)) {
|
|
75
81
|
return "项目名称只能包含字母、数字、下划线和横线";
|
|
@@ -84,6 +90,7 @@ async function initProjectQuestions$1() {
|
|
|
84
90
|
type: "input",
|
|
85
91
|
message: "中文名称:",
|
|
86
92
|
//@ts-expect-error known issue
|
|
93
|
+
name: "name",
|
|
87
94
|
validate: (input) => {
|
|
88
95
|
if (!input) {
|
|
89
96
|
return "中文名称不能为空";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "scripts for seayoo web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-vue": "^10.6.2",
|
|
46
46
|
"fs-extra": "^11.3.3",
|
|
47
47
|
"html-minifier-terser": "^7.2.0",
|
|
48
|
-
"inquirer": "^
|
|
48
|
+
"inquirer": "^12.11.1",
|
|
49
49
|
"jiti": "^2.6.1",
|
|
50
50
|
"ora": "^8.2.0",
|
|
51
51
|
"postcss-html": "^1.8.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"stylelint": "^16.23.1",
|
|
65
65
|
"stylelint-config-recess-order": "^7.2.0",
|
|
66
66
|
"stylelint-config-standard": "^39.0.0",
|
|
67
|
-
"@seayoo-web/tsconfig": "^1.0.
|
|
67
|
+
"@seayoo-web/tsconfig": "^1.0.6"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
70
|
"eslint": "^9.39.2",
|