forked from malloydata/malloy-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 2.63 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
{
"name": "@malloydata/malloy-service",
"version": "0.0.1",
"license": "GPL-2.0",
"config": {
"malloy_packages": [
"@malloydata/malloy",
"@malloydata/render"
]
},
"scripts": {
"build": "npm run protos-gen && tsc --build",
"start": "npm run build && node ./dist/server.js",
"package": "npm run build && npx ts-node scripts/license-disclaimer.ts && npx pkg -c package.json dist/server.js && ls -la \"pkg/@malloydata/\"malloy-*",
"package-dev": "npm run build && npx ts-node scripts/license-disclaimer.ts && npx pkg -t node18 -c package.json dist/server.js",
"protos-gen": "mkdir -p dist && npm run protos-gen-js && npm run protos-gen-ts && npm run protos-gen-js-src",
"protos-gen-js": "npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:dist --grpc_out=grpc_js:dist -I protos protos/**/**/*.proto",
"protos-gen-js-src": "npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:src --grpc_out=grpc_js:src -I protos protos/**/**/*.proto",
"protos-gen-ts": "npx grpc_tools_node_protoc --plugin=protoc-gen-ts=$(pwd)/node_modules/.bin/protoc-gen-ts --ts_out=src -I protos protos/**/**/*.proto",
"malloy-update": "npm install --no-fund --no-audit --save-exact $(echo $npm_package_config_malloy_packages | sed -E 's/(@malloydata\\/[-a-z]+)/\\1@latest/g')",
"malloy-link": "npm --no-fund --no-audit link $npm_package_config_malloy_packages",
"malloy-unlink": "npm --no-fund --no-save --no-audit unlink $npm_package_config_malloy_packages && npm --no-fund --no-audit install --force",
"lint": "gts lint",
"clean": "gts clean",
"compile": "npm run build",
"fix": "gts fix",
"prepare": "npm run compile",
"pretest": "npm run compile",
"posttest": "npm run lint"
},
"dependencies": {
"@grpc/grpc-js": "^1.7.1",
"@malloydata/malloy": "0.0.137",
"commander": "^11.1.0",
"debug": "^4.3.4"
},
"devDependencies": {
"@jest/globals": "^29.4.3",
"@types/debug": "^4.1.8",
"@types/jest": "^29.5.6",
"@types/jsdom": "^21.1.1",
"@types/node": "^14.11.2",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"axios": "^1.6.0",
"grpc_tools_node_protoc_ts": "^5.3.2",
"grpc-tools": "^1.11.2",
"gts": "^5.0.1",
"jest": "^29.0.3",
"pkg": "^5.8.0",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=10.0.0"
},
"pkg": {
"compress": "GZip",
"scripts": "./dist/**/*.js",
"assets": "dist/**/*.txt",
"targets": [
"node18-linux-x64",
"node18-linux-arm64",
"node18-win32-x64",
"node18-macos-x64"
],
"outputPath": "pkg"
}
}