Skip to content

Commit

Permalink
Merge pull request #377 from alephium/fix-entry-points
Browse files Browse the repository at this point in the history
Fix web3-wallet entry points
  • Loading branch information
Lbqds committed Jun 20, 2024
2 parents cbd0324 + 40b97af commit c4ddc99
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/web3-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@
],
"license": "GPL",
"main": "dist/src/index.js",
"browser": "dist/alephium-web3.min.js",
"browser": "dist/alephium-web3-wallet.min.js",
"types": "dist/src/index.d.ts",
"exports": {
".": "./dist/src/index.js"
"node": {
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"default": {
"types": "./dist/src/index.d.ts",
"default": "./dist/alephium-web3-wallet.min.js"
}
},
"repository": {
"type": "git",
Expand All @@ -23,7 +30,7 @@
},
"author": "Alephium dev <dev@alephium.org>",
"scripts": {
"build": "rm -rf dist/* && npx tsc --build .",
"build": "rm -rf dist/* && npx tsc --build . && webpack",
"test": "jest -i --config ./jest-config.json"
},
"type": "commonjs",
Expand All @@ -44,7 +51,9 @@
"@types/rewire": "^2.5.28",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"crypto-browserify": "^3.12.0"
"crypto-browserify": "^3.12.0",
"webpack": "^5.77.0",
"webpack-cli": "^4.10.0"
},
"engines": {
"node": ">=14.0.0",
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4ddc99

Please sign in to comment.