test: fix ts-node configuration with ESM and mocha
[e-mobility-charging-stations-simulator.git] / package.json
1 {
2 "name": "e-mobility-charging-stations-simulator",
3 "version": "1.1.96",
4 "engines": {
5 "node": ">=16.0.0",
6 "npm": ">=8.3.0"
7 },
8 "repository": {
9 "type": "git",
10 "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
11 },
12 "description": "Electric vehicle charging stations simulator",
13 "author": "SAP E-Mobility <e-mobility@sap.com>",
14 "contributors": [
15 {
16 "name": "Jérôme Benoit",
17 "email": "jerome.benoit@piment-noir.org",
18 "url": "https://github.com/jerome-benoit"
19 }
20 ],
21 "license": "Apache-2.0",
22 "licenses": [
23 {
24 "type": "Apache-2.0",
25 "url": "http://www.apache.org/licenses/LICENSE-2.0"
26 }
27 ],
28 "type": "module",
29 "exports": [
30 "./dist/start.mjs"
31 ],
32 "auto-changelog": {
33 "commitUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/commit/{id}",
34 "issueUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/issues/{id}",
35 "mergeUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/pull/{id}",
36 "compareUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/compare/{from}...{to}"
37 },
38 "mikro-orm": {
39 "tsConfigPath": "./tsconfig-orm.json",
40 "useTsNode": true
41 },
42 "scripts": {
43 "prepare": "node prepare.cjs",
44 "build-requirements": "node --no-warnings build-requirements.mjs",
45 "start": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.mjs",
46 "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs",
47 "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.mjs",
48 "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.mjs",
49 "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.mjs",
50 "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.mjs",
51 "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.mjs",
52 "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.mjs",
53 "rollup": "npm run build-requirements && rollup --config",
54 "build": "npm run rollup",
55 "build:dev": "npm run rollup -- --environment BUILD:development",
56 "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch",
57 "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
58 "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.cjs,.mjs,.ts src",
59 "format": "prettier --cache --write .",
60 "test": "c8 mocha test/**/*Test.ts",
61 "test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
62 "coverage": "c8 report --reporter=lcov",
63 "coverage:html": "c8 report --reporter=html",
64 "clinic:clean": "clinic clean",
65 "robohydra": "robohydra test/robohydra/config.json",
66 "git:sinit": "git submodule update --init --recursive --force",
67 "git:sdiff": "git diff && git submodule foreach 'git diff'",
68 "git:supdate": "git submodule update --remote --recursive --merge",
69 "git:spush": "git push --recurse-submodules=on-demand",
70 "release": "release-it"
71 },
72 "overrides": {
73 "cacheable-request": "^10.2.7",
74 "d3-color": "^3.1.0"
75 },
76 "dependencies": {
77 "@mikro-orm/core": "^5.6.15",
78 "@mikro-orm/mariadb": "^5.6.15",
79 "@mikro-orm/reflection": "^5.6.15",
80 "@mikro-orm/sqlite": "^5.6.15",
81 "ajv": "^8.12.0",
82 "ajv-formats": "^2.1.1",
83 "basic-ftp": "^5.0.2",
84 "chalk": "^5.2.0",
85 "http-status-codes": "^2.2.0",
86 "just-clone": "^6.2.0",
87 "just-merge": "^3.2.0",
88 "logform": "^2.5.1",
89 "mnemonist": "^0.39.5",
90 "moment": "^2.29.4",
91 "mongodb": "^5.1.0",
92 "poolifier": "^2.3.10",
93 "proper-lockfile": "^4.1.2",
94 "source-map-support": "^0.5.21",
95 "tar": "^6.1.13",
96 "tslib": "^2.5.0",
97 "winston": "^3.8.2",
98 "winston-daily-rotate-file": "^4.7.1",
99 "ws": "^8.13.0"
100 },
101 "optionalDependencies": {
102 "bufferutil": "^4.0.7",
103 "utf-8-validate": "^6.0.3"
104 },
105 "devDependencies": {
106 "@commitlint/cli": "^17.4.4",
107 "@commitlint/config-conventional": "^17.4.4",
108 "@mikro-orm/cli": "^5.6.15",
109 "@release-it/bumper": "^4.0.2",
110 "@rollup/plugin-json": "^6.0.0",
111 "@rollup/plugin-terser": "^0.4.0",
112 "@rollup/plugin-typescript": "^11.0.0",
113 "@types/mocha": "^10.0.1",
114 "@types/mochawesome": "^6.2.1",
115 "@types/node": "^18.15.3",
116 "@types/proper-lockfile": "^4.1.2",
117 "@types/tar": "^6.1.4",
118 "@types/ws": "^8.5.4",
119 "@typescript-eslint/eslint-plugin": "^5.55.0",
120 "@typescript-eslint/parser": "^5.55.0",
121 "auto-changelog": "^2.4.0",
122 "c8": "^7.13.0",
123 "clinic": "^12.1.0",
124 "cross-env": "^7.0.3",
125 "eslint": "^8.36.0",
126 "eslint-config-prettier": "^8.7.0",
127 "eslint-import-resolver-typescript": "^3.5.3",
128 "eslint-plugin-import": "^2.27.5",
129 "eslint-plugin-jsdoc": "^40.1.0",
130 "eslint-plugin-n": "^15.6.1",
131 "eslint-plugin-prettier": "^4.2.1",
132 "eslint-plugin-tsdoc": "^0.2.17",
133 "expect": "^29.5.0",
134 "husky": "^8.0.3",
135 "lint-staged": "^13.2.0",
136 "mocha": "^10.2.0",
137 "mochawesome": "^7.1.3",
138 "prettier": "^2.8.4",
139 "release-it": "^15.9.0",
140 "robohydra": "^0.6.9",
141 "rollup": "^3.19.1",
142 "rollup-plugin-analyzer": "^4.0.0",
143 "rollup-plugin-copy": "^3.4.0",
144 "rollup-plugin-delete": "^2.0.0",
145 "semver": "^7.3.8",
146 "ts-node": "^10.9.1",
147 "typescript": "^5.0.2"
148 }
149 }