build: refine husky configuration
[e-mobility-charging-stations-simulator.git] / package.json
CommitLineData
7dde0b73 1{
beb235d6 2 "$schema": "https://json.schemastore.org/package",
7f774a55 3 "name": "e-mobility-charging-stations-simulator",
23f512d4 4 "version": "1.2.22",
7dde0b73 5 "engines": {
eef659c1 6 "node": ">=18.17.0",
5f0a7b0d 7 "pnpm": ">=8.6.0"
7dde0b73 8 },
8f074ebf 9 "volta": {
ac1495b4
JB
10 "node": "20.7.0",
11 "pnpm": "8.7.6"
8f074ebf 12 },
7dde0b73
JB
13 "repository": {
14 "type": "git",
7f774a55 15 "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
7dde0b73 16 },
e6159ce8 17 "description": "Electric vehicle charging stations simulator",
68250247 18 "author": "SAP E-Mobility <e-mobility@sap.com>",
0215fd14
JB
19 "keywords": [
20 "ocpp",
21 "ocpp-j",
22 "ocpp1.6",
23 "ocpp2.0",
24 "charging station",
25 "load testing"
26 ],
4160581a
JB
27 "contributors": [
28 {
29 "name": "Jérôme Benoit",
30 "email": "jerome.benoit@piment-noir.org",
31 "url": "https://github.com/jerome-benoit"
32 }
33 ],
7dde0b73
JB
34 "license": "Apache-2.0",
35 "licenses": [
36 {
37 "type": "Apache-2.0",
38 "url": "http://www.apache.org/licenses/LICENSE-2.0"
39 }
40 ],
92ce5473 41 "type": "module",
db9b23ee 42 "exports": [
51022aa0 43 "./dist/start.js"
db9b23ee 44 ],
d22589b3 45 "auto-changelog": {
7f774a55
JB
46 "commitUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/commit/{id}",
47 "issueUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/issues/{id}",
48 "mergeUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/pull/{id}",
49 "compareUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/compare/{from}...{to}"
d22589b3 50 },
ae8ee665 51 "mikro-orm": {
85c8a4cf 52 "tsConfigPath": "./tsconfig-orm.json",
ae8ee665
JB
53 "useTsNode": true
54 },
7dde0b73 55 "scripts": {
a90bec52 56 "preinstall": "node skip-preinstall.cjs || npx --yes only-allow pnpm",
92ce5473 57 "prepare": "node prepare.cjs",
653b69b4 58 "build-requirements": "node --no-warnings build-requirements.mjs",
bdc9dc79 59 "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
51022aa0
JB
60 "start:dev": "pnpm build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.js",
61 "start:dev:debug": "pnpm build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.js",
62 "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.js",
63 "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.js",
64 "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.js",
65 "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.js",
66 "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.js",
c7f157db
JB
67 "rollup": "pnpm build-requirements && rollup --config",
68 "build": "pnpm rollup",
69 "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm rollup",
51022aa0
JB
70 "build:dev": "pnpm rollup --environment BUILD:development",
71 "build:dev:analyze": "pnpm rollup --environment ANALYZE,BUILD:development",
72 "build:dev:watch": "pnpm rollup --environment BUILD:development --watch",
e592ba1d
JB
73 "clean:dist": "npx rimraf dist",
74 "clean:node_modules": "npx rimraf node_modules",
95f74dfb
JB
75 "lint": "cross-env TIMING=1 eslint --cache src",
76 "lint:fix": "cross-env TIMING=1 eslint --cache --fix src",
e60a5ba3 77 "format": "prettier --cache --write .",
d4ad9d45
JB
78 "test": "c8 mocha test/**/*.test.ts",
79 "test:debug": "mocha --no-parallel --inspect test/**/*.test.ts",
12240a2e
JB
80 "coverage": "c8 report --reporter=lcov",
81 "coverage:html": "c8 report --reporter=html",
7dde0b73 82 "clinic:clean": "clinic clean",
47e22477 83 "robohydra": "robohydra test/robohydra/config.json",
5c97c3b3 84 "git:sinit": "git submodule update --init --recursive --force",
c718e93d 85 "git:sdiff": "git diff && git submodule foreach 'git diff'",
3a860d9e 86 "git:supdate": "git submodule update --remote --recursive --merge",
84e52c2c 87 "git:spush": "git push --recurse-submodules=on-demand",
cedae80d 88 "release": "release-it"
7dde0b73 89 },
a4e5c2e2
JB
90 "pnpm": {
91 "overrides": {
64378b5e 92 "cacheable-request": "^10.2.10",
a4e5c2e2 93 "d3-color": "^3.1.0",
64378b5e 94 "ejs": "^3.1.9",
80e9ca9d 95 "got": "^12.6.1",
d517f61a 96 "semver": "^7.5.3",
2863f68f 97 "uuid": "^9.0.0",
d517f61a 98 "tough-cookie": "^4.1.3"
a4e5c2e2 99 }
db64a53b 100 },
7dde0b73 101 "dependencies": {
bc49696a 102 "@mikro-orm/core": "^5.8.2",
91f02d3b 103 "@mikro-orm/mariadb": "^5.8.2",
a180be40 104 "@mikro-orm/reflection": "^5.8.2",
bc49696a 105 "@mikro-orm/sqlite": "^5.8.2",
bbe10d5f 106 "ajv": "^8.12.0",
e3018bc4 107 "ajv-formats": "^2.1.1",
08049dfd 108 "basic-ftp": "^5.0.3",
03e9d277 109 "chalk": "^5.3.0",
a675e34b 110 "date-fns": "^2.30.0",
6b442d92 111 "http-status-codes": "^2.3.0",
088ee3c1 112 "just-merge": "^3.2.0",
5a2a53cf 113 "logform": "^2.5.1",
4a5a7863 114 "mnemonist": "^0.39.5",
1d8f226b 115 "mongodb": "^6.1.0",
bc49696a 116 "poolifier": "^2.7.1",
1dc29974 117 "source-map-support": "^0.5.21",
cd622f55 118 "tar": "^6.2.0",
bca45810 119 "tslib": "^2.6.2",
3e8d029b 120 "winston": "^3.10.0",
2820900f 121 "winston-daily-rotate-file": "^4.7.1",
115ee0e2 122 "ws": "^8.14.2"
7dde0b73 123 },
3d337bdb 124 "optionalDependencies": {
ef85c95a 125 "bufferutil": "^4.0.7",
d994fe7c 126 "utf-8-validate": "^6.0.3"
3d337bdb 127 },
7dde0b73 128 "devDependencies": {
061ff2b0 129 "@commitlint/cli": "^17.7.1",
b1af7ec9 130 "@commitlint/config-conventional": "^17.7.0",
59d19f46 131 "@mikro-orm/cli": "^5.8.2",
b5ef1485 132 "@release-it/bumper": "^5.1.0",
b78290ea 133 "@rollup/plugin-json": "^6.0.0",
7e4b5b38 134 "@rollup/plugin-terser": "^0.4.3",
e864dfab 135 "@rollup/plugin-typescript": "^11.1.3",
f704ec19 136 "@types/mocha": "^10.0.1",
47e22477 137 "@types/mochawesome": "^6.2.1",
23826445 138 "@types/node": "^20.6.3",
60354605 139 "@types/sinon": "^10.0.16",
b93b6b49 140 "@types/tar": "^6.1.6",
20770557 141 "@types/ws": "^8.5.5",
38dcb6d1
JB
142 "@typescript-eslint/eslint-plugin": "^6.7.2",
143 "@typescript-eslint/parser": "^6.7.2",
672551ed 144 "@web/rollup-plugin-copy": "^0.4.0",
6e19d740 145 "auto-changelog": "^2.4.0",
20561f78 146 "c8": "^8.0.1",
08921fbb 147 "clinic": "^13.0.0",
93b6750e 148 "cross-env": "^7.0.3",
5d6989f2 149 "eslint": "^8.49.0",
24a27d1b 150 "eslint-config-prettier": "^9.0.0",
b1af7ec9 151 "eslint-import-resolver-typescript": "^3.6.0",
bca45810 152 "eslint-plugin-import": "^2.28.1",
1c64afa6 153 "eslint-plugin-jsdoc": "^46.8.2",
ec7e7c38 154 "eslint-plugin-n": "^16.1.0",
5edd8ba0 155 "eslint-plugin-prettier": "^5.0.0",
0e4fa348 156 "eslint-plugin-tsdoc": "^0.2.17",
3810892e 157 "expect": "^29.7.0",
bbe10d5f 158 "husky": "^8.0.3",
bf84730b 159 "lint-staged": "^14.0.1",
d439da5c 160 "mocha": "^10.2.0",
39dca63f 161 "mochawesome": "^7.1.3",
50be55e7 162 "prettier": "^3.0.3",
57f518ed 163 "release-it": "^16.1.5",
064d000b 164 "rimraf": "^5.0.1",
47e22477 165 "robohydra": "^0.6.9",
b2c628b6 166 "rollup": "^3.29.2",
cb1948a3 167 "rollup-plugin-analyzer": "^4.0.0",
44b07a21 168 "rollup-plugin-delete": "^2.0.0",
43ef86a2 169 "semver": "^7.5.4",
ffef3d42 170 "sinon": "^16.0.0",
9090050f 171 "ts-node": "^10.9.1",
d80459ea 172 "typescript": "~5.2.2"
7dde0b73
JB
173 }
174}