forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
88 lines (88 loc) · 3.42 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
{
"name": "snarkyjs",
"description": "JavaScript bindings for SnarkyJS",
"version": "0.8.0",
"license": "Apache-2.0",
"type": "module",
"main": "./dist/web/index.js",
"exports": {
"types": "./dist/node/index.d.ts",
"browser": "./dist/web/index.js",
"node": {
"import": "./dist/node/index.js",
"require": "./dist/node/index.cjs"
},
"default": "./dist/web/index.js"
},
"types": "./dist/node/index.d.ts",
"files": [
"src/build",
"dist",
"src/lib",
"src/**/*.d.ts"
],
"bin": {
"snarky-run": "src/build/run.js"
},
"engines": {
"node": ">=16.4.0"
},
"scripts": {
"type-check": "tsc --noEmit",
"dev": "npx tsc -p tsconfig.node.json && cp src/snarky.d.ts dist/node/snarky.d.ts",
"make": "make -C ../../../.. snarkyjs",
"build": "rimraf ./dist/node && npx tsc -p tsconfig.node.json && cp -r src/node_bindings dist/node/_node_bindings && node src/build/buildNode.js && cp src/snarky.d.ts dist/node/snarky.d.ts",
"build:test": "npx tsc -p tsconfig.test.json && cp src/snarky.d.ts dist/node/snarky.d.ts",
"build:node": "npm run build",
"build:web": "rimraf ./dist/web && node src/build/buildWeb.js",
"build:examples": "rimraf ./dist/examples && npx tsc -p tsconfig.examples.json || exit 0",
"serve:web": "cp src/chrome_bindings/server.js src/chrome_bindings/index.html dist/web && node dist/web/server.js",
"prepublish:web": "NODE_ENV=production node src/build/buildWeb.js",
"prepublish:node": "npm run build && NODE_ENV=production node src/build/buildNode.js",
"prepublish:both": "npm run prepublish:web && npm run prepublish:node",
"prepublishOnly": "npm run prepublish:web && npm run prepublish:node",
"bootstrap": "npm run build && node src/build/extractJsooMethods.cjs && npm run build",
"format": "prettier --write --ignore-unknown **/*",
"test": "./run-jest-tests.sh",
"clean": "rimraf ./dist",
"clean-all": "rimraf ./dist && rimraf ./tests/report && rimraf ./tests/test-artifacts",
"test:integration": "./run-integration-tests.sh",
"test:unit": "./run-unit-tests.sh",
"test:e2e": "rimraf ./tests/report && rimraf ./tests/test-artifacts && npx playwright test",
"e2e:prepare-server": "npm run build:examples && (cp -rf dist/examples dist/web || :) && node src/build/e2eTestsBuildHelper.js && cp -rf src/chrome_bindings/index.html src/chrome_bindings/server.js tests/artifacts/html/*.html tests/artifacts/javascript/*.js dist/web",
"e2e:run-server": "node dist/web/server.js",
"e2e:install": "npx playwright install --with-deps",
"e2e:show-report": "npx playwright show-report tests/report"
},
"author": "O(1) Labs",
"devDependencies": {
"@playwright/test": "^1.25.2",
"@types/isomorphic-fetch": "^0.0.36",
"@types/jest": "^27.0.0",
"@types/node": "^18.7.13",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"esbuild": "^0.16.16",
"eslint": "^8.0.0",
"expect": "^29.0.1",
"fs-extra": "^10.0.0",
"glob": "^8.0.3",
"howslow": "^0.1.0",
"jest": "^28.1.3",
"minimist": "^1.2.5",
"prettier": "^2.3.2",
"replace-in-file": "^6.3.5",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.8",
"typedoc": "^0.23.11",
"typescript": "^4.8.2"
},
"dependencies": {
"blakejs": "1.2.1",
"detect-gpu": "^5.0.5",
"env": "^0.0.2",
"isomorphic-fetch": "^3.0.0",
"js-sha256": "^0.9.0",
"reflect-metadata": "^0.1.13",
"tslib": "^2.3.0"
}
}