@seayoo-web/scripts 1.3.2 → 1.3.3

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.
@@ -132,6 +132,7 @@ async function getCommitInfo(command, mode, page, deployTo) {
132
132
  console.error("正式环境部署需要先将代码同步到服务器!".red, `发现 ${unCommitChanges} 个 commit 差异`.red);
133
133
  process.exit(1);
134
134
  }
135
+ await execCmd("git pull", true);
135
136
  const [currentCommit, lastDeployTag] = await Promise.all([getCommitHash(), getLastDeployTag(deployTo)]);
136
137
  const commitLogs = await getCommitLogs(currentCommit, lastDeployTag, page || "./");
137
138
  return { hash: currentCommit, logs: commitLogs };
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import vue from "@vitejs/plugin-vue";
7
7
  import vueDevTools from "vite-plugin-vue-devtools";
8
8
  import { existsSync, readFileSync } from "fs";
9
9
  import "colors";
10
- import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-BbsLu9cn.js";
10
+ import { g as getNowTime, a as getCommitInfo, c as createPageDeployTag } from "./git-DCdWCW6L.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";
@@ -143,8 +143,8 @@ function definePageBuildConfig(option) {
143
143
  "safari>=8",
144
144
  "iOS>=8"
145
145
  ],
146
- // 提高现代版本的要求防止某些杂牌浏览器的问题
147
- modernTargets: "edge>=131, firefox>=67, chrome>=72, safari>=12, chromeAndroid>=72, iOS>=12",
146
+ // 提高现代版本的要求以满足一些特性使用,比如 [Promise.allSettled](https://caniuse.com/?search=allSettled)
147
+ modernTargets: "edge>=131, firefox>=67, chrome>=76, chromeAndroid>=76, safari>=13, iOS>=13",
148
148
  // https://github.com/vitejs/vite/blob/main/packages/plugin-legacy/src/index.ts#L170
149
149
  // https://unpkg.com/browse/core-js@3.41.0/
150
150
  additionalLegacyPolyfills: [
@@ -153,7 +153,8 @@ function definePageBuildConfig(option) {
153
153
  "core-js/es/global-this",
154
154
  "core-js/es/promise",
155
155
  "core-js/es/symbol"
156
- ]
156
+ ],
157
+ additionalModernPolyfills: ["core-js/es/symbol"]
157
158
  }),
158
159
  htmlInjectPlugin({
159
160
  BUILD_TIME: envs.stamp,
@@ -207,7 +208,7 @@ function definePageBuildConfig(option) {
207
208
  });
208
209
  }
209
210
  function defineAppBuildConfig(option) {
210
- return defineConfig(async function() {
211
+ return defineConfig(function() {
211
212
  const { plugins = [], build = {}, resolve = {}, ...optionReset } = option || {};
212
213
  const { alias, ...resolveReset } = resolve || {};
213
214
  return {
@@ -261,10 +262,7 @@ const importOrderRuleConfig = {
261
262
  }
262
263
  ],
263
264
  distinctGroup: true,
264
- sortTypesGroup: true,
265
265
  "newlines-between": "always",
266
- "newlines-between-types": "never",
267
- name: true,
268
266
  alphabetize: {
269
267
  order: "asc",
270
268
  caseInsensitive: true
@@ -274,7 +272,7 @@ const importEslintConfig = [
274
272
  flatConfigs.recommended,
275
273
  {
276
274
  rules: {
277
- "import/no-deprecated": "on",
275
+ "import/no-deprecated": "error",
278
276
  "import/no-unresolved": "off",
279
277
  "import/named": "off",
280
278
  "import/namespace": "off",
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 { r as root, b as addProjectToWorkspace, d as copyTemplate, e as getProjects, f as getTemplates, h as checkGitStatusBeforeDestory, i as createBackupTag, j as removeProjectFromWorkspace, s as submitAllDeletionChanges, k as getRepos } from "./git-BbsLu9cn.js";
8
+ import { r as root, b as addProjectToWorkspace, d as copyTemplate, e as getProjects, f as getTemplates, h as checkGitStatusBeforeDestory, i as createBackupTag, j as removeProjectFromWorkspace, s as submitAllDeletionChanges, k as getRepos } from "./git-DCdWCW6L.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "scripts for seayoo web monorepos",
5
5
  "type": "module",
6
6
  "source": "index.ts",
@@ -11,10 +11,7 @@ export declare const importOrderRuleConfig: {
11
11
  group: string;
12
12
  }[];
13
13
  distinctGroup: boolean;
14
- sortTypesGroup: boolean;
15
14
  "newlines-between": string;
16
- "newlines-between-types": string;
17
- name: boolean;
18
15
  alphabetize: {
19
16
  order: string;
20
17
  caseInsensitive: boolean;
@@ -2,4 +2,4 @@ import { type UserConfig } from "vite";
2
2
  /**
3
3
  * 导出一个动态的配置工厂函数
4
4
  */
5
- export declare function defineAppBuildConfig(option?: UserConfig): import("vite").UserConfigFnPromise;
5
+ export declare function defineAppBuildConfig(option?: UserConfig): import("vite").UserConfigFnObject;