-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 2.54 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
{
"name": "canpack",
"version": "0.2.3",
"description": "Package multiple libraries into one ICP canister.",
"author": "Ryan Vandersmith (https://github.com/rvanasa)",
"license": "Apache-2.0",
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"bin": {
"canpack": "bin/canpack.cjs"
},
"repository": {
"type": "git",
"directory": "https://github.com/dfinity/canpack.git"
},
"scripts": {
"start": "ts-node --esm src/commands/canpack.js",
"build": "rimraf ./lib && tsc -p .",
"prepare": "husky install",
"lint": "tslint --project tsconfig.json",
"test": "jest",
"package": "rimraf ./pkg && run-s build test package:pkg package:zip",
"package:pkg": "pkg -t node18-linux,node18-win,node18-macos lib/commands/canpack.js -o pkg/canpack",
"package:zip": "run-s package:zip:linux package:zip:macos package:zip:win",
"package:zip:linux": "cd pkg && mkdir linux && cp canpack-linux linux/canpack && cd linux && tar -czvf ../canpack-linux.tar.gz canpack",
"package:zip:macos": "cd pkg && mkdir macos && cp canpack-macos macos/canpack && cd macos && tar -czvf ../canpack-macos.tar.gz canpack",
"package:zip:win": "cd pkg && mkdir win && cp canpack-win.exe win/canpack.exe && cd win && zip ../canpack-windows.zip canpack.exe",
"precommit": "lint-staged",
"prepublishOnly": "run-s build test"
},
"dependencies": {
"@iarna/toml": "2.2.5",
"ajv": "^8.13.0",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"execa": "^9.1.0",
"ic-mops": "^0.44.1",
"mkdirp": "^3.0.1",
"recursive-copy": "^2.0.14",
"rimraf": "^5.0.7"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.4",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"ts-jest": "^29.1.3",
"ts-node": "^10.9.2",
"tslint": "^6.1.3",
"typescript": "^5.4.5"
},
"lint-staged": {
"{bin,src,lib,common}/**/*.{js,ts,jsx,tsx,json}": [
"prettier --write"
],
"src/**/*.{ts,tsx}": [
"npm run lint"
]
},
"directories": {
"lib": "lib",
"example": "examples"
},
"files": [
"src/**/*",
"lib/**/*",
"common/**/*"
],
"keywords": [
"motoko",
"language",
"programming-language",
"dfinity",
"smart-contract",
"canister",
"browser",
"ic",
"icp",
"internet-computer",
"blockchain",
"cryptocurrency",
"rust",
"cargo",
"crate",
"language-bindings"
]
}