@seayoo-web/scripts 3.0.6 → 3.1.0

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.
package/dist/index.js CHANGED
@@ -67,7 +67,6 @@ function getBuildEnv(command, mode, requireSentryToken, ignoreSentryToken) {
67
67
  viteEnvs: envs
68
68
  };
69
69
  envConfig.mode = mode || "preview";
70
- const d = `${EnvPrefix}DEPLOY_DEBUG`;
71
70
  const t = `${EnvPrefix}DEPLOY_TO`;
72
71
  const s = `${EnvPrefix}SENTRY_AUTH_TOKEN`;
73
72
  const u = `${EnvPrefix}DEPLOY_USER`;
@@ -92,7 +91,6 @@ function getBuildEnv(command, mode, requireSentryToken, ignoreSentryToken) {
92
91
  envConfig.deployTo = (envs[t] || "").replace(/(?:^https?:\/\/|\/*$)/gi, "").replace(/^(.)/, "https://$1");
93
92
  envConfig.deployUser = envs[u];
94
93
  envConfig.deployKey = envs[k];
95
- envConfig.deployDebug = envs[d] === "1" || envs[d] === "y" || envs[d] === "true";
96
94
  if (mode === "wellknown") {
97
95
  const wellknownDir = join(process.cwd(), ".well-known");
98
96
  if (!existsSync(wellknownDir)) {
@@ -278,8 +276,9 @@ function definePageBuildConfig(option) {
278
276
  ignoreFiles: ["*.js.map", ...option?.finder?.ignoreFiles || []],
279
277
  user: envs.deployUser,
280
278
  key: envs.deployKey,
281
- debug: envs.deployDebug,
279
+ debug: option?.finder?.debug,
282
280
  preview: option?.finder?.preview ?? true,
281
+ ignoreCache: option?.finder?.ignoreServerListCache,
283
282
  commitLogs: isProductMode && gitInfo.logs.length > 0 ? "\n" + gitInfo.logs.join("\n") : void 0,
284
283
  onBeforeDeploy: option?.finder?.beforeDeploy ? async function(dist) {
285
284
  await option?.finder?.beforeDeploy?.(dist, envs.viteEnvs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "3.0.6",
3
+ "version": "3.1.0",
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.1"
56
+ "@seayoo-web/finder": "^2.2.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/fs-extra": "^11.0.4",
@@ -11,8 +11,6 @@ interface IBuildEnvs {
11
11
  page: string;
12
12
  /** 页面部署地址 */
13
13
  deployTo?: string;
14
- /** 打印部署详细日志 */
15
- deployDebug?: boolean;
16
14
  /** 当部署 well-known 目录时有效 */
17
15
  wellKnownDir?: string;
18
16
  /** 部署 sentry sourcemap 用的 token */
@@ -67,6 +67,14 @@ interface ExternalConfig {
67
67
  * 匹配时仅针对单一目录和文件名进行检查,不跨目录检查
68
68
  */
69
69
  ignoreFiles?: string[];
70
+ /**
71
+ * 是否忽略本地缓存的服务器发布列表的缓存
72
+ */
73
+ ignoreServerListCache?: boolean;
74
+ /**
75
+ * 是否输出调试信息
76
+ */
77
+ debug?: boolean;
70
78
  /**
71
79
  * 在部署文件前调用,用以调整产物文件
72
80
  */