Commit | Line | Data |
---|---|---|
7dde0b73 | 1 | { |
beb235d6 | 2 | "$schema": "https://json.schemastore.org/package", |
7f774a55 | 3 | "name": "e-mobility-charging-stations-simulator", |
75c7fbf0 | 4 | "version": "2.0.1", |
7dde0b73 | 5 | "engines": { |
7b8957c7 | 6 | "node": ">=20.0.0", |
6eddb719 | 7 | "pnpm": ">=9.0.0" |
7dde0b73 | 8 | }, |
8f074ebf | 9 | "volta": { |
d909a1b8 | 10 | "node": "22.11.0", |
3b49a652 | 11 | "pnpm": "9.14.2" |
8f074ebf | 12 | }, |
3b49a652 | 13 | "packageManager": "pnpm@9.14.2", |
7dde0b73 JB |
14 | "repository": { |
15 | "type": "git", | |
7f774a55 | 16 | "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git" |
7dde0b73 | 17 | }, |
e6159ce8 | 18 | "description": "Electric vehicle charging stations simulator", |
68250247 | 19 | "author": "SAP E-Mobility <e-mobility@sap.com>", |
0215fd14 JB |
20 | "keywords": [ |
21 | "ocpp", | |
22 | "ocpp-j", | |
23 | "ocpp1.6", | |
24 | "ocpp2.0", | |
25 | "charging station", | |
26 | "load testing" | |
27 | ], | |
4160581a JB |
28 | "contributors": [ |
29 | { | |
30 | "name": "Jérôme Benoit", | |
31 | "email": "jerome.benoit@piment-noir.org", | |
32 | "url": "https://github.com/jerome-benoit" | |
33 | } | |
34 | ], | |
7dde0b73 JB |
35 | "license": "Apache-2.0", |
36 | "licenses": [ | |
37 | { | |
38 | "type": "Apache-2.0", | |
39 | "url": "http://www.apache.org/licenses/LICENSE-2.0" | |
40 | } | |
41 | ], | |
92ce5473 | 42 | "type": "module", |
f3f07945 | 43 | "exports": "./dist/start.js", |
ae8ee665 | 44 | "mikro-orm": { |
1552a666 | 45 | "tsConfigPath": "./tsconfig-mikro-orm.json", |
ae8ee665 JB |
46 | "useTsNode": true |
47 | }, | |
7dde0b73 | 48 | "scripts": { |
bf30bb22 JB |
49 | "prepare": "node scripts/prepare.js", |
50 | "build-requirements": "node scripts/build-requirements.js", | |
08164562 | 51 | "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js", |
d60bc09d JB |
52 | "start:dev": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps dist/start.js", |
53 | "start:dev:debug": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps --inspect dist/start.js", | |
54 | "start:prof": "cross-env NODE_ENV=production node --enable-source-maps --prof dist/start.js", | |
55 | "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node --enable-source-maps dist/start.js", | |
56 | "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node --enable-source-maps dist/start.js", | |
57 | "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node --enable-source-maps dist/start.js", | |
58 | "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node --enable-source-maps dist/start.js", | |
bf30bb22 | 59 | "esbuild": "pnpm build-requirements && node scripts/bundle.js", |
44ebef4c | 60 | "build": "pnpm esbuild", |
44ebef4c | 61 | "build:dev": "cross-env BUILD=development pnpm esbuild", |
e1486a4c JB |
62 | "build:cf": "pnpm clean:node_modules && pnpm exec cross-env SKIP_PREINSTALL=1 npm install && pnpm build", |
63 | "build:cf:dev": "pnpm clean:node_modules && pnpm exec cross-env SKIP_PREINSTALL=1 npm install && pnpm build:dev", | |
1552a666 | 64 | "build:entities": "tsc -p tsconfig-mikro-orm.json", |
e1486a4c JB |
65 | "clean:dist": "pnpm exec rimraf dist", |
66 | "clean:node_modules": "pnpm exec rimraf node_modules", | |
bf30bb22 JB |
67 | "lint": "cross-env TIMING=1 eslint --cache src tests scripts ./*.js ./*.ts", |
68 | "lint:fix": "cross-env TIMING=1 eslint --cache --fix src tests scripts ./*.js ./*.ts", | |
69 | "format": "prettier --cache --write .; eslint --cache --fix src tests scripts ./*.js ./*.ts", | |
563a5165 JB |
70 | "test": "glob -c \"c8 node --import tsx --test\" \"tests/**/*.test.ts\"", |
71 | "test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"", | |
12240a2e JB |
72 | "coverage": "c8 report --reporter=lcov", |
73 | "coverage:html": "c8 report --reporter=html", | |
f6e18e33 | 74 | "clinic:clean": "clinic clean", |
2e65f185 | 75 | "sea": "pnpm exec rimraf ./dist/evse-simulator ./dist/evse-simulator.blob && node --experimental-sea-config sea-config.json && pnpm dlx ncp $(volta which node || n which lts || nvm which node || command -v node) ./dist/evse-simulator && pnpm dlx postject ./dist/evse-simulator NODE_SEA_BLOB ./dist/evse-simulator.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 && pnpm exec rimraf ./dist/evse-simulator.blob" |
7dde0b73 | 76 | }, |
a4e5c2e2 JB |
77 | "pnpm": { |
78 | "overrides": { | |
64378b5e | 79 | "cacheable-request": "^10.2.10", |
a4e5c2e2 | 80 | "d3-color": "^3.1.0", |
64378b5e | 81 | "ejs": "^3.1.9", |
80e9ca9d | 82 | "got": "^12.6.1", |
d517f61a | 83 | "semver": "^7.5.3", |
2863f68f | 84 | "uuid": "^9.0.0", |
d517f61a | 85 | "tough-cookie": "^4.1.3" |
a4e5c2e2 | 86 | } |
db64a53b | 87 | }, |
7dde0b73 | 88 | "dependencies": { |
1c3e200f | 89 | "@mikro-orm/core": "^6.4.0", |
90 | "@mikro-orm/mariadb": "^6.4.0", | |
91 | "@mikro-orm/reflection": "^6.4.0", | |
92 | "@mikro-orm/sqlite": "^6.4.0", | |
2aad4b9d | 93 | "ajv": "^8.17.1", |
80af2766 | 94 | "ajv-formats": "^3.0.1", |
22af77b3 | 95 | "basic-ftp": "^5.0.5", |
03e9d277 | 96 | "chalk": "^5.3.0", |
fb89e155 | 97 | "date-fns": "^4.1.0", |
6b442d92 | 98 | "http-status-codes": "^2.3.0", |
1c3e200f | 99 | "logform": "^2.7.0", |
e80de0da | 100 | "mnemonist": "0.40.0-rc1", |
087efff0 | 101 | "mongodb": "^6.11.0", |
4a7e1aca | 102 | "poolifier": "^4.4.5", |
7c4f2bae | 103 | "rambda": "^9.4.0", |
d68118bd | 104 | "tar": "^7.4.3", |
1c3e200f | 105 | "winston": "^3.17.0", |
b0211498 | 106 | "winston-daily-rotate-file": "^5.0.0", |
4119c6ed | 107 | "ws": "^8.18.0" |
7dde0b73 | 108 | }, |
3d337bdb | 109 | "optionalDependencies": { |
4cb190b6 | 110 | "bufferutil": "^4.0.8", |
636421d3 | 111 | "utf-8-validate": "^6.0.5" |
3d337bdb | 112 | }, |
7dde0b73 | 113 | "devDependencies": { |
c4a89082 JB |
114 | "@commitlint/cli": "^19.6.0", |
115 | "@commitlint/config-conventional": "^19.6.0", | |
9c953231 | 116 | "@cspell/eslint-plugin": "^8.16.0", |
2b0a5137 | 117 | "@eslint/js": "^9.15.0", |
1c3e200f | 118 | "@mikro-orm/cli": "^6.4.0", |
4a7e1aca | 119 | "@std/expect": "npm:@jsr/std__expect@^1.0.8", |
30be000b | 120 | "@types/node": "^22.10.0", |
9ed96ef8 | 121 | "@types/semver": "^7.5.8", |
636421d3 | 122 | "@types/ws": "^8.5.13", |
a6a928b1 | 123 | "c8": "^10.1.2", |
08921fbb | 124 | "clinic": "^13.0.0", |
93b6750e | 125 | "cross-env": "^7.0.3", |
4809e8dc | 126 | "esbuild": "^0.24.0", |
44ebef4c JB |
127 | "esbuild-plugin-clean": "^1.0.1", |
128 | "esbuild-plugin-copy": "^2.1.1", | |
2b0a5137 | 129 | "eslint": "^9.15.0", |
66a7748d | 130 | "eslint-define-config": "^2.1.0", |
93690010 | 131 | "eslint-plugin-jsdoc": "^50.5.0", |
30be000b | 132 | "eslint-plugin-perfectionist": "^4.1.2", |
a9424ffb | 133 | "eslint-plugin-vue": "^9.31.0", |
cff23bd9 | 134 | "glob": "^11.0.0", |
2b0a5137 | 135 | "husky": "^9.1.7", |
d3668693 | 136 | "lint-staged": "^15.2.10", |
01ae0b21 | 137 | "neostandard": "^0.11.9", |
30be000b | 138 | "prettier": "^3.4.0", |
1a12a400 | 139 | "rimraf": "^6.0.1", |
3ecfcc6c | 140 | "semver": "^7.6.3", |
66a7748d | 141 | "ts-node": "^10.9.2", |
6e0ee990 | 142 | "tsx": "^4.19.2", |
0671e78a | 143 | "typescript": "~5.7.2" |
7dde0b73 JB |
144 | } |
145 | } |