-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
119 lines (119 loc) · 5.02 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "@concordium/rust-bindings",
"version": "3.2.1",
"license": "Apache-2.0",
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "https://github.com/Concordium/concordium-node-sdk-js",
"directory": "packages/rust-bindings"
},
"sideEffects": [
"./lib/*/web/umd/index.min.js",
"./lib/*/bundler/index.js",
"./lib/*/react-native/index.js"
],
"main": "lib/dapp/node/cjs/index.js",
"react-native": "lib/dapp/react-native/index.js",
"browser": "lib/dapp/web/umd/index.min.js",
"types": "lib/dapp/node/cjs/index.d.ts",
"exports": {
".": {
"types": "./lib/dapp/node/cjs/index.d.ts",
"react-native": "./lib/dapp/react-native/index.js",
"node": {
"module": "./lib/dapp/node/umd/index.min.js",
"default": "./lib/dapp/node/cjs/index.js"
},
"browser": {
"module": "./lib/dapp/web/umd/index.min.js",
"types": "./lib/dapp/web/esm/index.d.ts",
"import": "./lib/dapp/web/esm/index.js",
"default": "./lib/dapp/web/umd/index.min.js"
},
"default": "./lib/dapp/web/umd/index.min.js"
},
"./dapp": {
"types": "./lib/dapp/node/cjs/index.d.ts",
"react-native": "./lib/dapp/react-native/index.js",
"node": {
"module": "./lib/dapp/node/umd/index.min.js",
"default": "./lib/dapp/node/cjs/index.js"
},
"browser": {
"module": "./lib/dapp/web/umd/index.min.js",
"types": "./lib/dapp/web/esm/index.d.ts",
"import": "./lib/dapp/web/esm/index.js",
"default": "./lib/dapp/web/umd/index.min.js"
},
"default": "./lib/dapp/web/umd/index.min.js"
},
"./wallet": {
"types": "./lib/wallet/node/cjs/index.d.ts",
"react-native": null,
"node": {
"module": "./lib/wallet/node/umd/index.min.js",
"default": "./lib/wallet/node/cjs/index.js"
},
"browser": {
"module": "./lib/wallet/web/umd/index.min.js",
"types": "./lib/wallet/web/esm/index.d.ts",
"import": "./lib/wallet/web/esm/index.js",
"default": "./lib/wallet/web/umd/index.min.js"
},
"default": "./lib/wallet/web/umd/index.min.js"
},
"./bundler": {
"types": "./lib/dapp/bundler/index.d.ts",
"default": "./lib/dapp/bundler/index.js"
},
"./bundler/dapp": {
"types": "./lib/dapp/bundler/index.d.ts",
"default": "./lib/dapp/bundler/index.js"
},
"./bundler/wallet": {
"types": "./lib/wallet/bundler/index.d.ts",
"default": "./lib/wallet/bundler/index.js"
}
},
"files": [
"./lib/**/index*"
],
"scripts": {
"rustfmt": "cargo +nightly-2023-04-01-x86_64-unknown-linux-gnu fmt -- --color=always",
"clippy": "cargo +1.73 clippy --color=always --tests --benches -- -Dclippy::all",
"build-web": "wasm-pack build ./packages/$0 --target web --out-dir $INIT_CWD/lib/$0/web/esm --out-name index",
"build-node": "wasm-pack build ./packages/$0 --target nodejs --out-dir $INIT_CWD/lib/$0/node/cjs --out-name index",
"build-bundler": "wasm-pack build ./packages/$0 --target bundler --out-dir $INIT_CWD/lib/$0/bundler --out-name index",
"build-all": "yarn build-web $0 && yarn build-node $0 && yarn build-bundler $0",
"build": "yarn build-all dapp && ts-node ./scripts/build-react-native.ts && yarn build-all wallet && webpack && yarn sanitize",
"build:rust-bindings-dapp": "yarn build-all dapp && webpack --env package=dapp && ts-node ./scripts/build-react-native.ts && yarn sanitize",
"build:rust-bindings-wallet": "yarn build-all wallet && webpack --env package=wallet && yarn sanitize",
"build:rust-bindings": "yarn build",
"clean": "rimraf -- target lib .webpack-cache",
"sanitize": "find ./lib -type f -name .gitignore -delete -o -name package.json -delete",
"lint": "eslint . --cache --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-fix": "yarn lint --fix",
"prettier": "prettier . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --ignore-path .gitignore",
"fmt": "yarn prettier --write",
"fmt-check": "yarn prettier --check"
},
"devDependencies": {
"@types/copyfiles": "^2.4.1",
"@types/node": "^20.12.13",
"binaryen": "^114.0.0",
"buffer": "^6.0.3",
"copyfiles": "^2.4.1",
"eslint": "8",
"prettier": "^3.2.5",
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"wasm-pack": "^0.12.1",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
}