@seayoo-web/scripts 1.3.5 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -17
  2. package/package.json +5 -6
package/dist/index.js CHANGED
@@ -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/promise",
164
+ "core-js/es/array/flat",
165
+ "core-js/es/array/flat-map",
166
+ "core-js/es/promise/all-settled",
178
167
  "core-js/es/symbol"
179
168
  ],
180
- additionalModernPolyfills: ["core-js/es/symbol"]
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"
174
+ ]
181
175
  }),
182
176
  htmlInjectPlugin({
183
177
  BUILD_TIME: envs.stamp,
@@ -268,7 +262,6 @@ const importEslintConfig = [
268
262
  flatConfigs.recommended,
269
263
  {
270
264
  rules: {
271
- "import/no-deprecated": "error",
272
265
  "import/no-unresolved": "off",
273
266
  "import/named": "off",
274
267
  "import/namespace": "off",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "1.3.5",
4
- "description": "scripts for seayoo web monorepos",
3
+ "version": "1.3.7",
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.1",
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.4.3",
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,10 +57,9 @@
57
57
  "@types/node": "^22.13.10",
58
58
  "@typescript-eslint/utils": "^8.26.1",
59
59
  "eslint": "^9.22.0",
60
- "stylelint": "^16.15.0",
60
+ "stylelint": "^16.16.0",
61
61
  "stylelint-config-recess-order": "^6.0.0",
62
62
  "stylelint-config-standard": "^37.0.0",
63
- "vite": "^6.2.1",
64
63
  "@seayoo-web/tsconfig": "^1.0.3"
65
64
  },
66
65
  "peerDependencies": {