@seayoo-web/scripts 3.0.7 → 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 +1 -3
- package/package.json +2 -2
- package/types/src/env.d.ts +0 -2
- package/types/src/vite.page.d.ts +4 -0
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,7 +276,7 @@ function definePageBuildConfig(option) {
|
|
|
278
276
|
ignoreFiles: ["*.js.map", ...option?.finder?.ignoreFiles || []],
|
|
279
277
|
user: envs.deployUser,
|
|
280
278
|
key: envs.deployKey,
|
|
281
|
-
debug:
|
|
279
|
+
debug: option?.finder?.debug,
|
|
282
280
|
preview: option?.finder?.preview ?? true,
|
|
283
281
|
ignoreCache: option?.finder?.ignoreServerListCache,
|
|
284
282
|
commitLogs: isProductMode && gitInfo.logs.length > 0 ? "\n" + gitInfo.logs.join("\n") : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "3.0
|
|
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.
|
|
56
|
+
"@seayoo-web/finder": "^2.2.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/fs-extra": "^11.0.4",
|
package/types/src/env.d.ts
CHANGED