Update and refactor
This commit is contained in:
parent
690b46fd2b
commit
d8f224c5cf
@ -1,5 +1,7 @@
|
|||||||
# eslint-rules
|
# eslint-rules
|
||||||
|
|
||||||
|
Personal ESLint config. Guaranteed to have no useless polyfills.
|
||||||
|
|
||||||
## flat config support
|
## flat config support
|
||||||
|
|
||||||
- ❌ [import](https://github.com/import-js/eslint-plugin-import/issues/2556)
|
- ❌ [import](https://github.com/import-js/eslint-plugin-import/issues/2556)
|
||||||
|
6
build.sh
6
build.sh
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
./src/build-local-rules.ts
|
|
||||||
npx dts-bundle-generator "./src/index.ts" -o "./dist/index.d.ts" --project "./tsconfig.build.json" --no-check
|
|
||||||
# printf "\nimport './types.d';" >> "./dist/index.d.ts"
|
|
||||||
NODE_ENV=production ./esbuild.ts
|
|
||||||
sed -i '' '/import.*redirect.*;/d' "dist/index.d.ts"
|
|
1
dist/.npmrc
vendored
Normal file
1
dist/.npmrc
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
shamefully-hoist=true
|
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Generated by dts-bundle-generator v9.2.1
|
// Generated by dts-bundle-generator v9.2.4
|
||||||
|
|
||||||
import { ESLintUtils } from '@typescript-eslint/utils';
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
||||||
import { Rule } from 'eslint';
|
import { Rule } from 'eslint';
|
||||||
|
4
dist/overrides/is-core-module/package.json
vendored
Normal file
4
dist/overrides/is-core-module/package.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"name": "is-core-module",
|
||||||
|
"version": "2.13.1"
|
||||||
|
}
|
4
dist/overrides/supports-preserve-symlinks-flag/package.json
vendored
Normal file
4
dist/overrides/supports-preserve-symlinks-flag/package.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"name": "supports-preserve-symlinks-flag",
|
||||||
|
"version": "1.0.0"
|
||||||
|
}
|
35
dist/package.json
vendored
35
dist/package.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-rules",
|
"name": "@aet/eslint-rules",
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
@ -8,32 +8,31 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@types/eslint": "^8.56.0",
|
"@types/eslint": "^8.56.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
||||||
"@typescript-eslint/parser": "^6.16.0",
|
"@typescript-eslint/parser": "^6.18.1",
|
||||||
"@typescript-eslint/type-utils": "^6.16.0",
|
"@typescript-eslint/type-utils": "^6.18.1",
|
||||||
"@typescript-eslint/utils": "^6.16.0",
|
"@typescript-eslint/utils": "^6.18.1",
|
||||||
"aria-query": "^5.3.0",
|
"aria-query": "^5.3.0",
|
||||||
"axe-core": "4.8.3",
|
"axe-core": "^4.8.3",
|
||||||
"axobject-query": "^4.0.0",
|
"axobject-query": "^4.0.0",
|
||||||
"damerau-levenshtein": "1.0.8",
|
"damerau-levenshtein": "1.0.8",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"emoji-regex": "^10.3.0",
|
"emoji-regex": "^10.3.0",
|
||||||
"enhanced-resolve": "^5.15.0",
|
"enhanced-resolve": "^5.15.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-define-config": "^1.24.1",
|
"eslint-define-config": "^1.24.1",
|
||||||
"eslint-import-resolver-node": "^0.3.9",
|
"eslint-import-resolver-node": "^0.3.9",
|
||||||
"eslint-module-utils": "^2.8.0",
|
"eslint-module-utils": "^2.8.0",
|
||||||
"eslint-plugin-es-x": "7.5.0",
|
"eslint-plugin-es-x": "^7.5.0",
|
||||||
"eslint-plugin-jsdoc": "^46.10.1",
|
"eslint-plugin-jsdoc": "^48.0.2",
|
||||||
"eslint-plugin-unicorn": "^50.0.1",
|
"eslint-plugin-unicorn": "^50.0.1",
|
||||||
"estraverse": "^5.3.0",
|
"estraverse": "^5.3.0",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"get-tsconfig": "^4.7.2",
|
"get-tsconfig": "^4.7.2",
|
||||||
"ignore": "^5.3.0",
|
"ignore": "^5.3.0",
|
||||||
"is-builtin-module": "^3.2.1",
|
"is-builtin-module": "^3.2.1",
|
||||||
"is-core-module": "^2.13.1",
|
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"language-tags": "^1.0.9",
|
"language-tags": "^1.0.9",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
@ -41,5 +40,19 @@
|
|||||||
"resolve": "^2.0.0-next.5",
|
"resolve": "^2.0.0-next.5",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"tsconfig-paths": "^4.2.0"
|
"tsconfig-paths": "^4.2.0"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"is-core-module": "file:./overrides/is-core-module",
|
||||||
|
"supports-preserve-symlinks-flag": "file:./overrides/supports-preserve-symlinks-flag"
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"**/is-core-module": "file:./overrides/is-core-module",
|
||||||
|
"**/supports-preserve-symlinks-flag": "file:./overrides/supports-preserve-symlinks-flag"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"is-core-module": "file:./overrides/is-core-module",
|
||||||
|
"supports-preserve-symlinks-flag": "file:./overrides/supports-preserve-symlinks-flag"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1130
dist/yarn.lock
vendored
Normal file
1130
dist/yarn.lock
vendored
Normal file
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@ -1,28 +1,28 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-configs",
|
"name": "@aet/eslint-configs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./build.sh",
|
"build": "./scripts/build.sh",
|
||||||
"check-import": "./src/check-imports.ts"
|
"check-import": "./scripts/check-imports.ts"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.23.7",
|
"@babel/core": "^7.23.7",
|
||||||
"@babel/plugin-transform-flow-strip-types": "^7.23.3",
|
"@babel/plugin-transform-flow-strip-types": "^7.23.3",
|
||||||
"@babel/preset-env": "^7.23.7",
|
"@babel/preset-env": "^7.23.8",
|
||||||
"@types/babel-plugin-macros": "^3.1.3",
|
"@types/babel-plugin-macros": "^3.1.3",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@types/eslint": "^8.56.0",
|
"@types/eslint": "^8.56.2",
|
||||||
"@types/estree": "^1.0.5",
|
"@types/estree": "^1.0.5",
|
||||||
"@types/estree-jsx": "^1.0.3",
|
"@types/estree-jsx": "^1.0.3",
|
||||||
"@types/lodash": "^4.14.202",
|
"@types/lodash": "^4.14.202",
|
||||||
"@types/node": "^20.10.6",
|
"@types/node": "^20.11.0",
|
||||||
"@typescript-eslint/eslint-plugin": "6.16.0",
|
"@typescript-eslint/eslint-plugin": "6.18.1",
|
||||||
"@typescript-eslint/type-utils": "^6.16.0",
|
"@typescript-eslint/type-utils": "^6.18.1",
|
||||||
"@typescript-eslint/types": "^6.16.0",
|
"@typescript-eslint/types": "^6.18.1",
|
||||||
"@typescript-eslint/typescript-estree": "^6.16.0",
|
"@typescript-eslint/typescript-estree": "^6.18.1",
|
||||||
"@typescript-eslint/utils": "^6.16.0",
|
"@typescript-eslint/utils": "^6.18.1",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
"dts-bundle-generator": "^9.2.1",
|
"dts-bundle-generator": "^9.2.4",
|
||||||
"esbin": "0.0.4",
|
"esbin": "0.0.4",
|
||||||
"esbuild": "0.19.11",
|
"esbuild": "0.19.11",
|
||||||
"esbuild-plugin-alias": "^0.2.1",
|
"esbuild-plugin-alias": "^0.2.1",
|
||||||
@ -36,7 +36,7 @@
|
|||||||
"minimatch": "^9.0.3",
|
"minimatch": "^9.0.3",
|
||||||
"patch-package": "^8.0.0",
|
"patch-package": "^8.0.0",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.2.1",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
@ -47,5 +47,17 @@
|
|||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "all"
|
"trailingComma": "all"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"function-bind": "npm:@nolyfill/function-bind@latest",
|
||||||
|
"has-proto": "npm:@nolyfill/has-proto@latest",
|
||||||
|
"has-symbols": "npm:@nolyfill/has-symbols@latest",
|
||||||
|
"hasown": "npm:@nolyfill/hasown@latest",
|
||||||
|
"isarray": "npm:@nolyfill/isarray@latest",
|
||||||
|
"jsonify": "npm:@nolyfill/jsonify@latest",
|
||||||
|
"object-keys": "npm:@nolyfill/object-keys@latest",
|
||||||
|
"set-function-length": "npm:@nolyfill/set-function-length@latest"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
diff --git a/package.json b/package.json
|
diff --git a/package.json b/package.json
|
||||||
index 79b79cb..bd8c856 100644
|
index 00e5f73..2fa025f 100644
|
||||||
--- a/package.json
|
--- a/package.json
|
||||||
+++ b/package.json
|
+++ b/package.json
|
||||||
@@ -62,8 +62,7 @@
|
@@ -62,8 +62,7 @@
|
||||||
|
302
pnpm-lock.yaml
generated
302
pnpm-lock.yaml
generated
@ -4,6 +4,16 @@ settings:
|
|||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
overrides:
|
||||||
|
function-bind: npm:@nolyfill/function-bind@latest
|
||||||
|
has-proto: npm:@nolyfill/has-proto@latest
|
||||||
|
has-symbols: npm:@nolyfill/has-symbols@latest
|
||||||
|
hasown: npm:@nolyfill/hasown@latest
|
||||||
|
isarray: npm:@nolyfill/isarray@latest
|
||||||
|
jsonify: npm:@nolyfill/jsonify@latest
|
||||||
|
object-keys: npm:@nolyfill/object-keys@latest
|
||||||
|
set-function-length: npm:@nolyfill/set-function-length@latest
|
||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@babel/core':
|
'@babel/core':
|
||||||
specifier: ^7.23.7
|
specifier: ^7.23.7
|
||||||
@ -12,8 +22,8 @@ devDependencies:
|
|||||||
specifier: ^7.23.3
|
specifier: ^7.23.3
|
||||||
version: 7.23.3(@babel/core@7.23.7)
|
version: 7.23.3(@babel/core@7.23.7)
|
||||||
'@babel/preset-env':
|
'@babel/preset-env':
|
||||||
specifier: ^7.23.7
|
specifier: ^7.23.8
|
||||||
version: 7.23.7(@babel/core@7.23.7)
|
version: 7.23.8(@babel/core@7.23.7)
|
||||||
'@types/babel-plugin-macros':
|
'@types/babel-plugin-macros':
|
||||||
specifier: ^3.1.3
|
specifier: ^3.1.3
|
||||||
version: 3.1.3
|
version: 3.1.3
|
||||||
@ -21,8 +31,8 @@ devDependencies:
|
|||||||
specifier: ^7.20.5
|
specifier: ^7.20.5
|
||||||
version: 7.20.5
|
version: 7.20.5
|
||||||
'@types/eslint':
|
'@types/eslint':
|
||||||
specifier: ^8.56.0
|
specifier: ^8.56.2
|
||||||
version: 8.56.0
|
version: 8.56.2
|
||||||
'@types/estree':
|
'@types/estree':
|
||||||
specifier: ^1.0.5
|
specifier: ^1.0.5
|
||||||
version: 1.0.5
|
version: 1.0.5
|
||||||
@ -33,29 +43,29 @@ devDependencies:
|
|||||||
specifier: ^4.14.202
|
specifier: ^4.14.202
|
||||||
version: 4.14.202
|
version: 4.14.202
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^20.10.6
|
specifier: ^20.11.0
|
||||||
version: 20.10.6
|
version: 20.11.0
|
||||||
'@typescript-eslint/eslint-plugin':
|
'@typescript-eslint/eslint-plugin':
|
||||||
specifier: 6.16.0
|
specifier: 6.18.1
|
||||||
version: 6.16.0(@typescript-eslint/parser@6.13.1)(eslint@8.56.0)(typescript@5.3.3)
|
version: 6.18.1(@typescript-eslint/parser@6.13.1)(eslint@8.56.0)(typescript@5.3.3)
|
||||||
'@typescript-eslint/type-utils':
|
'@typescript-eslint/type-utils':
|
||||||
specifier: ^6.16.0
|
specifier: ^6.18.1
|
||||||
version: 6.16.0(eslint@8.56.0)(typescript@5.3.3)
|
version: 6.18.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
'@typescript-eslint/types':
|
'@typescript-eslint/types':
|
||||||
specifier: ^6.16.0
|
specifier: ^6.18.1
|
||||||
version: 6.16.0
|
version: 6.18.1
|
||||||
'@typescript-eslint/typescript-estree':
|
'@typescript-eslint/typescript-estree':
|
||||||
specifier: ^6.16.0
|
specifier: ^6.18.1
|
||||||
version: 6.16.0(typescript@5.3.3)
|
version: 6.18.1(typescript@5.3.3)
|
||||||
'@typescript-eslint/utils':
|
'@typescript-eslint/utils':
|
||||||
specifier: ^6.16.0
|
specifier: ^6.18.1
|
||||||
version: 6.16.0(eslint@8.56.0)(typescript@5.3.3)
|
version: 6.18.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
babel-plugin-macros:
|
babel-plugin-macros:
|
||||||
specifier: ^3.1.0
|
specifier: ^3.1.0
|
||||||
version: 3.1.0
|
version: 3.1.0
|
||||||
dts-bundle-generator:
|
dts-bundle-generator:
|
||||||
specifier: ^9.2.1
|
specifier: ^9.2.4
|
||||||
version: 9.2.1
|
version: 9.2.4
|
||||||
esbin:
|
esbin:
|
||||||
specifier: 0.0.4
|
specifier: 0.0.4
|
||||||
version: 0.0.4(esbuild@0.19.11)
|
version: 0.0.4(esbuild@0.19.11)
|
||||||
@ -96,8 +106,8 @@ devDependencies:
|
|||||||
specifier: ^1.0.0
|
specifier: ^1.0.0
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.1.1
|
specifier: ^3.2.1
|
||||||
version: 3.1.1
|
version: 3.2.1
|
||||||
prop-types:
|
prop-types:
|
||||||
specifier: ^15.8.1
|
specifier: ^15.8.1
|
||||||
version: 15.8.1
|
version: 15.8.1
|
||||||
@ -170,14 +180,14 @@ packages:
|
|||||||
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
|
resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helper-builder-binary-assignment-operator-visitor@7.22.15:
|
/@babel/helper-builder-binary-assignment-operator-visitor@7.22.15:
|
||||||
resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==}
|
resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helper-compilation-targets@7.23.6:
|
/@babel/helper-compilation-targets@7.23.6:
|
||||||
@ -260,7 +270,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==}
|
resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helper-module-imports@7.22.15:
|
/@babel/helper-module-imports@7.22.15:
|
||||||
@ -288,7 +298,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}
|
resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helper-plugin-utils@7.22.5:
|
/@babel/helper-plugin-utils@7.22.5:
|
||||||
@ -331,7 +341,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==}
|
resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helper-split-export-declaration@7.22.6:
|
/@babel/helper-split-export-declaration@7.22.6:
|
||||||
@ -362,7 +372,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/helper-function-name': 7.23.0
|
'@babel/helper-function-name': 7.23.0
|
||||||
'@babel/template': 7.22.15
|
'@babel/template': 7.22.15
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/helpers@7.23.7:
|
/@babel/helpers@7.23.7:
|
||||||
@ -700,8 +710,8 @@ packages:
|
|||||||
'@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.7)
|
'@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.7)
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/plugin-transform-classes@7.23.5(@babel/core@7.23.7):
|
/@babel/plugin-transform-classes@7.23.8(@babel/core@7.23.7):
|
||||||
resolution: {integrity: sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==}
|
resolution: {integrity: sha512-yAYslGsY1bX6Knmg46RjiCiNSwJKv2IUC8qOdYKqMMr0491SXFhcHqOdRDeCRohOOIzwN/90C6mQ9qAKgrP7dg==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@babel/core': ^7.0.0-0
|
'@babel/core': ^7.0.0-0
|
||||||
@ -711,7 +721,6 @@ packages:
|
|||||||
'@babel/helper-compilation-targets': 7.23.6
|
'@babel/helper-compilation-targets': 7.23.6
|
||||||
'@babel/helper-environment-visitor': 7.22.20
|
'@babel/helper-environment-visitor': 7.22.20
|
||||||
'@babel/helper-function-name': 7.23.0
|
'@babel/helper-function-name': 7.23.0
|
||||||
'@babel/helper-optimise-call-expression': 7.22.5
|
|
||||||
'@babel/helper-plugin-utils': 7.22.5
|
'@babel/helper-plugin-utils': 7.22.5
|
||||||
'@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.7)
|
'@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.7)
|
||||||
'@babel/helper-split-export-declaration': 7.22.6
|
'@babel/helper-split-export-declaration': 7.22.6
|
||||||
@ -1166,8 +1175,8 @@ packages:
|
|||||||
'@babel/helper-plugin-utils': 7.22.5
|
'@babel/helper-plugin-utils': 7.22.5
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@babel/preset-env@7.23.7(@babel/core@7.23.7):
|
/@babel/preset-env@7.23.8(@babel/core@7.23.7):
|
||||||
resolution: {integrity: sha512-SY27X/GtTz/L4UryMNJ6p4fH4nsgWbz84y9FE0bQeWJP6O5BhgVCt53CotQKHCOeXJel8VyhlhujhlltKms/CA==}
|
resolution: {integrity: sha512-lFlpmkApLkEP6woIKprO6DO60RImpatTQKtz4sUcDjVcK8M8mQ4sZsuxaTMNOZf0sqAq/ReYW1ZBHnOQwKpLWA==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@babel/core': ^7.0.0-0
|
'@babel/core': ^7.0.0-0
|
||||||
@ -1206,7 +1215,7 @@ packages:
|
|||||||
'@babel/plugin-transform-block-scoping': 7.23.4(@babel/core@7.23.7)
|
'@babel/plugin-transform-block-scoping': 7.23.4(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.23.7)
|
'@babel/plugin-transform-class-properties': 7.23.3(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-class-static-block': 7.23.4(@babel/core@7.23.7)
|
'@babel/plugin-transform-class-static-block': 7.23.4(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-classes': 7.23.5(@babel/core@7.23.7)
|
'@babel/plugin-transform-classes': 7.23.8(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-computed-properties': 7.23.3(@babel/core@7.23.7)
|
'@babel/plugin-transform-computed-properties': 7.23.3(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-destructuring': 7.23.3(@babel/core@7.23.7)
|
'@babel/plugin-transform-destructuring': 7.23.3(@babel/core@7.23.7)
|
||||||
'@babel/plugin-transform-dotall-regex': 7.23.3(@babel/core@7.23.7)
|
'@babel/plugin-transform-dotall-regex': 7.23.3(@babel/core@7.23.7)
|
||||||
@ -1264,7 +1273,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.23.7
|
'@babel/core': 7.23.7
|
||||||
'@babel/helper-plugin-utils': 7.22.5
|
'@babel/helper-plugin-utils': 7.22.5
|
||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.6
|
||||||
esutils: 2.0.3
|
esutils: 2.0.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@ -1639,6 +1648,52 @@ packages:
|
|||||||
fastq: 1.15.0
|
fastq: 1.15.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/function-bind@1.0.21:
|
||||||
|
resolution: {integrity: sha512-0Jsaoxp/9HJqCa3GzEzJcoi4+VfupD/o+1pBG0qJ0X3d+sKbbfSej2Faiyp0fTHH36mhsdAKi2TahEx9JV08ZA==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/has-proto@1.0.24:
|
||||||
|
resolution: {integrity: sha512-BzN7A7nxXiYzrM82XULGpnX7wIjJ19UC9/3Qy5oN+0+GwrOPt+UtIdiMGPi3+jiOAzkoivW2bhraa482nvj8FA==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/has-symbols@1.0.21:
|
||||||
|
resolution: {integrity: sha512-fx+nNcrPdXoPH+nKNlqRfeOOxCu7IqFAh6KqzVbuHdu5QHpPT74TmobOQzruTYq+nHeSsw3+9uc32aSa4jrkNw==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/hasown@1.0.25:
|
||||||
|
resolution: {integrity: sha512-RhoW4Hk6B4/DM8B6sjbCkVJkhmtycA38cURrC489u4lwb/YafpUeknuLRzBoaNWvfLqkyR3rM/t0aa8U2/tvkQ==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/isarray@1.0.25:
|
||||||
|
resolution: {integrity: sha512-wAC/8sqF2qaHrZpIxTR/9qc0XFyLW4WHX6gHVNpzKtCP8DuAL3L7eQwsMUWCg1ANL/Da3XiuueTx1J/S9piqtQ==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/jsonify@1.0.25:
|
||||||
|
resolution: {integrity: sha512-hGOAKmiSGPfqeJqezU0KIoUZ1XliCOv1r2GzEnSsA2e1+Vsk2dG4sXXJJ7hqT6fdT587yCMmcw666Cfqby/99w==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/object-keys@1.0.24:
|
||||||
|
resolution: {integrity: sha512-ZNittZRfbnmkpYvJhq/FK5U51717BTJ74XOkZQYgfxT8/1EHkPZ8Z7O7vmoQwrIfXbezAMD8I9Erh0+H8gOv4Q==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dependencies:
|
||||||
|
'@nolyfill/shared': 1.0.24
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/set-function-length@1.0.25:
|
||||||
|
resolution: {integrity: sha512-Gcr9ienJBibryVC62vkV4k3Od0IZBUgwwiO+snBtK6M8oGuI0PPptzwBDQWqkJsYlXPacrebBk8J2w1X/JhdTw==}
|
||||||
|
engines: {node: '>=12.4.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@nolyfill/shared@1.0.24:
|
||||||
|
resolution: {integrity: sha512-TGCpg3k5N7jj9AgU/1xFw9K1g4AC1vEE5ZFkW77oPNNLzprxT17PvFaNr/lr3BkkT5fJ5LNMntaTIq+pyWaeEA==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@types/babel-plugin-macros@3.1.3:
|
/@types/babel-plugin-macros@3.1.3:
|
||||||
resolution: {integrity: sha512-JU+MgpsHK3taY18mBETy5XlwY6LVngte7QXYzUuXEaaX0CN8dBqbjXtADe+gJmkSQE1FJHufzPj++OWZlhRmGw==}
|
resolution: {integrity: sha512-JU+MgpsHK3taY18mBETy5XlwY6LVngte7QXYzUuXEaaX0CN8dBqbjXtADe+gJmkSQE1FJHufzPj++OWZlhRmGw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -1674,8 +1729,8 @@ packages:
|
|||||||
'@babel/types': 7.23.5
|
'@babel/types': 7.23.5
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/eslint@8.56.0:
|
/@types/eslint@8.56.2:
|
||||||
resolution: {integrity: sha512-FlsN0p4FhuYRjIxpbdXovvHQhtlG05O1GG/RNWvdAxTboR438IOTwmrY/vLA+Xfgg06BTkP045M3vpFwTMv1dg==}
|
resolution: {integrity: sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/estree': 1.0.5
|
'@types/estree': 1.0.5
|
||||||
'@types/json-schema': 7.0.15
|
'@types/json-schema': 7.0.15
|
||||||
@ -1699,8 +1754,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}
|
resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/node@20.10.6:
|
/@types/node@20.11.0:
|
||||||
resolution: {integrity: sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==}
|
resolution: {integrity: sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 5.26.5
|
undici-types: 5.26.5
|
||||||
dev: true
|
dev: true
|
||||||
@ -1713,8 +1768,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==}
|
resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/eslint-plugin@6.16.0(@typescript-eslint/parser@6.13.1)(eslint@8.56.0)(typescript@5.3.3):
|
/@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.13.1)(eslint@8.56.0)(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==}
|
resolution: {integrity: sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
|
'@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
|
||||||
@ -1726,10 +1781,10 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/regexpp': 4.10.0
|
'@eslint-community/regexpp': 4.10.0
|
||||||
'@typescript-eslint/parser': 6.13.1(eslint@8.56.0)(typescript@5.3.3)
|
'@typescript-eslint/parser': 6.13.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
'@typescript-eslint/scope-manager': 6.16.0
|
'@typescript-eslint/scope-manager': 6.18.1
|
||||||
'@typescript-eslint/type-utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3)
|
'@typescript-eslint/type-utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
'@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3)
|
'@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
'@typescript-eslint/visitor-keys': 6.16.0
|
'@typescript-eslint/visitor-keys': 6.18.1
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
eslint: 8.56.0
|
eslint: 8.56.0
|
||||||
graphemer: 1.4.0
|
graphemer: 1.4.0
|
||||||
@ -1771,16 +1826,16 @@ packages:
|
|||||||
'@typescript-eslint/visitor-keys': 6.13.1
|
'@typescript-eslint/visitor-keys': 6.13.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/scope-manager@6.16.0:
|
/@typescript-eslint/scope-manager@6.18.1:
|
||||||
resolution: {integrity: sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==}
|
resolution: {integrity: sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.16.0
|
'@typescript-eslint/types': 6.18.1
|
||||||
'@typescript-eslint/visitor-keys': 6.16.0
|
'@typescript-eslint/visitor-keys': 6.18.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/type-utils@6.16.0(eslint@8.56.0)(typescript@5.3.3):
|
/@typescript-eslint/type-utils@6.18.1(eslint@8.56.0)(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==}
|
resolution: {integrity: sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.0.0 || ^8.0.0
|
eslint: ^7.0.0 || ^8.0.0
|
||||||
@ -1789,8 +1844,8 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/typescript-estree': 6.16.0(typescript@5.3.3)
|
'@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3)
|
||||||
'@typescript-eslint/utils': 6.16.0(eslint@8.56.0)(typescript@5.3.3)
|
'@typescript-eslint/utils': 6.18.1(eslint@8.56.0)(typescript@5.3.3)
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
eslint: 8.56.0
|
eslint: 8.56.0
|
||||||
ts-api-utils: 1.0.3(typescript@5.3.3)
|
ts-api-utils: 1.0.3(typescript@5.3.3)
|
||||||
@ -1804,8 +1859,8 @@ packages:
|
|||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/types@6.16.0:
|
/@typescript-eslint/types@6.18.1:
|
||||||
resolution: {integrity: sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==}
|
resolution: {integrity: sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@ -1830,8 +1885,8 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/typescript-estree@6.16.0(typescript@5.3.3):
|
/@typescript-eslint/typescript-estree@6.18.1(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==}
|
resolution: {integrity: sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
typescript: '*'
|
typescript: '*'
|
||||||
@ -1839,8 +1894,8 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.16.0
|
'@typescript-eslint/types': 6.18.1
|
||||||
'@typescript-eslint/visitor-keys': 6.16.0
|
'@typescript-eslint/visitor-keys': 6.18.1
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
@ -1852,8 +1907,8 @@ packages:
|
|||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/utils@6.16.0(eslint@8.56.0)(typescript@5.3.3):
|
/@typescript-eslint/utils@6.18.1(eslint@8.56.0)(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==}
|
resolution: {integrity: sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.0.0 || ^8.0.0
|
eslint: ^7.0.0 || ^8.0.0
|
||||||
@ -1861,9 +1916,9 @@ packages:
|
|||||||
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
|
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
|
||||||
'@types/json-schema': 7.0.15
|
'@types/json-schema': 7.0.15
|
||||||
'@types/semver': 7.5.6
|
'@types/semver': 7.5.6
|
||||||
'@typescript-eslint/scope-manager': 6.16.0
|
'@typescript-eslint/scope-manager': 6.18.1
|
||||||
'@typescript-eslint/types': 6.16.0
|
'@typescript-eslint/types': 6.18.1
|
||||||
'@typescript-eslint/typescript-estree': 6.16.0(typescript@5.3.3)
|
'@typescript-eslint/typescript-estree': 6.18.1(typescript@5.3.3)
|
||||||
eslint: 8.56.0
|
eslint: 8.56.0
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@ -1879,11 +1934,11 @@ packages:
|
|||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/visitor-keys@6.16.0:
|
/@typescript-eslint/visitor-keys@6.18.1:
|
||||||
resolution: {integrity: sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==}
|
resolution: {integrity: sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.16.0
|
'@typescript-eslint/types': 6.18.1
|
||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@ -2020,17 +2075,6 @@ packages:
|
|||||||
fill-range: 7.0.1
|
fill-range: 7.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/browserslist@4.22.1:
|
|
||||||
resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==}
|
|
||||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
|
||||||
hasBin: true
|
|
||||||
dependencies:
|
|
||||||
caniuse-lite: 1.0.30001565
|
|
||||||
electron-to-chromium: 1.4.601
|
|
||||||
node-releases: 2.0.14
|
|
||||||
update-browserslist-db: 1.0.13(browserslist@4.22.1)
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/browserslist@4.22.2:
|
/browserslist@4.22.2:
|
||||||
resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}
|
resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}
|
||||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
||||||
@ -2045,9 +2089,9 @@ packages:
|
|||||||
/call-bind@1.0.5:
|
/call-bind@1.0.5:
|
||||||
resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==}
|
resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
function-bind: 1.1.2
|
function-bind: /@nolyfill/function-bind@1.0.21
|
||||||
get-intrinsic: 1.2.2
|
get-intrinsic: 1.2.2
|
||||||
set-function-length: 1.1.1
|
set-function-length: /@nolyfill/set-function-length@1.0.25
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/callsites@3.1.0:
|
/callsites@3.1.0:
|
||||||
@ -2126,7 +2170,7 @@ packages:
|
|||||||
/core-js-compat@3.33.3:
|
/core-js-compat@3.33.3:
|
||||||
resolution: {integrity: sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==}
|
resolution: {integrity: sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==}
|
||||||
dependencies:
|
dependencies:
|
||||||
browserslist: 4.22.1
|
browserslist: 4.22.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/cosmiconfig@7.1.0:
|
/cosmiconfig@7.1.0:
|
||||||
@ -2165,15 +2209,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/define-data-property@1.1.1:
|
|
||||||
resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dependencies:
|
|
||||||
get-intrinsic: 1.2.2
|
|
||||||
gopd: 1.0.1
|
|
||||||
has-property-descriptors: 1.0.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/dir-glob@3.0.1:
|
/dir-glob@3.0.1:
|
||||||
resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
|
resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@ -2188,8 +2223,8 @@ packages:
|
|||||||
esutils: 2.0.3
|
esutils: 2.0.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/dts-bundle-generator@9.2.1:
|
/dts-bundle-generator@9.2.4:
|
||||||
resolution: {integrity: sha512-sMyIGJcn+FSc4f4VzRgX4muZS2uG91c/DjC++HkpZJyudGedSpGNR5bY9HEkSyyYFay0ERzjoDM7uKgUycaRvw==}
|
resolution: {integrity: sha512-DUwg9NqwB4Gu+dNXUGW9v/Rc+sxTYrIHsvByKCfu0KinAT6dvmAjM0W+CtecdFGhuT753z9aNm1JpVeIPGIZjw==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2482,10 +2517,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
|
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/function-bind@1.1.2:
|
|
||||||
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/gensync@1.0.0-beta.2:
|
/gensync@1.0.0-beta.2:
|
||||||
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
|
resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
|
||||||
engines: {node: '>=6.9.0'}
|
engines: {node: '>=6.9.0'}
|
||||||
@ -2499,10 +2530,10 @@ packages:
|
|||||||
/get-intrinsic@1.2.2:
|
/get-intrinsic@1.2.2:
|
||||||
resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==}
|
resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
function-bind: 1.1.2
|
function-bind: /@nolyfill/function-bind@1.0.21
|
||||||
has-proto: 1.0.1
|
has-proto: /@nolyfill/has-proto@1.0.24
|
||||||
has-symbols: 1.0.3
|
has-symbols: /@nolyfill/has-symbols@1.0.21
|
||||||
hasown: 2.0.0
|
hasown: /@nolyfill/hasown@1.0.25
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/glob-parent@5.1.2:
|
/glob-parent@5.1.2:
|
||||||
@ -2554,12 +2585,6 @@ packages:
|
|||||||
slash: 3.0.0
|
slash: 3.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/gopd@1.0.1:
|
|
||||||
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
|
|
||||||
dependencies:
|
|
||||||
get-intrinsic: 1.2.2
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/graceful-fs@4.2.11:
|
/graceful-fs@4.2.11:
|
||||||
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
|
||||||
dev: true
|
dev: true
|
||||||
@ -2578,29 +2603,6 @@ packages:
|
|||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/has-property-descriptors@1.0.1:
|
|
||||||
resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==}
|
|
||||||
dependencies:
|
|
||||||
get-intrinsic: 1.2.2
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/has-proto@1.0.1:
|
|
||||||
resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/has-symbols@1.0.3:
|
|
||||||
resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/hasown@2.0.0:
|
|
||||||
resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dependencies:
|
|
||||||
function-bind: 1.1.2
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/ignore@5.3.0:
|
/ignore@5.3.0:
|
||||||
resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==}
|
resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==}
|
||||||
engines: {node: '>= 4'}
|
engines: {node: '>= 4'}
|
||||||
@ -2637,7 +2639,7 @@ packages:
|
|||||||
/is-core-module@2.13.1:
|
/is-core-module@2.13.1:
|
||||||
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
|
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
hasown: 2.0.0
|
hasown: /@nolyfill/hasown@1.0.25
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/is-docker@2.2.1:
|
/is-docker@2.2.1:
|
||||||
@ -2680,10 +2682,6 @@ packages:
|
|||||||
is-docker: 2.2.1
|
is-docker: 2.2.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/isarray@2.0.5:
|
|
||||||
resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/isexe@2.0.0:
|
/isexe@2.0.0:
|
||||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||||
dev: true
|
dev: true
|
||||||
@ -2740,9 +2738,9 @@ packages:
|
|||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
dependencies:
|
dependencies:
|
||||||
call-bind: 1.0.5
|
call-bind: 1.0.5
|
||||||
isarray: 2.0.5
|
isarray: /@nolyfill/isarray@1.0.25
|
||||||
jsonify: 0.0.1
|
jsonify: /@nolyfill/jsonify@1.0.25
|
||||||
object-keys: 1.1.1
|
object-keys: /@nolyfill/object-keys@1.0.24
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/json5@2.2.3:
|
/json5@2.2.3:
|
||||||
@ -2759,10 +2757,6 @@ packages:
|
|||||||
graceful-fs: 4.2.11
|
graceful-fs: 4.2.11
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/jsonify@0.0.1:
|
|
||||||
resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/keyv@4.5.4:
|
/keyv@4.5.4:
|
||||||
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
|
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2880,11 +2874,6 @@ packages:
|
|||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/object-keys@1.1.1:
|
|
||||||
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/once@1.4.0:
|
/once@1.4.0:
|
||||||
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
|
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -3038,8 +3027,8 @@ packages:
|
|||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier@3.1.1:
|
/prettier@3.2.1:
|
||||||
resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==}
|
resolution: {integrity: sha512-qSUWshj1IobVbKc226Gw2pync27t0Kf0EdufZa9j7uBSJay1CC+B3K5lAAZoqgX3ASiKuWsk6OmzKRetXNObWg==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
@ -3162,16 +3151,6 @@ packages:
|
|||||||
lru-cache: 6.0.0
|
lru-cache: 6.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/set-function-length@1.1.1:
|
|
||||||
resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==}
|
|
||||||
engines: {node: '>= 0.4'}
|
|
||||||
dependencies:
|
|
||||||
define-data-property: 1.1.1
|
|
||||||
get-intrinsic: 1.2.2
|
|
||||||
gopd: 1.0.1
|
|
||||||
has-property-descriptors: 1.0.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/shebang-command@2.0.0:
|
/shebang-command@2.0.0:
|
||||||
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
|
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@ -3334,17 +3313,6 @@ packages:
|
|||||||
engines: {node: '>= 10.0.0'}
|
engines: {node: '>= 10.0.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/update-browserslist-db@1.0.13(browserslist@4.22.1):
|
|
||||||
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
|
|
||||||
hasBin: true
|
|
||||||
peerDependencies:
|
|
||||||
browserslist: '>= 4.21.0'
|
|
||||||
dependencies:
|
|
||||||
browserslist: 4.22.1
|
|
||||||
escalade: 3.1.1
|
|
||||||
picocolors: 1.0.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/update-browserslist-db@1.0.13(browserslist@4.22.2):
|
/update-browserslist-db@1.0.13(browserslist@4.22.2):
|
||||||
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
|
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env tsx
|
#!/usr/bin/env tsx
|
||||||
import assert from 'node:assert';
|
import assert from 'node:assert';
|
||||||
import { readFileSync } from 'node:fs';
|
import { readFileSync, promises as fs } from 'node:fs';
|
||||||
import { resolve, extname, relative } from 'node:path';
|
import { resolve, extname, relative } from 'node:path';
|
||||||
import { isBuiltin } from 'node:module';
|
import { isBuiltin } from 'node:module';
|
||||||
import esbuild from 'esbuild';
|
import esbuild from 'esbuild';
|
||||||
@ -9,13 +9,15 @@ import * as babel from '@babel/core';
|
|||||||
import { memoize } from 'lodash';
|
import { memoize } from 'lodash';
|
||||||
import { gray, green } from 'picocolors';
|
import { gray, green } from 'picocolors';
|
||||||
import type { types as t, types } from '@babel/core';
|
import type { types as t, types } from '@babel/core';
|
||||||
import { dependencies } from './dist/package.json';
|
import { dependencies } from '../dist/package.json';
|
||||||
import { createMacro, type MacroHandler } from 'babel-plugin-macros';
|
import { createMacro, type MacroHandler } from 'babel-plugin-macros';
|
||||||
import * as polyfill from './src/polyfill';
|
import * as polyfill from '../src/polyfill';
|
||||||
|
import { buildLocalRules } from '../src/build-local-rules';
|
||||||
|
import { execSync } from 'node:child_process';
|
||||||
|
|
||||||
const polyfills = Object.keys(polyfill);
|
const polyfills = Object.keys(polyfill);
|
||||||
|
|
||||||
const ENV = process.env.NODE_ENV || 'development';
|
const ENV = (process.env.NODE_ENV ??= 'production');
|
||||||
const PROD = ENV === 'production';
|
const PROD = ENV === 'production';
|
||||||
|
|
||||||
class HandlerMap {
|
class HandlerMap {
|
||||||
@ -96,6 +98,10 @@ const map = new HandlerMap()
|
|||||||
'string.prototype.matchall',
|
'string.prototype.matchall',
|
||||||
proto(t => t.identifier('matchAll')),
|
proto(t => t.identifier('matchAll')),
|
||||||
)
|
)
|
||||||
|
.set(
|
||||||
|
'string.prototype.includes',
|
||||||
|
proto(t => t.identifier('includes')),
|
||||||
|
)
|
||||||
.set(
|
.set(
|
||||||
'object.groupby',
|
'object.groupby',
|
||||||
replace(t =>
|
replace(t =>
|
||||||
@ -107,7 +113,7 @@ const map = new HandlerMap()
|
|||||||
);
|
);
|
||||||
|
|
||||||
// es-iterator-helpers/Iterator.prototype.*
|
// es-iterator-helpers/Iterator.prototype.*
|
||||||
const polyfillPath = resolve(__dirname, './src/polyfill.ts');
|
const polyfillPath = resolve(__dirname, '../src/polyfill.ts');
|
||||||
const requirePolyfill = (t: typeof types, name: string) =>
|
const requirePolyfill = (t: typeof types, name: string) =>
|
||||||
t.memberExpression(
|
t.memberExpression(
|
||||||
t.callExpression(t.identifier('require'), [t.stringLiteral(polyfillPath)]),
|
t.callExpression(t.identifier('require'), [t.stringLiteral(polyfillPath)]),
|
||||||
@ -124,6 +130,11 @@ for (const name of polyfills) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
map.set(
|
||||||
|
'safe-regex-test',
|
||||||
|
replace(t => requirePolyfill(t, 'safeRegexTest')),
|
||||||
|
);
|
||||||
|
|
||||||
function replace(getReplacement: (types: typeof t) => t.Expression): MacroHandler {
|
function replace(getReplacement: (types: typeof t) => t.Expression): MacroHandler {
|
||||||
return ({ references, babel: { types: t } }) => {
|
return ({ references, babel: { types: t } }) => {
|
||||||
references.default.forEach(referencePath => {
|
references.default.forEach(referencePath => {
|
||||||
@ -228,6 +239,7 @@ const plugins: Plugin[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
if (process.env.DEBUG) {
|
if (process.env.DEBUG) {
|
||||||
plugins.push({
|
plugins.push({
|
||||||
name: 'deps-check',
|
name: 'deps-check',
|
||||||
@ -252,7 +264,7 @@ if (process.env.DEBUG) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main(
|
async function bundle(
|
||||||
entry: string,
|
entry: string,
|
||||||
outfile = entry
|
outfile = entry
|
||||||
.replace('./packages/', './dist/')
|
.replace('./packages/', './dist/')
|
||||||
@ -277,22 +289,68 @@ async function main(
|
|||||||
js: '/* eslint-disable */',
|
js: '/* eslint-disable */',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/eslint-types/define-config-plugin-types/issues/32
|
|
||||||
// const distPackageJson = JSON.parse(await fs.readFile('./dist/package.json', 'utf-8'));
|
|
||||||
// Object.assign(distPackageJson.dependencies, pkg.dependencies);
|
|
||||||
// await fs.writeFile(
|
|
||||||
// './dist/package.json',
|
|
||||||
// JSON.stringify(distPackageJson, null, 2) + '\n',
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main('./packages/eslint-plugin-react/index.js');
|
async function editPackageJson() {
|
||||||
main('./packages/eslint-plugin-import/src/index.js');
|
const [state, setState] = await useText('./dist/package.json');
|
||||||
main('./packages/eslint-plugin-jsx-a11y/src/index.js');
|
const distPackageJson = JSON.parse(state);
|
||||||
main('./packages/eslint-plugin-react-hooks/index.ts');
|
|
||||||
main('./packages/eslint-plugin-n/lib/index.js', './dist/eslint-plugin-n/index.js');
|
const overrideList = await fs.readdir('dist/overrides');
|
||||||
main('./packages/eslint-import-resolver-typescript/src/index.ts');
|
const npmOverrides = Object.fromEntries(
|
||||||
main('./src/rules/index.ts', './dist/eslint-plugin-rules/index.js');
|
overrideList.map(name => [name, `file:./overrides/${name}`]),
|
||||||
main('./src/local/index.ts', './dist/eslint-plugin-local/index.js');
|
);
|
||||||
main('./src/index.ts', './dist/index.js');
|
Object.assign(distPackageJson, {
|
||||||
|
overrides: npmOverrides,
|
||||||
|
resolutions: Object.fromEntries(
|
||||||
|
overrideList.map(name => [`**/${name}`, `file:./overrides/${name}`]),
|
||||||
|
),
|
||||||
|
pnpm: { overrides: npmOverrides },
|
||||||
|
});
|
||||||
|
|
||||||
|
await setState(JSON.stringify(distPackageJson, null, 2) + '\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
async function useText(path: string) {
|
||||||
|
const state = await fs.readFile(path, 'utf-8');
|
||||||
|
const setState = (text: string) => fs.writeFile(path, text);
|
||||||
|
return [state, setState] as const;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
console.log('Building local rules...');
|
||||||
|
await buildLocalRules();
|
||||||
|
|
||||||
|
console.log('Building type definitions...');
|
||||||
|
execSync(
|
||||||
|
[
|
||||||
|
'npx',
|
||||||
|
'dts-bundle-generator',
|
||||||
|
'"./src/index.ts"',
|
||||||
|
'-o',
|
||||||
|
'"./dist/index.d.ts"',
|
||||||
|
'--project',
|
||||||
|
'"./tsconfig.build.json"',
|
||||||
|
'--no-check',
|
||||||
|
].join(' '),
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log('Building packages...');
|
||||||
|
await Promise.all([
|
||||||
|
bundle('./packages/eslint-plugin-react/index.js'),
|
||||||
|
bundle('./packages/eslint-plugin-import/src/index.js'),
|
||||||
|
bundle('./packages/eslint-plugin-jsx-a11y/src/index.js'),
|
||||||
|
bundle('./packages/eslint-plugin-react-hooks/index.ts'),
|
||||||
|
bundle('./packages/eslint-plugin-n/lib/index.js', './dist/eslint-plugin-n/index.js'),
|
||||||
|
bundle('./packages/eslint-import-resolver-typescript/src/index.ts'),
|
||||||
|
bundle('./src/rules/index.ts', './dist/eslint-plugin-rules/index.js'),
|
||||||
|
bundle('./src/local/index.ts', './dist/eslint-plugin-local/index.js'),
|
||||||
|
bundle('./src/index.ts', './dist/index.js'),
|
||||||
|
editPackageJson(),
|
||||||
|
]);
|
||||||
|
|
||||||
|
console.log('Removing redirect...');
|
||||||
|
const [distIndex, setDistIndex] = await useText('./dist/index.js');
|
||||||
|
await setDistIndex(distIndex.replace(/import.*redirect.*;/g, ''));
|
||||||
|
}
|
||||||
|
|
||||||
|
void main();
|
69
scripts/check-imports.ts
Executable file
69
scripts/check-imports.ts
Executable file
@ -0,0 +1,69 @@
|
|||||||
|
#!/usr/bin/env bun
|
||||||
|
import glob from 'fast-glob';
|
||||||
|
import fs from 'fs';
|
||||||
|
import { builtinModules } from 'module';
|
||||||
|
import { uniq } from 'lodash';
|
||||||
|
import { dependencies, peerDependencies, overrides } from '../dist/package.json';
|
||||||
|
|
||||||
|
function checkImports() {
|
||||||
|
const deps = Object.keys({ ...dependencies, ...peerDependencies, ...overrides }).concat(
|
||||||
|
'eslint',
|
||||||
|
);
|
||||||
|
const builtIn = new Set(builtinModules.flatMap(module => [module, `node:${module}`]));
|
||||||
|
|
||||||
|
function findRequires(text: string) {
|
||||||
|
const list = Array.from(text.matchAll(/require\(["']([^"']+)["']\)/g))
|
||||||
|
.map(m => m[1])
|
||||||
|
.filter(
|
||||||
|
module =>
|
||||||
|
!(
|
||||||
|
builtIn.has(module) ||
|
||||||
|
module.startsWith('eslint/') ||
|
||||||
|
module.startsWith('typescript/')
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return uniq(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
const moduleMap = glob
|
||||||
|
.sync(['dist/**/*.js', '!dist/node_modules/**'])
|
||||||
|
.map(path => ({ key: path, value: findRequires(fs.readFileSync(path, 'utf8')) }));
|
||||||
|
|
||||||
|
const files = Object.fromEntries(
|
||||||
|
moduleMap
|
||||||
|
.map(({ key, value }) => ({
|
||||||
|
key,
|
||||||
|
value: value.filter(
|
||||||
|
module =>
|
||||||
|
!(deps.includes(module) || deps.some(dep => module.startsWith(`${dep}/`))),
|
||||||
|
),
|
||||||
|
}))
|
||||||
|
.filter(({ value }) => value.length > 0)
|
||||||
|
.map(({ key, value }) => [key, value]),
|
||||||
|
);
|
||||||
|
const uselessDeps = Object.keys(dependencies).filter(
|
||||||
|
dep => !moduleMap.some(({ value }) => value.includes(dep)),
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
missingImports: files,
|
||||||
|
unusedDependencies: uselessDeps,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkDeps() {
|
||||||
|
const pkgJson = glob
|
||||||
|
.sync(['dist/node_modules/@*/*/package.json', 'dist/node_modules/*/package.json'])
|
||||||
|
.sort()
|
||||||
|
.map(path => fs.readFileSync(path, 'utf8'))
|
||||||
|
.map(content => JSON.parse(content))
|
||||||
|
.filter(({ author }) => JSON.stringify(author ?? 'null').includes('ljharb'))
|
||||||
|
.map(({ name }) => name);
|
||||||
|
|
||||||
|
return { suspiciousPackages: pkgJson };
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log({
|
||||||
|
...checkImports(),
|
||||||
|
...checkDeps(),
|
||||||
|
});
|
@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env tsx
|
#!/usr/bin/env tsx
|
||||||
import { readdirSync, writeFileSync } from 'node:fs';
|
import { promises as fs } from 'node:fs';
|
||||||
import { camelCase } from 'lodash';
|
import { camelCase } from 'lodash';
|
||||||
|
|
||||||
const files = readdirSync('./src/rules')
|
export async function buildLocalRules() {
|
||||||
.filter(file => file.endsWith('.ts'))
|
const files = (await fs.readdir('./src/rules'))
|
||||||
.filter(file => file !== 'index.ts')
|
.filter(file => file.endsWith('.ts'))
|
||||||
.map(file => file.slice(0, -3));
|
.filter(file => file !== 'index.ts')
|
||||||
|
.map(file => file.slice(0, -3));
|
||||||
|
|
||||||
const entryFile = /* js */ `
|
const entryFile = /* js */ `
|
||||||
import type { Rule } from 'eslint';
|
import type { Rule } from 'eslint';
|
||||||
import type { ESLintUtils } from '@typescript-eslint/utils';
|
import type { ESLintUtils } from '@typescript-eslint/utils';
|
||||||
|
|
||||||
@ -21,4 +22,9 @@ export const rules: Record<
|
|||||||
};
|
};
|
||||||
`.trim();
|
`.trim();
|
||||||
|
|
||||||
writeFileSync('./src/rules/index.ts', entryFile + '\n');
|
await fs.writeFile('./src/rules/index.ts', entryFile + '\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
buildLocalRules();
|
||||||
|
}
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
#!/usr/bin/env bun
|
|
||||||
import glob from 'fast-glob';
|
|
||||||
import fs from 'fs';
|
|
||||||
import { builtinModules } from 'module';
|
|
||||||
import { uniq } from 'lodash';
|
|
||||||
import { dependencies, peerDependencies } from '../dist/package.json';
|
|
||||||
|
|
||||||
const deps = Object.keys({ ...dependencies, ...peerDependencies }).concat('eslint');
|
|
||||||
const builtIn = new Set(builtinModules.flatMap(module => [module, `node:${module}`]));
|
|
||||||
|
|
||||||
function findRequires(text: string) {
|
|
||||||
const list = Array.from(text.matchAll(/require\(["']([^"']+)["']\)/g))
|
|
||||||
.map(m => m[1])
|
|
||||||
.filter(
|
|
||||||
module =>
|
|
||||||
!(
|
|
||||||
builtIn.has(module) ||
|
|
||||||
module.startsWith('eslint/') ||
|
|
||||||
module.startsWith('typescript/')
|
|
||||||
),
|
|
||||||
);
|
|
||||||
return uniq(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
const moduleMap = glob
|
|
||||||
.sync('dist/**/*.js')
|
|
||||||
.map(path => ({ key: path, value: findRequires(fs.readFileSync(path, 'utf8')) }));
|
|
||||||
|
|
||||||
const files = Object.fromEntries(
|
|
||||||
moduleMap
|
|
||||||
.map(({ key, value }) => ({
|
|
||||||
key,
|
|
||||||
value: value.filter(
|
|
||||||
module =>
|
|
||||||
!(deps.includes(module) || deps.some(dep => module.startsWith(`${dep}/`))),
|
|
||||||
),
|
|
||||||
}))
|
|
||||||
.filter(({ value }) => value.length > 0)
|
|
||||||
.map(({ key, value }) => [key, value]),
|
|
||||||
);
|
|
||||||
const uselessDeps = Object.keys(dependencies).filter(
|
|
||||||
dep => !moduleMap.some(({ value }) => value.includes(dep)),
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log('Missing imports:', files);
|
|
||||||
console.log('Unused dependencies:', uselessDeps);
|
|
@ -57,3 +57,8 @@ export function* map<T, U>(
|
|||||||
yield callback(value);
|
yield callback(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// safe-regex-test/index.js
|
||||||
|
export function safeRegexTest(regex: RegExp) {
|
||||||
|
return (text: string) => regex.test(text);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user