Skip to content

Commit

Permalink
chore: improve build tooling and modernize dependencies (#1128)
Browse files Browse the repository at this point in the history
* chore: wip

* style: standardize formatting across TS configs and docs

- Format TypeScript configuration files for consistent spacing
- Add consistent newlines and semicolons in README code examples
- Align formatting between sdk and sdk-communication-layer packages

* chore: clean up initializeMobileProvider by removing debug log

Cleaned up the initializeMobileProvider by removing an unnecessary console log statement in the setInitializing function.

* chore: enhance commitlint config with body-max-line-length rule

Enhanced the commitlint configuration by adding a rule to limit the body of commit messages to 100 characters per line.
  • Loading branch information
abretonc7s authored Nov 19, 2024
1 parent 744ab6d commit a9680c5
Show file tree
Hide file tree
Showing 17 changed files with 1,281 additions and 332 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-line-length': [0, 'always', 100],
},
};
27 changes: 15 additions & 12 deletions packages/sdk-communication-layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
"module": "dist/node/es/metamask-sdk-communication-layer.js",
"browser": "dist/browser/es/metamask-sdk-communication-layer.js",
"react-native": "dist/react-native/es/metamask-sdk-communication-layer.js",
"types": "dist/browser/es/src/index.d.ts",
"types": "dist/types/src/index.d.ts",
"files": [
"/dist"
],
"scripts": {
"build": "rimraf dist && rollup -c --bundleConfigAsCjs",
"build:tsc": "tsc",
"build:dev": "rimraf dist && NODE_ENV=dev rollup -c --bundleConfigAsCjs",
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist/types",
"build:clean": "yarn clean && yarn build",
"build": "yarn build:types && rollup -c --bundleConfigAsCjs",
"build:dev": "yarn build:types && NODE_ENV=dev rollup -c --bundleConfigAsCjs",
"build:post-tsc": "echo 'N/A'",
"build:pre-tsc": "echo 'N/A'",
"size": "size-limit",
Expand Down Expand Up @@ -60,46 +61,48 @@
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@size-limit/preset-big-lib": "^11.0.2",
"@types/jest": "^29.2.4",
"@types/node": "^20.1.3",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"cross-fetch": "^4.0.0",
"eciesjs": "^0.3.16",
"eciesjs": "^0.4.11",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsdoc": "^36.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"eventemitter2": "^6.4.7",
"eventemitter2": "^6.4.9",
"jest": "^29.3.1",
"prettier": "^2.3.0",
"rimraf": "^3.0.2",
"rollup": "^3.21.7",
"rollup": "^4.26.0",
"rollup-plugin-jscc": "^2.0.0",
"rollup-plugin-natives": "^0.7.5",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-sizes": "^1.0.6",
"rollup-plugin-typescript2": "^0.31.2",
"rollup-plugin-visualizer": "^5.9.2",
"size-limit": "^11.0.2",
"rollup-plugin-visualizer": "^5.12.0",
"size-limit": "^11.1.6",
"socket.io-client": "^4.5.1",
"stream-browserify": "^3.0.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.3.2"
"typescript": "^5.6.3"
},
"peerDependencies": {
"cross-fetch": "^4.0.0",
"eciesjs": "*",
"eventemitter2": "^6.4.7",
"eventemitter2": "^6.4.9",
"readable-stream": "^3.6.2",
"socket.io-client": "^4.5.1"
},
Expand Down
Loading

0 comments on commit a9680c5

Please sign in to comment.