Skip to content

Commit ee306fa

Browse files
committed
pkg import fixes
1 parent 701321d commit ee306fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

configs/tsconfig.base.json

+4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
"declarationMap": true,
1111
"allowSyntheticDefaultImports": true,
1212
"types": ["node", "mocha"],
13+
"paths": {
14+
"pkg": ["../pkg"]
15+
}
1316
},
1417

1518
"files": [
19+
"../pkg/*",
1620
"../src/index.ts",
1721
"../src/constants.ts",
1822
"../src/bitcoin.ts",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitmask-wallet",
3-
"version": "0.6.0-beta.10",
3+
"version": "0.6.0-beta.11",
44
"description": "JS/TS wrapper containing all the functionality needed to access the BitMask wallet core",
55
"types": "index.d.ts",
66
"main": "index.js",
@@ -19,7 +19,7 @@
1919
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
2020
"build:pkg": "cd ../bitmask-core && wasm-pack build --release --target bundler",
2121
"rename:esm": "cp lib/esm/index.js index.mjs && cp lib/esm/constants.js constants.mjs && cp lib/esm/bitcoin.js bitcoin.mjs && cp lib/esm/rgb.js rgb.mjs && cp lib/esm/lightning.js lightning.mjs && cp lib/esm/carbonado.js carbonado.mjs",
22-
"rename:pkg": "mv ../bitmask-core/pkg src/pkg",
22+
"copy:pkg": "cp -R ../bitmask-core/pkg src/pkg && cp -R ../bitmask-core/pkg pkg",
2323
"full": "npm run build && npm run build:pkg && npm run rename:pkg",
2424
"test": "echo 'mocha is a terrible testing framework'",
2525
"semantic-release": "semantic-release",

0 commit comments

Comments
 (0)