Skip to content

Commit 701321d

Browse files
committed
pkg import fixes
1 parent 538b1b5 commit 701321d

8 files changed

+8
-11
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22
/target
3-
/pkg
3+
/src/pkg
44
/lib
55
/types
66
/*.js

configs/tsconfig.base.json

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"declarationMap": true,
1111
"allowSyntheticDefaultImports": true,
1212
"types": ["node", "mocha"],
13-
"paths": {
14-
"bitmask-core": ["./pkg"]
15-
}
1613
},
1714

1815
"files": [

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.9",
3+
"version": "0.6.0-beta.10",
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 pkg",
22+
"rename:pkg": "mv ../bitmask-core/pkg src/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",

src/bitcoin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Methods meant to work with BDK defined within the web::bitcoin module from bitmask-core:
22
// https://github.com/diba-io/bitmask-core/blob/development/src/web.rs
33

4-
import * as BMC from "bitmask-core";
4+
import * as BMC from "./pkg";
55

66
export const hashPassword = (password: string) => BMC.hash_password(password);
77

src/carbonado.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Methods meant to work with Carbonado storage defined within the web::carbonado module from bitmask-core:
22
// https://github.com/diba-io/bitmask-core/blob/development/src/web.rs
33

4-
import * as BMC from "bitmask-core";
4+
import * as BMC from "./pkg";
55

66
export const store = async (
77
nostrHexSk: string,

src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Methods meant to work with bitmask-core constants defined within the web::constants module from bitmask-core:
22
// https://github.com/diba-io/bitmask-core/blob/development/src/web.rs
33

4-
import * as BMC from "bitmask-core";
4+
import * as BMC from "./pkg";
55

66
export const getNetwork = async (): Promise<string> =>
77
JSON.parse(await BMC.get_network());

src/lightning.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Methods meant to work with LNDHubX defined within the web::lightning module from bitmask-core:
22
// https://github.com/diba-io/bitmask-core/blob/development/src/web.rs
33

4-
import * as BMC from "bitmask-core";
4+
import * as BMC from "./pkg";
55

66
export const createWallet = async (
77
username: string,

src/rgb.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Methods meant to work with RGB contracts defined within the web::rgb module from bitmask-core:
22
// https://github.com/diba-io/bitmask-core/blob/development/src/web.rs
33

4-
import * as BMC from "bitmask-core";
4+
import * as BMC from "./pkg";
55

66
export const hashPassword = async (password: string): Promise<string> =>
77
BMC.hash_password(password);

0 commit comments

Comments
 (0)