@seayoo-web/scripts 3.0.4 → 3.0.6
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.
|
@@ -191,16 +191,16 @@ async function getCommitInfo(command, mode, page, deployTo) {
|
|
|
191
191
|
return { hash: await getCommitHash(), logs: [] };
|
|
192
192
|
}
|
|
193
193
|
if (await hasUncommittedChanges()) {
|
|
194
|
-
console.error(
|
|
194
|
+
console.error(`部署前需要提交所有代码!`.red);
|
|
195
195
|
process.exit(1);
|
|
196
196
|
}
|
|
197
197
|
if (await getCurrentBranchName() !== MainBranchName) {
|
|
198
|
-
console.error(
|
|
198
|
+
console.error(`部署需要在 ${`${MainBranchName}分支`.bgRed} 操作!`.red);
|
|
199
199
|
process.exit(1);
|
|
200
200
|
}
|
|
201
201
|
const unCommitChanges = await countUnSubmitChanges(MainBranchName);
|
|
202
202
|
if (unCommitChanges > 0) {
|
|
203
|
-
console.error("
|
|
203
|
+
console.error("部署前需要先将代码同步到服务器!".red, `发现 ${unCommitChanges} 个 commit 差异`.red);
|
|
204
204
|
process.exit(1);
|
|
205
205
|
}
|
|
206
206
|
await execCmd("git pull", true);
|
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-8eP8TYSu.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-8eP8TYSu.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "scripts for seayoo web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@sentry/vite-plugin": "^4.
|
|
37
|
-
"@vitejs/plugin-legacy": "^7.1
|
|
36
|
+
"@sentry/vite-plugin": "^4.1.1",
|
|
37
|
+
"@vitejs/plugin-legacy": "^7.2.1",
|
|
38
38
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
39
39
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
40
40
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"colors": "^1.4.0",
|
|
43
43
|
"commander": "^13.1.0",
|
|
44
44
|
"eslint-plugin-import": "^2.32.0",
|
|
45
|
-
"eslint-plugin-vue": "^
|
|
46
|
-
"fs-extra": "^11.3.
|
|
45
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
46
|
+
"fs-extra": "^11.3.1",
|
|
47
47
|
"html-minifier-terser": "^7.2.0",
|
|
48
|
-
"inquirer": "^12.
|
|
49
|
-
"jiti": "^2.
|
|
48
|
+
"inquirer": "^12.9.3",
|
|
49
|
+
"jiti": "^2.5.1",
|
|
50
50
|
"ora": "^8.2.0",
|
|
51
51
|
"postcss-html": "^1.8.0",
|
|
52
52
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
53
53
|
"stylelint-order": "^7.0.0",
|
|
54
54
|
"terser": "^5.43.1",
|
|
55
55
|
"vite-plugin-stylelint": "^6.0.2",
|
|
56
|
-
"@seayoo-web/finder": "^2.2.
|
|
56
|
+
"@seayoo-web/finder": "^2.2.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/fs-extra": "^11.0.4",
|
|
60
60
|
"@types/html-minifier-terser": "^7.0.2",
|
|
61
|
-
"@types/node": "^22.
|
|
61
|
+
"@types/node": "^22.17.2",
|
|
62
62
|
"@typescript-eslint/utils": "^8.39.1",
|
|
63
63
|
"eslint": "^9.33.0",
|
|
64
64
|
"stylelint": "^16.23.1",
|