Add tree-shakability checker
This commit is contained in:
parent
91429e027c
commit
0bae8d8c15
|
@ -21,7 +21,10 @@
|
||||||
"build": "tsup",
|
"build": "tsup",
|
||||||
"build:typedefs": "tsc -p ./tsconfig.declarations.json",
|
"build:typedefs": "tsc -p ./tsconfig.declarations.json",
|
||||||
"dev": "pnpm run build --watch",
|
"dev": "pnpm run build --watch",
|
||||||
"lint": "eslint 'src/**'"
|
"lint": "eslint 'src/**'",
|
||||||
|
"verifyTreeShakability:browser": "agadoo dist/index.browser.esm.js",
|
||||||
|
"verifyTreeShakability:native": "agadoo dist/index.node.esm.js",
|
||||||
|
"verifyTreeShakability:node": "agadoo dist/index.native.esm.js"
|
||||||
},
|
},
|
||||||
"author": "Solana Maintainers <maintainers@solana.com>",
|
"author": "Solana Maintainers <maintainers@solana.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -42,6 +45,7 @@
|
||||||
"@swc/core": "^1",
|
"@swc/core": "^1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
||||||
"@typescript-eslint/parser": "^5.43.0",
|
"@typescript-eslint/parser": "^5.43.0",
|
||||||
|
"agadoo": "^2.0.0",
|
||||||
"eslint": "^8.27.0",
|
"eslint": "^8.27.0",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
||||||
|
|
|
@ -6,6 +6,7 @@ specifiers:
|
||||||
'@swc/core': ^1
|
'@swc/core': ^1
|
||||||
'@typescript-eslint/eslint-plugin': ^5.43.0
|
'@typescript-eslint/eslint-plugin': ^5.43.0
|
||||||
'@typescript-eslint/parser': ^5.43.0
|
'@typescript-eslint/parser': ^5.43.0
|
||||||
|
agadoo: ^2.0.0
|
||||||
eslint: ^8.27.0
|
eslint: ^8.27.0
|
||||||
eslint-plugin-react-hooks: ^4.6.0
|
eslint-plugin-react-hooks: ^4.6.0
|
||||||
eslint-plugin-sort-keys-fix: ^1.1.2
|
eslint-plugin-sort-keys-fix: ^1.1.2
|
||||||
|
@ -20,6 +21,7 @@ devDependencies:
|
||||||
'@swc/core': 1.3.18
|
'@swc/core': 1.3.18
|
||||||
'@typescript-eslint/eslint-plugin': 5.43.0_wze2rj5tow7zwqpgbdx2buoy3m
|
'@typescript-eslint/eslint-plugin': 5.43.0_wze2rj5tow7zwqpgbdx2buoy3m
|
||||||
'@typescript-eslint/parser': 5.43.0_e3uo4sehh4zr4i6m57mkkxxv7y
|
'@typescript-eslint/parser': 5.43.0_e3uo4sehh4zr4i6m57mkkxxv7y
|
||||||
|
agadoo: 2.0.0
|
||||||
eslint: 8.27.0
|
eslint: 8.27.0
|
||||||
eslint-plugin-react-hooks: 4.6.0_eslint@8.27.0
|
eslint-plugin-react-hooks: 4.6.0_eslint@8.27.0
|
||||||
eslint-plugin-sort-keys-fix: 1.1.2
|
eslint-plugin-sort-keys-fix: 1.1.2
|
||||||
|
@ -238,10 +240,18 @@ packages:
|
||||||
'@swc/core-win32-x64-msvc': 1.3.18
|
'@swc/core-win32-x64-msvc': 1.3.18
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@types/estree/1.0.0:
|
||||||
|
resolution: {integrity: sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@types/json-schema/7.0.11:
|
/@types/json-schema/7.0.11:
|
||||||
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
|
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@types/node/18.11.9:
|
||||||
|
resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@types/semver/7.3.13:
|
/@types/semver/7.3.13:
|
||||||
resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==}
|
resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -403,6 +413,15 @@ packages:
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/agadoo/2.0.0:
|
||||||
|
resolution: {integrity: sha512-68aFhseH51ZBKYKkQNxwDi1hJwTnywBjHWg068qFnMkpXShhOazNzJUPRvaLQjrqhT3EOUth5G9mt1A0/dGhOw==}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
acorn: 7.4.1
|
||||||
|
rollup: 1.32.1
|
||||||
|
rollup-plugin-virtual: 1.0.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
/ajv/6.12.6:
|
/ajv/6.12.6:
|
||||||
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
|
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1475,6 +1494,20 @@ packages:
|
||||||
glob: 7.2.3
|
glob: 7.2.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/rollup-plugin-virtual/1.0.1:
|
||||||
|
resolution: {integrity: sha512-HCTBpV8MwP5lNzZrHD2moVxHIToHU1EkzkKGVj6Z0DcgUfxrxrZmeQirQeLz2yhnkJqRjwiVywK9CS8jDYakrw==}
|
||||||
|
deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-virtual.
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/rollup/1.32.1:
|
||||||
|
resolution: {integrity: sha512-/2HA0Ec70TvQnXdzynFffkjA6XN+1e2pEv/uKS5Ulca40g2L7KuOE3riasHoNVHOsFD5KKZgDsMk1CP3Tw9s+A==}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
'@types/estree': 1.0.0
|
||||||
|
'@types/node': 18.11.9
|
||||||
|
acorn: 7.4.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
/rollup/3.3.0:
|
/rollup/3.3.0:
|
||||||
resolution: {integrity: sha512-wqOV/vUJCYEbWsXvwCkgGWvgaEnsbn4jxBQWKpN816CqsmCimDmCNJI83c6if7QVD4v/zlyRzxN7U2yDT5rfoA==}
|
resolution: {integrity: sha512-wqOV/vUJCYEbWsXvwCkgGWvgaEnsbn4jxBQWKpN816CqsmCimDmCNJI83c6if7QVD4v/zlyRzxN7U2yDT5rfoA==}
|
||||||
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
|
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
|
||||||
|
|
Loading…
Reference in New Issue