@js-toolkit/configs 3.94.0 → 3.94.1
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/package.json +16 -18
- package/paths.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-toolkit/configs",
|
|
3
|
-
"version": "3.94.
|
|
3
|
+
"version": "3.94.1",
|
|
4
4
|
"description": "Preconfigured configurations",
|
|
5
5
|
"author": "VZH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,33 +19,31 @@
|
|
|
19
19
|
"minor-publish": "yarn run build && yarn run minify && npm version minor --no-workspaces-update -m 'v%s' && yarn run copy && cd ./dist && npm publish --access public && git push --follow-tags"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@babel/eslint-parser": "^7.
|
|
23
|
-
"@eslint/compat": "^1.2.
|
|
24
|
-
"@eslint/eslintrc": "^3.
|
|
25
|
-
"@eslint/js": "^9.
|
|
22
|
+
"@babel/eslint-parser": "^7.27.0",
|
|
23
|
+
"@eslint/compat": "^1.2.7",
|
|
24
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
25
|
+
"@eslint/js": "^9.23.0",
|
|
26
26
|
"@types/eslint": "^9.6.1",
|
|
27
|
-
"@types/eslint__eslintrc": "^2.1.2",
|
|
28
|
-
"@types/eslint__js": "^8.42.3",
|
|
29
27
|
"@types/webpack-node-externals": "^3.0.4",
|
|
30
|
-
"copy-webpack-plugin": "^
|
|
28
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
31
29
|
"copyfiles": "^2.4.1",
|
|
32
|
-
"eslint": "^9.
|
|
30
|
+
"eslint": "^9.23.0",
|
|
33
31
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
34
|
-
"eslint-config-prettier": "^
|
|
32
|
+
"eslint-config-prettier": "^10.1.1",
|
|
35
33
|
"eslint-config-standard": "^17.1.0",
|
|
36
34
|
"eslint-plugin-import": "^2.31.0",
|
|
37
35
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
38
|
-
"eslint-plugin-prettier": "^5.2.
|
|
36
|
+
"eslint-plugin-prettier": "^5.2.5",
|
|
39
37
|
"eslint-plugin-promise": "^7.2.1",
|
|
40
|
-
"eslint-plugin-react": "^7.37.
|
|
41
|
-
"eslint-plugin-react-hooks": "5.
|
|
42
|
-
"globals": "^
|
|
38
|
+
"eslint-plugin-react": "^7.37.4",
|
|
39
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
40
|
+
"globals": "^16.0.0",
|
|
43
41
|
"html-webpack-plugin": "^5.6.3",
|
|
44
|
-
"prettier": "^3.
|
|
42
|
+
"prettier": "^3.5.3",
|
|
45
43
|
"rimraf": "^6.0.1",
|
|
46
|
-
"typescript": "^5.
|
|
47
|
-
"typescript-eslint": "^8.
|
|
48
|
-
"webpack": "^5.
|
|
44
|
+
"typescript": "^5.8.2",
|
|
45
|
+
"typescript-eslint": "^8.28.0",
|
|
46
|
+
"webpack": "^5.98.0",
|
|
49
47
|
"webpack-dev-server": "^5.2.0",
|
|
50
48
|
"webpack-node-externals": "^3.0.0"
|
|
51
49
|
}
|
package/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.moduleExtensions=void 0,exports.getFilesGlob=getFilesGlob,exports.getTSExtensions=getTSExtensions,exports.getJSExtensions=getJSExtensions,exports.getSXExtensions=getSXExtensions,exports.getTSXExtensions=getTSXExtensions,exports.getNonSXExtensions=getNonSXExtensions,exports.getPaths=getPaths;const path_1=__importDefault(require("path")),buildConfig_1=require("./buildConfig");function addStar(t){return t.map((t=>`*${t}`))}function getFilesGlob(t,e){return path_1.default.join(e||"","**/*.{")+t.map((t=>t.substring(1))).join(",")+"}"}function getTSExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.includes("ts")));return t?addStar(e):e}function getJSExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.includes("js")));return t?addStar(e):e}function getSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.endsWith("sx")));return t?addStar(e):e}function getTSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.endsWith("tsx")));return t?addStar(e):e}function getNonSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>!t.endsWith("sx")));return t?addStar(e):e}function getPaths(t=process.cwd(),e=(0,buildConfig_1.getBuildConfig)()){return Object.freeze({root:t,nodeModules:{root:(()=>{const o=e.nodeModules.root;try{const e=__dirname.indexOf(o);return e>=0?__dirname.substring(0,e+o.length):path_1.default.resolve(t,o)}catch{return path_1.default.resolve(t,o)}})()},getNodeModulesRoot(t){const e=require.resolve(t),o="node_modules";return e.substring(0,e.indexOf(o)+12)},output:{root:path_1.default.resolve(t,e.output.root)},web:(()=>{const{web:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),assets:path_1.default.resolve(t,o.root,o.assets),staticContent:o.staticContent.map((e=>{const s="string"==typeof e?{path:e}:e;return path_1.default.isAbsolute(s.path)?s:{...s,path:path_1.default.resolve(t,o.root,s.path)}})),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig),output:{path:path_1.default.resolve(t,e.output.root,o.output.root),jsPath:path_1.default.resolve(t,e.output.root,o.output.root,o.output.js)}}:{root:"",sources:"",assets:"",staticContent:[],tsconfig:"",output:{path:"",jsPath:""}}})(),node:(()=>{const{node:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig),output:{path:path_1.default.resolve(t,e.output.root,o.output.root)}}:{root:"",sources:"",tsconfig:"",output:{path:""}}})(),shared:(()=>{const{shared:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig)}:{root:"",sources:"",tsconfig:""}})()})}exports.moduleExtensions=[".js",".mjs",".cjs",".jsx",".mjsx",".ts",".tsx",".mtsx",".d.ts"];const paths=getPaths();exports.default=paths;
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.moduleExtensions=void 0,exports.getFilesGlob=getFilesGlob,exports.getTSExtensions=getTSExtensions,exports.getJSExtensions=getJSExtensions,exports.getSXExtensions=getSXExtensions,exports.getTSXExtensions=getTSXExtensions,exports.getNonSXExtensions=getNonSXExtensions,exports.getPaths=getPaths;const path_1=__importDefault(require("path")),buildConfig_1=require("./buildConfig");function addStar(t){return t.map((t=>`*${t}`))}function getFilesGlob(t,e){return path_1.default.join(e||"","**/*.{")+t.map((t=>t.substring(1))).join(",")+"}"}function getTSExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.includes("ts")));return t?addStar(e):e}function getJSExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.includes("js")));return t?addStar(e):e}function getSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.endsWith("sx")));return t?addStar(e):e}function getTSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>t.endsWith("tsx")));return t?addStar(e):e}function getNonSXExtensions(t=!1){const e=exports.moduleExtensions.filter((t=>!t.endsWith("sx")));return t?addStar(e):e}function getPaths(t=process.cwd(),e=(0,buildConfig_1.getBuildConfig)()){return Object.freeze({root:t,nodeModules:{root:(()=>{const o=e.nodeModules.root;try{const e=__dirname.indexOf(o);return e>=0?__dirname.substring(0,e+o.length):path_1.default.resolve(t,o)}catch{return path_1.default.resolve(t,o)}})()},getNodeModulesRoot(t){const e=require.resolve(t),o="node_modules";return e.substring(0,e.indexOf(o)+12)},output:{root:path_1.default.resolve(t,e.output.root)},web:(()=>{const{web:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),assets:path_1.default.resolve(t,o.root,o.assets),staticContent:o.staticContent.map((e=>{const s="string"==typeof e?{path:e}:e;return path_1.default.isAbsolute(s.path)?s:{...s,path:path_1.default.resolve(t,o.root,s.path)}})),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig),output:{path:path_1.default.resolve(t,e.output.root,o.output.root),jsPath:path_1.default.resolve(t,e.output.root,o.output.root,o.output.js)}}:{root:"",sources:"",assets:"",staticContent:[],tsconfig:"",output:{path:"",jsPath:""}}})(),node:(()=>{const{node:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig),output:{path:path_1.default.resolve(t,e.output.root,o.output.root)}}:{root:"",sources:"",tsconfig:"",output:{path:""}}})(),shared:(()=>{const{shared:o}=e;return o?{root:path_1.default.resolve(t,o.root),sources:path_1.default.resolve(t,o.root,o.sources),tsconfig:path_1.default.resolve(t,o.root,o.tsconfig)}:{root:"",sources:"",tsconfig:""}})()})}exports.moduleExtensions=[".js",".mjs",".cjs",".jsx",".mjsx",".cjsx",".ts",".mts",".cts",".tsx",".mtsx",".ctsx",".d.ts"];const paths=getPaths();exports.default=paths;
|