-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
72 lines (72 loc) · 2.13 KB
/
package.json
File metadata and controls
72 lines (72 loc) · 2.13 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
{
"name": "@tableland/sqlparser",
"version": "0.0.0",
"files": [
"cjs/*.js",
"cjs/package.json",
"esm/*.js",
"esm/package.json",
"*.d.ts",
"*.wasm"
],
"exports": {
"node": "./cjs/out.js",
"require": "./cjs/out.js",
"import": "./esm/out.js",
"default": "./esm/out.js"
},
"type": "module",
"main": "./esm/out.js",
"module": "./esm/out.js",
"types": "types.d.ts",
"devDependencies": {
"@types/assert": "^1.5.10",
"@types/mocha": "^10.0.9",
"@types/node": "^22.7.5",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^7.18.0",
"assert": "^2.1.0",
"esbuild": "0.24.0",
"esbuild-plugin-wat": "^0.2.7",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.6.0",
"mocha": "^10.7.3",
"prettier": "^3.3.3",
"tsd": "^0.31.2",
"wasm-opt": "^1.4.0"
},
"scripts": {
"test": "npm run test:types && npm run test:esm && npm run test:cjs",
"test:types": "tsd",
"test:esm": "mocha test/main.test.js",
"test:cjs": "mocha test/main.test.cjs",
"lint": "eslint '**/*.{js,ts}'",
"lint:fix": "npm run lint -- --fix",
"prettier": "prettier '**/*.{ts,json,sol,md}' --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix",
"wasm:go": "tinygo build -gc=leaking -no-debug -o main.wasm -target wasm ../cmd/wasm/main.go",
"wasm:opt": "npx wasm-opt -O main.wasm -o main.wasm",
"fixup": "echo '{\n \"type\": \"commonjs\"\n}' > cjs/package.json",
"build:cjs": "node ./cjs-build.js && npm run fixup",
"build:esm": "node ./esm-build.js",
"build:wasm": "npm run wasm:go && npm run wasm:opt",
"build": "npm run build:wasm && npm run build:cjs && npm run build:esm",
"clean": "rm -rf main.wasm cjs",
"prepublishOnly": "npm run build"
},
"tsd": {
"directory": "test",
"compilerOptions": {
"paths": {
"@tableland/sqlparser": [
"."
]
}
}
}
}