@seayoo-web/scripts 3.0.5 → 3.0.7

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(`正式部署前需要提交所有代码!`.red);
194
+ console.error(`部署前需要提交所有代码!`.red);
195
195
  process.exit(1);
196
196
  }
197
197
  if (await getCurrentBranchName() !== MainBranchName) {
198
- console.error(`正式环境部署需要在 ${`${MainBranchName}分支`.bgRed} 操作!`.red);
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("正式环境部署需要先将代码同步到服务器!".red, `发现 ${unCommitChanges} 个 commit 差异`.red);
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-CJ_QW0oc.js";
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";
@@ -280,6 +280,7 @@ function definePageBuildConfig(option) {
280
280
  key: envs.deployKey,
281
281
  debug: envs.deployDebug,
282
282
  preview: option?.finder?.preview ?? true,
283
+ ignoreCache: option?.finder?.ignoreServerListCache,
283
284
  commitLogs: isProductMode && gitInfo.logs.length > 0 ? "\n" + gitInfo.logs.join("\n") : void 0,
284
285
  onBeforeDeploy: option?.finder?.beforeDeploy ? async function(dist) {
285
286
  await option?.finder?.beforeDeploy?.(dist, envs.viteEnvs);
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-CJ_QW0oc.js";
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.5",
3
+ "version": "3.0.7",
4
4
  "description": "scripts for seayoo web repos",
5
5
  "type": "module",
6
6
  "source": "index.ts",
@@ -53,7 +53,7 @@
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.0"
56
+ "@seayoo-web/finder": "^2.2.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/fs-extra": "^11.0.4",
@@ -67,6 +67,10 @@ interface ExternalConfig {
67
67
  * 匹配时仅针对单一目录和文件名进行检查,不跨目录检查
68
68
  */
69
69
  ignoreFiles?: string[];
70
+ /**
71
+ * 是否忽略本地缓存的服务器发布列表的缓存
72
+ */
73
+ ignoreServerListCache?: boolean;
70
74
  /**
71
75
  * 在部署文件前调用,用以调整产物文件
72
76
  */