@seayoo-web/scripts 1.3.6 → 1.3.8
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/{git-C3gyPvsT.js → git-BXY1N76R.js} +3 -2
- package/dist/index.js +12 -18
- package/dist/node.js +1 -1
- package/package.json +5 -5
|
@@ -81,8 +81,9 @@ async function addProjectToWorkspace(project) {
|
|
|
81
81
|
if (await fs.pathExists(rootWorkspacePath)) {
|
|
82
82
|
let content = await fs.readFile(rootWorkspacePath, "utf8");
|
|
83
83
|
if (!content.includes(`- "${project}/*"`)) {
|
|
84
|
-
content
|
|
85
|
-
|
|
84
|
+
content = content.replace(/(packages:\n(?:\s{2,}-\s.+\n?)+)/, `$1
|
|
85
|
+
- ${project}/*
|
|
86
|
+
`).replace(/\n{2,}/g, "\n");
|
|
86
87
|
}
|
|
87
88
|
await fs.writeFile(rootWorkspacePath, content);
|
|
88
89
|
}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import vueDevTools from "vite-plugin-vue-devtools";
|
|
|
7
7
|
import { existsSync, readFileSync } from "fs";
|
|
8
8
|
import { loadEnv } from "vite";
|
|
9
9
|
import "colors";
|
|
10
|
-
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-
|
|
10
|
+
import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-BXY1N76R.js";
|
|
11
11
|
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
|
12
12
|
import { vueTsConfigs, defineConfigWithVueTs } from "@vue/eslint-config-typescript";
|
|
13
13
|
import { flatConfigs } from "eslint-plugin-import";
|
|
@@ -155,29 +155,23 @@ function definePageBuildConfig(option) {
|
|
|
155
155
|
vue(),
|
|
156
156
|
vueDevTools(),
|
|
157
157
|
legacy({
|
|
158
|
-
targets: [
|
|
159
|
-
"> 0.1%",
|
|
160
|
-
"last 5 versions and not dead",
|
|
161
|
-
"Firefox ESR",
|
|
162
|
-
"edge>=60",
|
|
163
|
-
"firefox>=60",
|
|
164
|
-
"chrome>=52",
|
|
165
|
-
"chromeAndroid>=52",
|
|
166
|
-
"safari>=8",
|
|
167
|
-
"iOS>=8"
|
|
168
|
-
],
|
|
169
|
-
// 提高现代版本的要求以满足一些特性使用,比如 [Promise.allSettled](https://caniuse.com/?search=allSettled)
|
|
170
|
-
modernTargets: "edge>=131, firefox>=67, chrome>=76, chromeAndroid>=76, safari>=13, iOS>=13",
|
|
158
|
+
targets: ["defaults", "> 0.1%", "last 5 versions and not dead"],
|
|
171
159
|
// https://github.com/vitejs/vite/blob/main/packages/plugin-legacy/src/index.ts#L170
|
|
172
160
|
// https://unpkg.com/browse/core-js@3.41.0/
|
|
173
161
|
additionalLegacyPolyfills: [
|
|
174
162
|
"regenerator-runtime/runtime",
|
|
175
|
-
"core-js/es/array/flat",
|
|
176
163
|
"core-js/es/global-this",
|
|
177
|
-
"core-js/es/
|
|
178
|
-
"core-js/es/
|
|
164
|
+
"core-js/es/array/flat",
|
|
165
|
+
"core-js/es/array/flat-map",
|
|
166
|
+
"core-js/es/promise/all-settled",
|
|
167
|
+
"core-js/es/symbol/iterator"
|
|
179
168
|
],
|
|
180
|
-
additionalModernPolyfills: [
|
|
169
|
+
additionalModernPolyfills: [
|
|
170
|
+
"core-js/es/array/flat",
|
|
171
|
+
"core-js/es/array/flat-map",
|
|
172
|
+
"core-js/es/promise/all-settled",
|
|
173
|
+
"core-js/es/symbol/iterator"
|
|
174
|
+
]
|
|
181
175
|
}),
|
|
182
176
|
htmlInjectPlugin({
|
|
183
177
|
BUILD_TIME: envs.stamp,
|
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 getProjects, h as getTemplates, i as checkGitStatusBeforeDestory, j as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, k as getRepos } from "./git-
|
|
8
|
+
import { b as getMonorepoRoot, d as addProjectToWorkspace, e as copyTemplate, f as getProjects, h as getTemplates, i as checkGitStatusBeforeDestory, j as createBackupTag, r as removeProjectFromWorkspace, s as submitAllDeletionChanges, k as getRepos } from "./git-BXY1N76R.js";
|
|
9
9
|
const commitRE = /^(?:revert: )?(?:feat|fix|docs|style|refactor|test|build|chore|debug|tweak|improve)(?:\(.+\))?: .{1,100}/;
|
|
10
10
|
function checkCommit() {
|
|
11
11
|
const msgPath = process.argv[2];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "scripts for seayoo web
|
|
3
|
+
"version": "1.3.8",
|
|
4
|
+
"description": "scripts for seayoo web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@sentry/vite-plugin": "^3.2.2",
|
|
37
37
|
"@vitejs/plugin-legacy": "^6.0.2",
|
|
38
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
38
|
+
"@vitejs/plugin-vue": "^5.2.2",
|
|
39
39
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
40
40
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
41
41
|
"colors": "^1.4.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"eslint-plugin-import": "^2.31.0",
|
|
44
44
|
"eslint-plugin-vue": "^9.33.0",
|
|
45
45
|
"fs-extra": "^11.3.0",
|
|
46
|
-
"inquirer": "^12.
|
|
46
|
+
"inquirer": "^12.5.0",
|
|
47
47
|
"jiti": "^2.4.2",
|
|
48
48
|
"ora": "^8.2.0",
|
|
49
49
|
"postcss-html": "^1.8.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/node": "^22.13.10",
|
|
58
58
|
"@typescript-eslint/utils": "^8.26.1",
|
|
59
59
|
"eslint": "^9.22.0",
|
|
60
|
-
"stylelint": "^16.
|
|
60
|
+
"stylelint": "^16.16.0",
|
|
61
61
|
"stylelint-config-recess-order": "^6.0.0",
|
|
62
62
|
"stylelint-config-standard": "^37.0.0",
|
|
63
63
|
"@seayoo-web/tsconfig": "^1.0.3"
|