説明なし

package.json 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "$schema": "https://json.schemastore.org/package",
  3. "name": "e-mobility-charging-stations-simulator",
  4. "version": "2.0.3",
  5. "engines": {
  6. "node": ">=20.0.0",
  7. "pnpm": ">=9.0.0"
  8. },
  9. "volta": {
  10. "node": "22.14.0",
  11. "pnpm": "10.7.0"
  12. },
  13. "packageManager": "pnpm@10.7.0",
  14. "repository": {
  15. "type": "git",
  16. "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
  17. },
  18. "description": "Electric vehicle charging stations simulator",
  19. "author": "SAP E-Mobility <e-mobility@sap.com>",
  20. "keywords": [
  21. "ocpp",
  22. "ocpp-j",
  23. "ocpp1.6",
  24. "ocpp2.0",
  25. "charging station",
  26. "load testing"
  27. ],
  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. ],
  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. ],
  42. "type": "module",
  43. "exports": "./dist/start.js",
  44. "mikro-orm": {
  45. "tsConfigPath": "./tsconfig-mikro-orm.json",
  46. "useTsNode": true
  47. },
  48. "scripts": {
  49. "prepare": "node scripts/prepare.js",
  50. "build-requirements": "node scripts/build-requirements.js",
  51. "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
  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",
  59. "esbuild": "pnpm build-requirements && node scripts/bundle.js",
  60. "build": "pnpm esbuild",
  61. "build:dev": "cross-env BUILD=development pnpm esbuild",
  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",
  64. "build:entities": "tsc -p tsconfig-mikro-orm.json",
  65. "clean:dist": "pnpm exec rimraf dist",
  66. "clean:node_modules": "pnpm exec rimraf node_modules",
  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",
  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\"",
  72. "coverage": "c8 report --reporter=lcov",
  73. "coverage:html": "c8 report --reporter=html",
  74. "clinic:clean": "clinic clean",
  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"
  76. },
  77. "pnpm": {
  78. "overrides": {
  79. "cacheable-request": "^10.2.10",
  80. "d3-color": "^3.1.0",
  81. "ejs": "^3.1.9",
  82. "got": "^12.6.1",
  83. "nanoid": "^3.3.8",
  84. "semver": "^7.5.3",
  85. "tough-cookie": "^4.1.3",
  86. "uuid": "^9.0.0"
  87. }
  88. },
  89. "dependencies": {
  90. "@mikro-orm/core": "^6.4.11",
  91. "@mikro-orm/mariadb": "^6.4.11",
  92. "@mikro-orm/reflection": "^6.4.11",
  93. "@mikro-orm/sqlite": "^6.4.11",
  94. "ajv": "^8.17.1",
  95. "ajv-formats": "^3.0.1",
  96. "basic-ftp": "^5.0.5",
  97. "chalk": "^5.4.1",
  98. "date-fns": "^4.1.0",
  99. "http-status-codes": "^2.3.0",
  100. "logform": "^2.7.0",
  101. "mnemonist": "0.40.3",
  102. "mongodb": "^6.15.0",
  103. "poolifier": "^4.4.5",
  104. "rambda": "^9.4.2",
  105. "tar": "^7.4.3",
  106. "winston": "^3.17.0",
  107. "winston-daily-rotate-file": "^5.0.0",
  108. "ws": "^8.18.1"
  109. },
  110. "optionalDependencies": {
  111. "bufferutil": "^4.0.9",
  112. "utf-8-validate": "^6.0.5"
  113. },
  114. "devDependencies": {
  115. "@commitlint/cli": "^19.8.0",
  116. "@commitlint/config-conventional": "^19.8.0",
  117. "@cspell/eslint-plugin": "^8.18.0",
  118. "@eslint/js": "^9.23.0",
  119. "@mikro-orm/cli": "^6.4.11",
  120. "@std/expect": "npm:@jsr/std__expect@^1.0.14",
  121. "@types/node": "^22.13.14",
  122. "@types/semver": "^7.7.0",
  123. "@types/ws": "^8.18.0",
  124. "c8": "^10.1.3",
  125. "clinic": "^13.0.0",
  126. "cross-env": "^7.0.3",
  127. "esbuild": "^0.25.1",
  128. "esbuild-plugin-clean": "^1.0.1",
  129. "esbuild-plugin-copy": "^2.1.1",
  130. "eslint": "^9.23.0",
  131. "eslint-plugin-jsdoc": "^50.6.9",
  132. "eslint-plugin-perfectionist": "^4.10.1",
  133. "eslint-plugin-vue": "^9.33.0",
  134. "glob": "^11.0.1",
  135. "husky": "^9.1.7",
  136. "lint-staged": "^15.5.0",
  137. "neostandard": "^0.12.1",
  138. "prettier": "^3.5.3",
  139. "rimraf": "^6.0.1",
  140. "semver": "^7.7.1",
  141. "ts-node": "^10.9.2",
  142. "tsx": "^4.19.3",
  143. "typescript": "~5.8.2"
  144. }
  145. }