@gct-paas/build 0.1.4-dev.7 → 0.1.5-dev.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/eslint/eslint-config/eslint-config.cjs +3 -2
- package/dist/eslint/eslint-config/eslint-config.d.ts +4 -3
- package/dist/vite/vite-config/vite-config.cjs +1 -1
- package/dist/vite/vite-config/vite-project-config.cjs +1 -0
- package/es/eslint/eslint-config/eslint-config.d.ts +4 -3
- package/es/eslint/eslint-config/eslint-config.mjs +4 -4
- package/es/vite/vite-config/vite-config.mjs +1 -1
- package/es/vite/vite-config/vite-project-config.mjs +1 -0
- package/package.json +4 -3
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defineEslintConfig = defineEslintConfig;
|
|
7
|
+
var _config = require("eslint/config");
|
|
7
8
|
var _js = _interopRequireDefault(require("@eslint/js"));
|
|
8
9
|
var _typescriptEslint = _interopRequireWildcard(require("typescript-eslint"));
|
|
9
10
|
var _eslintPluginVue = _interopRequireDefault(require("eslint-plugin-vue"));
|
|
@@ -16,9 +17,9 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
19
|
function defineEslintConfig(...configs) {
|
|
19
|
-
return
|
|
20
|
+
return (0, _config.defineConfig)(
|
|
20
21
|
// 基础配置
|
|
21
|
-
_js.default.configs.recommended, _typescriptEslint.default.configs.strict, _typescriptEslint.default.configs.stylistic, _eslintPluginVue.default.configs["flat/recommended"], _recommended.default, _eslintPluginImport.default.flatConfigs.recommended, _eslintPluginImport.default.flatConfigs.warnings, _eslintPluginImport.default.flatConfigs.errors, _eslintPluginImport.default.flatConfigs.typescript,
|
|
22
|
+
_js.default.configs.recommended, _typescriptEslint.default.configs.recommended, _typescriptEslint.default.configs.strict, _typescriptEslint.default.configs.stylistic, _eslintPluginVue.default.configs["flat/recommended"], _recommended.default, _eslintPluginImport.default.flatConfigs.recommended, _eslintPluginImport.default.flatConfigs.warnings, _eslintPluginImport.default.flatConfigs.errors, _eslintPluginImport.default.flatConfigs.typescript,
|
|
22
23
|
// 自定义配置
|
|
23
24
|
{
|
|
24
25
|
ignores: ["**/node_modules", "lerna.json", "package.json", "tsconfig.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "eslint.config.mjs", "**/dist", "**/out", "**/es", "**/lib"],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ConfigWithExtendsArray } from '@eslint/config-helpers';
|
|
2
|
+
import { ConfigArray } from 'typescript-eslint';
|
|
2
3
|
/**
|
|
3
4
|
* 基于基础规则,定义 eslint 配置
|
|
4
5
|
*
|
|
5
6
|
* @export
|
|
6
|
-
* @param {...
|
|
7
|
+
* @param {...ConfigWithExtendsArray} configs
|
|
7
8
|
* @returns {*} {ConfigArray}
|
|
8
9
|
*/
|
|
9
|
-
export declare function defineEslintConfig(...configs:
|
|
10
|
+
export declare function defineEslintConfig(...configs: ConfigWithExtendsArray): ConfigArray;
|
|
@@ -25,7 +25,7 @@ function defineViteConfig(opts = {}) {
|
|
|
25
25
|
lib: {
|
|
26
26
|
entry: _path.default.resolve(cwd, "src/index.ts"),
|
|
27
27
|
formats: ["system", "cjs", "es"],
|
|
28
|
-
cssFileName: "index.min
|
|
28
|
+
cssFileName: "index.min",
|
|
29
29
|
fileName(format) {
|
|
30
30
|
if (format === "system" || format === "systemjs") {
|
|
31
31
|
return `[name].system.min.js`;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ConfigWithExtendsArray } from '@eslint/config-helpers';
|
|
2
|
+
import { ConfigArray } from 'typescript-eslint';
|
|
2
3
|
/**
|
|
3
4
|
* 基于基础规则,定义 eslint 配置
|
|
4
5
|
*
|
|
5
6
|
* @export
|
|
6
|
-
* @param {...
|
|
7
|
+
* @param {...ConfigWithExtendsArray} configs
|
|
7
8
|
* @returns {*} {ConfigArray}
|
|
8
9
|
*/
|
|
9
|
-
export declare function defineEslintConfig(...configs:
|
|
10
|
+
export declare function defineEslintConfig(...configs: ConfigWithExtendsArray): ConfigArray;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { defineConfig } from "eslint/config";
|
|
1
2
|
import eslint from "@eslint/js";
|
|
2
|
-
import tsEslint, {
|
|
3
|
-
parser
|
|
4
|
-
} from "typescript-eslint";
|
|
3
|
+
import tsEslint, { parser } from "typescript-eslint";
|
|
5
4
|
import eslintPluginVue from "eslint-plugin-vue";
|
|
6
5
|
import vueParser from "vue-eslint-parser";
|
|
7
6
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
@@ -9,9 +8,10 @@ import unusedImports from "eslint-plugin-unused-imports";
|
|
|
9
8
|
import eslintPluginImport from "eslint-plugin-import";
|
|
10
9
|
import globals from "globals";
|
|
11
10
|
export function defineEslintConfig(...configs) {
|
|
12
|
-
return
|
|
11
|
+
return defineConfig(
|
|
13
12
|
// 基础配置
|
|
14
13
|
eslint.configs.recommended,
|
|
14
|
+
tsEslint.configs.recommended,
|
|
15
15
|
tsEslint.configs.strict,
|
|
16
16
|
tsEslint.configs.stylistic,
|
|
17
17
|
eslintPluginVue.configs["flat/recommended"],
|
|
@@ -18,7 +18,7 @@ export function defineViteConfig(opts = {}) {
|
|
|
18
18
|
lib: {
|
|
19
19
|
entry: path.resolve(cwd, "src/index.ts"),
|
|
20
20
|
formats: ["system", "cjs", "es"],
|
|
21
|
-
cssFileName: "index.min
|
|
21
|
+
cssFileName: "index.min",
|
|
22
22
|
fileName(format) {
|
|
23
23
|
if (format === "system" || format === "systemjs") {
|
|
24
24
|
return `[name].system.min.js`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/build",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-dev.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@babel/preset-env": "^7.28.6",
|
|
44
44
|
"@commitlint/cli": "^20.3.1",
|
|
45
45
|
"@commitlint/config-conventional": "^20.3.1",
|
|
46
|
+
"@eslint/config-helpers": "^0.5.1",
|
|
46
47
|
"@eslint/js": "^9.39.2",
|
|
47
48
|
"@gct-paas/scss": "^0.1.4-dev.7",
|
|
48
49
|
"@inquirer/prompts": "^8.2.0",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"vite": "^7.3.1",
|
|
91
92
|
"vite-plugin-dts": "^4.5.4",
|
|
92
93
|
"vue-eslint-parser": "^10.2.0",
|
|
93
|
-
"vue-tsc": "^3.2.
|
|
94
|
+
"vue-tsc": "^3.2.4"
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@commitlint/types": "^20.3.1",
|
|
@@ -104,5 +105,5 @@
|
|
|
104
105
|
"typescript": "^5.9.3",
|
|
105
106
|
"unbuild": "^3.6.1"
|
|
106
107
|
},
|
|
107
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "9f347221c356a41f73b4773d2ca477d9d2939356"
|
|
108
109
|
}
|