-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
153 lines (153 loc) · 6.22 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "@balena/pinejs",
"version": "20.0.11",
"main": "out/server-glue/module.js",
"type": "module",
"repository": "[email protected]:balena-io/pinejs.git",
"license": "Apache-2.0",
"bin": {
"abstract-sql-compiler": "./bin/abstract-sql-compiler.js",
"odata-compiler": "./bin/odata-compiler.js",
"sbvr-compiler": "./bin/sbvr-compiler.js"
},
"scripts": {
"prepublish": "require-npm4-to-publish",
"prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module && npm run build",
"build": "grunt --preload ts-node/register/transpile-only --gruntfile Gruntfile.cts build",
"webpack-browser": "grunt --preload ts-node/register/transpile-only --gruntfile Gruntfile.cts browser",
"webpack-module": "grunt --preload ts-node/register/transpile-only --gruntfile Gruntfile.cts module",
"webpack-server": "grunt --preload ts-node/register/transpile-only --gruntfile Gruntfile.cts server",
"webpack-build": "npm run webpack-browser && npm run webpack-module && npm run webpack-server",
"lint": "balena-lint -t tsconfig.dev.json -e js -e ts src test build typings Gruntfile.cts && npx tsc --project tsconfig.dev.json --noEmit",
"test": "npm run build && npm run lint && npm run webpack-build && npm run test:compose && npm run test:generated-types",
"test:compose": "trap 'docker compose -f docker-compose.npm-test.yml down ; echo Stopped ; exit 0' INT; docker compose -f docker-compose.npm-test.yml up -d && sleep 2 && DATABASE_URL=postgres://docker:docker@localhost:5431/postgres PINEJS_WEBRESOURCE_MAXFILESIZE=1000000000 S3_ENDPOINT=http://localhost:43680 S3_ACCESS_KEY=USERNAME S3_SECRET_KEY=PASSWORD S3_STORAGE_ADAPTER_BUCKET=balena-pine-web-resources S3_REGION=us-east-1 PINEJS_QUEUE_CONCURRENCY=1 TZ=UTC npx mocha",
"test:generated-types": "npm run generate-types && git diff --exit-code ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts",
"lint-fix": "balena-lint -t tsconfig.dev.json -e js -e ts --fix src test build typings Gruntfile.cts",
"generate-types": "node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/user.sbvr ./src/sbvr-api/user.ts && node ./bin/sbvr-compiler.js generate-types ./src/migrator/migrations.sbvr ./src/migrator/migrations.ts && node ./bin/sbvr-compiler.js generate-types ./src/sbvr-api/dev.sbvr ./src/sbvr-api/dev.ts && node ./bin/sbvr-compiler.js generate-types ./src/tasks/tasks.sbvr ./src/tasks/tasks.ts && balena-lint -t tsconfig.dev.json --fix ./src/sbvr-api/user.ts ./src/migrator/migrations.ts ./src/sbvr-api/dev.ts"
},
"dependencies": {
"@balena/abstract-sql-compiler": "^10.2.3",
"@balena/abstract-sql-to-typescript": "^5.1.0",
"@balena/env-parsing": "^1.2.0",
"@balena/lf-to-abstract-sql": "^5.0.3",
"@balena/odata-parser": "^4.2.1",
"@balena/odata-to-abstract-sql": "^7.1.3",
"@balena/sbvr-parser": "^1.4.6",
"@balena/sbvr-types": "^9.2.0",
"@types/body-parser": "^1.19.5",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.8",
"@types/deep-freeze": "^0.1.5",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.1",
"@types/lodash": "^4.17.16",
"@types/memoizee": "^0.4.11",
"@types/method-override": "^3.0.0",
"@types/multer": "^1.4.12",
"@types/mysql": "^2.15.26",
"@types/node": "^20.17.25",
"@types/passport": "^1.0.17",
"@types/passport-local": "^1.0.38",
"@types/passport-strategy": "^0.2.38",
"@types/pg": "^8.11.11",
"@types/randomstring": "^1.3.0",
"@types/websql": "^0.0.30",
"ajv": "^8.17.1",
"busboy": "^1.6.0",
"commander": "^13.1.0",
"cron-parser": "^4.9.0",
"deep-freeze": "^0.0.1",
"eventemitter3": "^5.0.1",
"express-session": "^1.18.1",
"json-schema-to-ts": "3.1.1",
"lodash": "^4.17.21",
"memoizee": "^0.4.17",
"pinejs-client-core": "^8.1.2",
"randomstring": "^1.3.1",
"typed-error": "^3.2.2"
},
"devDependencies": {
"@balena/lint": "^8.2.8",
"@balena/pinejs": "file:./",
"@balena/pinejs-webresource-s3": "^1.0.3",
"@faker-js/faker": "^9.6.0",
"@types/busboy": "^1.5.4",
"@types/chai": "^5.2.0",
"@types/grunt": "^0.4.32",
"@types/mocha": "^10.0.10",
"@types/on-finished": "^2.3.4",
"@types/request": "^2.48.12",
"@types/supertest": "^6.0.2",
"@types/terser-webpack-plugin": "^5.2.0",
"@types/webpack": "^5.28.5",
"chai": "^5.2.0",
"grunt": "^1.6.1",
"grunt-check-dependencies": "^1.0.0",
"grunt-cli": "^1.5.0",
"grunt-contrib-clean": "^2.0.1",
"grunt-contrib-concat": "^2.1.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-rename": "^0.2.0",
"grunt-gitinfo": "^0.1.9",
"grunt-text-replace": "^0.4.0",
"grunt-ts": "^6.0.0-beta.22",
"grunt-webpack": "^7.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"load-grunt-tasks": "^5.1.0",
"mocha": "^11.2.0",
"on-finished": "^2.4.1",
"pinejs-client-supertest": "^3.0.1",
"raw-loader": "^4.0.2",
"request": "^2.88.2",
"require-npm4-to-publish": "^1.0.0",
"supertest": "^7.1.0",
"terser-webpack-plugin": "^5.3.14",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"typescript": "^5.8.2",
"webpack": "^5.98.0",
"webpack-dev-server": "^5.2.0"
},
"optionalDependencies": {
"@aws-sdk/client-s3": "^3.772.0",
"@aws-sdk/lib-storage": "^3.772.0",
"@aws-sdk/s3-request-presigner": "^3.772.0",
"bcrypt": "^5.1.1",
"body-parser": "^1.20.3",
"compression": "^1.8.0",
"cookie-parser": "^1.4.7",
"express": "^4.21.2",
"method-override": "^3.0.0",
"mysql": "^2.18.1",
"passport": "^0.7.0",
"passport-local": "^1.0.0",
"pg": "^8.14.1",
"pg-connection-string": "^2.7.0",
"serve-static": "^1.16.2"
},
"engines": {
"node": "^20.14.0 || ^22.0.0",
"npm": ">=10.7.0"
},
"lint-staged": {
"*.js": [
"balena-lint -t tsconfig.dev.json --fix"
],
"*.ts": [
"balena-lint -t tsconfig.dev.json --fix"
]
},
"mocha": {
"extension": [
".test.ts"
],
"loader": "ts-node/esm/transpile-only",
"exit": true,
"timeout": 60000,
"recursive": true
},
"versionist": {
"publishedAt": "2025-03-21T23:48:30.910Z"
}
}