forked from AssemblyScript/assemblyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
112 lines (112 loc) · 4.73 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
{
"name": "assemblyscript",
"description": "A TypeScript-like language for WebAssembly.",
"keywords": [
"typescript",
"webassembly",
"compiler",
"assemblyscript",
"wasm"
],
"version": "0.0.0",
"author": "Daniel Wirtz <[email protected]>",
"license": "Apache-2.0",
"homepage": "https://assemblyscript.org",
"repository": {
"type": "git",
"url": "https://github.com/AssemblyScript/assemblyscript.git"
},
"bugs": {
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
},
"engines": {
"node": ">=16",
"npm": ">=7"
},
"engineStrict": true,
"dependencies": {
"binaryen": "116.0.0-nightly.20240114",
"long": "^5.2.1"
},
"devDependencies": {
"@types/node": "^18.13.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"diff": "^5.1.0",
"esbuild": "^0.19.4",
"eslint": "^8.33.0",
"glob": "^10.3.0",
"typescript": "^5.5.4"
},
"type": "module",
"exports": {
".": {
"import": "./dist/assemblyscript.js",
"types": "./dist/assemblyscript.d.ts"
},
"./asc": {
"import": "./dist/asc.js",
"types": "./dist/asc.d.ts"
},
"./transform": {
"import": "./dist/transform.js",
"require": "./dist/transform.cjs",
"types": "./dist/transform.d.ts"
},
"./binaryen": {
"import": "./lib/binaryen.js",
"types": "./lib/binaryen.d.ts"
},
"./*": "./*"
},
"imports": {
"#rtrace": {
"import": "./lib/rtrace/index.js",
"types": "./lib/rtrace/index.d.ts"
}
},
"bin": {
"asc": "./bin/asc.js",
"asinit": "./bin/asinit.js"
},
"scripts": {
"check": "npm run check:config && npm run check:import && npm run lint",
"check:config": "tsc --noEmit -p src --diagnostics --listFiles",
"check:import": "tsc --noEmit --target ESNEXT --module nodenext --moduleResolution nodenext --experimentalDecorators tests/import/index",
"lint": "eslint --max-warnings 0 --ext js . && eslint --max-warnings 0 --ext ts .",
"build": "node scripts/build",
"watch": "node scripts/build --watch",
"coverage": "npx c8 -- npm test",
"test": "npm run test:parser && npm run test:compiler -- --parallel && npm run test:browser && npm run test:asconfig && npm run test:transform && npm run test:cli",
"test:parser": "node --enable-source-maps tests/parser",
"test:compiler": "node --enable-source-maps --no-warnings tests/compiler",
"test:browser": "node --enable-source-maps tests/browser",
"test:asconfig": "cd tests/asconfig && npm run test",
"test:transform": "npm run test:transform:esm && npm run test:transform:cjs",
"test:transform:esm": "node bin/asc tests/compiler/empty --transform ./tests/transform/index.js --noEmit && node bin/asc tests/compiler/empty --transform ./tests/transform/simple.js --noEmit",
"test:transform:cjs": "node bin/asc tests/compiler/empty --transform ./tests/transform/cjs/index.js --noEmit && node bin/asc tests/compiler/empty --transform ./tests/transform/cjs/simple.js --noEmit",
"test:cli": "node tests/cli/options.js",
"asbuild": "npm run asbuild:debug && npm run asbuild:release",
"asbuild:debug": "node bin/asc --config src/asconfig.json --target debug",
"asbuild:release": "node bin/asc --config src/asconfig.json --target release",
"asbuild:rtraced": "node bin/asc --config src/asconfig.json --target rtraced",
"bootstrap": "npm run bootstrap:debug && npm run bootstrap:release",
"bootstrap:debug": "node bin/asc --config src/asconfig.json --target debug && node bin/asc --config src/asconfig.json --target debug-bootstrap --wasm ./build/assemblyscript.debug.js && node bin/asc --config src/asconfig.json --target debug-bootstrap --wasm ./build/assemblyscript.debug-bootstrap.js && git --no-pager diff --no-index build/assemblyscript.debug.wast build/assemblyscript.debug-bootstrap.wast",
"bootstrap:release": "node bin/asc --config src/asconfig.json --target release && node bin/asc --config src/asconfig.json --target release-bootstrap --wasm ./build/assemblyscript.release.js && node bin/asc --config src/asconfig.json --target release-bootstrap --wasm ./build/assemblyscript.release-bootstrap.js && git --no-pager diff --no-index build/assemblyscript.release.wast build/assemblyscript.release-bootstrap.wast",
"bootstrap:rtraced": "node bin/asc --config src/asconfig.json --target rtraced && node bin/asc --config src/asconfig.json --target rtraced --wasm ./build/assemblyscript.rtraced.js"
},
"files": [
"bin/",
"dist/",
"std/",
"util/",
"lib/binaryen.js",
"lib/binaryen.d.ts",
"tsconfig-base.json",
"NOTICE"
],
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/assemblyscript"
}
}