-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 3.84 KB
/
Copy pathpackage.json
File metadata and controls
110 lines (110 loc) · 3.84 KB
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
{
"name": "ic-mops",
"version": "1.12.0",
"type": "module",
"bin": {
"mops": "dist/bin/mops.js",
"ic-mops": "dist/bin/mops.js",
"moc-wrapper": "bin/moc-wrapper.sh"
},
"files": [
"*",
"!network.txt",
"!Dockerfile",
"!verify.sh",
"!build.sh",
"!DEVELOPMENT.md",
"!.mops",
"/templates"
],
"homepage": "https://mops.one",
"repository": {
"type": "git",
"url": "https://github.com/dfinity/mops.git"
},
"author": "DFINITY",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "npm run prepare && npm run bundle",
"dist": "tsc",
"bundle": "rm -rf ./bundle && bun build ./cli.ts --outdir ./bundle --target node --minify --external @napi-rs/lzma --external fsevents --format esm --define '__dirname=import.meta.dirname' && npm run bundle:fix && npm run bundle:copy && npm run bundle:package-json && npm run bundle:tar",
"bundle:fix": "rexreplace 'new URL\\(\"\\.\\./templates' 'new URL(\"./templates' bundle/cli.js && rexreplace 'resolve\\(\".*?/xhr-sync-worker\\.js\"\\)' 'resolve(\"./xhr-sync-worker.js\")' bundle/cli.js && rexreplace '\"import.meta.dirname\",\"wasm_bg.wasm\"' 'import.meta.dirname || new URL(\".\", import.meta.url).pathname,\"wasm_bg.wasm\"' bundle/cli.js",
"bundle:copy": "cp -r commands/bench bundle && cp -r bin declarations templates package.json bundle && cp -r node_modules/prettier-plugin-motoko/wasm/pkg/nodejs/wasm_bg.wasm node_modules/jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js bundle",
"bundle:package-json": "tsx bundle-package-json.ts",
"bundle:tar": "rm -f bundle/cli.tgz && touch -t 200101010101 bundle/cli.tgz && find bundle -exec touch -d '1970-01-01 00:00:00' {} + && tar --sort name --exclude bundle/cli.tgz -cvf - bundle | gzip -n > bundle/cli.tgz",
"copy": "cp -r commands/bench dist/commands && cp -r declarations templates package.json bin dist | true",
"prepare": "rm -rf dist && npm run dist && npm run copy && npm run fix-dist",
"fix-dist": "tsx ./fix-dist.ts",
"release": "tsx release-cli.ts",
"check": "tsc --project tsconfig.json --noEmit",
"tsc": "tsc",
"esbuild": "esbuild"
},
"dependencies": {
"@iarna/toml": "2.2.5",
"@icp-sdk/core": "4.0.2",
"@noble/hashes": "1.8.0",
"as-table": "1.0.55",
"buffer": "6.0.3",
"cacheable-request": "12.0.1",
"chalk": "5.4.1",
"change-case": "5.4.4",
"chokidar": "3.6.0",
"commander": "13.1.0",
"debounce": "2.2.0",
"decomp-tarxz": "0.1.1",
"decompress": "4.2.1",
"del": "8.0.0",
"dhall-to-json-cli": "1.7.6",
"execa": "9.3.1",
"filesize": "10.1.6",
"fs-extra": "11.2.0",
"get-folder-size": "5.0.0",
"glob": "11.0.1",
"globby": "14.0.2",
"got": "14.4.6",
"jsdom": "26.1.0",
"log-update": "6.1.0",
"markdown-table": "3.0.4",
"mdast-util-from-markdown": "2.0.2",
"mdast-util-to-markdown": "2.1.2",
"minimatch": "10.0.1",
"ncp": "2.0.0",
"node-fetch": "3.3.2",
"octokit": "3.1.2",
"pem-file": "1.0.1",
"pic-ic": "0.5.4",
"pic-js-mops": "0.14.8",
"prettier": "3.5.3",
"prettier-plugin-motoko": "0.11.0",
"promisify-child-process": "4.1.2",
"prompts": "2.4.2",
"semver": "7.7.1",
"stream-to-promise": "3.0.0",
"string-width": "7.2.0",
"tar": "7.4.3",
"terminal-size": "4.0.0"
},
"devDependencies": {
"@tsconfig/strictest": "2.0.5",
"@types/debounce": "1.2.4",
"@types/decompress": "4.2.7",
"@types/fs-extra": "11.0.4",
"@types/glob": "8.1.0",
"@types/jsdom": "21.1.7",
"@types/ncp": "2.0.8",
"@types/node": "24.0.3",
"@types/prompts": "2.4.9",
"@types/semver": "7.5.8",
"@types/stream-to-promise": "2.2.4",
"@types/tar": "6.1.13",
"esbuild": "0.23.1",
"eslint": "8.57.0",
"rexreplace": "7.1.13",
"tsx": "4.19.2",
"typescript": "5.9.2"
}
}