-
-
Notifications
You must be signed in to change notification settings - Fork 308
feat!: replace hybrid CJS/ESM build with ESM-only #9536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
08ed6a3
7cd7c6c
8f050b1
81b9439
633a31c
048cfac
1605b12
259a99f
5494786
56b85b6
85b4499
8055bd7
34360e9
3bc6bfc
de86923
a9db251
4408bce
3a208b5
1b7d171
7aa17ea
e583b9d
309a1cc
0d13c55
ab9e854
4eda3c0
c1780db
d0ebb9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,7 +144,7 @@ | |
| "count": 1 | ||
| } | ||
| }, | ||
| "packages/assets-controllers/jest.environment.js": { | ||
| "packages/assets-controllers/jest.environment.cjs": { | ||
| "n/prefer-global/text-decoder": { | ||
| "count": 1 | ||
| }, | ||
|
|
@@ -500,7 +500,7 @@ | |
| "count": 25 | ||
| }, | ||
| "@typescript-eslint/prefer-nullish-coalescing": { | ||
| "count": 1 | ||
| "count": 2 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :( Oh well, not a big increase. |
||
| }, | ||
| "no-negated-condition": { | ||
| "count": 1 | ||
|
|
@@ -1859,9 +1859,6 @@ | |
| "@typescript-eslint/explicit-function-return-type": { | ||
| "count": 10 | ||
| }, | ||
| "@typescript-eslint/naming-convention": { | ||
| "count": 1 | ||
| }, | ||
| "@typescript-eslint/no-explicit-any": { | ||
| "count": 4 | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,19 +18,12 @@ | |
| "files": [ | ||
| "dist/" | ||
| ], | ||
| "type": "module", | ||
| "sideEffects": false, | ||
| "main": "./dist/index.cjs", | ||
| "types": "./dist/index.d.cts", | ||
| "exports": { | ||
| ".": { | ||
| "import": { | ||
| "types": "./dist/index.d.mts", | ||
| "default": "./dist/index.mjs" | ||
| }, | ||
| "require": { | ||
| "types": "./dist/index.d.cts", | ||
| "default": "./dist/index.cjs" | ||
| } | ||
| "types": "./dist/index.d.ts", | ||
| "default": "./dist/index.js" | ||
| }, | ||
|
Comment on lines
24
to
27
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we document this in the changelog as a breaking change? |
||
| "./package.json": "./package.json" | ||
| }, | ||
|
|
@@ -39,9 +32,11 @@ | |
| "registry": "https://registry.npmjs.org/" | ||
| }, | ||
| "scripts": { | ||
| "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", | ||
| "build:all": "ts-bridge --project tsconfig.build.json --verbose --clean", | ||
| "build": "tsc --project tsconfig.build.json", | ||
|
mcmire marked this conversation as resolved.
|
||
| "build:all": "tsc --build tsconfig.build.json --verbose", | ||
| "build:clean": "yarn build:only-clean && yarn build", | ||
| "build:docs": "typedoc", | ||
| "build:only-clean": "rimraf './dist' './tsconfig.build.tsbuildinfo'", | ||
| "changelog:update": "../../scripts/update-changelog.sh @metamask/account-tree-controller", | ||
| "changelog:validate": "../../scripts/validate-changelog.sh @metamask/account-tree-controller", | ||
| "lint:tsconfigs": "tsx ../../scripts/lint-tsconfigs/lint-tsconfigs.mts", | ||
|
|
@@ -68,17 +63,17 @@ | |
| "@metamask/superstruct": "^3.4.1", | ||
| "@metamask/utils": "^11.12.0", | ||
| "fast-deep-equal": "^3.1.3", | ||
| "lodash": "^4.17.21" | ||
| "lodash-es": "^4.17.21" | ||
| }, | ||
| "devDependencies": { | ||
| "@metamask/account-api": "^2.0.0", | ||
| "@metamask/auto-changelog": "^6.1.0", | ||
| "@metamask/eth-hd-keyring": "^15.0.0", | ||
| "@metamask/providers": "^22.1.0", | ||
| "@ts-bridge/cli": "^0.6.4", | ||
| "@types/jest": "^30.0.0", | ||
| "deepmerge": "^4.2.2", | ||
| "jest": "^30.4.2", | ||
| "rimraf": "^5.0.5", | ||
| "ts-jest": "^29.4.11", | ||
| "tsx": "^4.20.5", | ||
| "typedoc": "^0.25.13", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.