{
- "name": "ev-simulator",
- "version": "1.0.40",
+ "name": "e-mobility-charging-stations-simulator",
+ "version": "1.1.81",
"engines": {
- "node": "14.x.x",
- "npm": "6.x.x"
+ "node": ">=16.0.0",
+ "npm": ">=8.0.0"
},
"repository": {
"type": "git",
- "url": "https://github.com/jerome-benoit/ev-simulator.git"
+ "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
},
- "description": "Electric Vehicle charging stations simulator",
- "author": "SAP E-Mobility Labs France <e-mobility@sap.com>",
+ "description": "Electric vehicle charging stations simulator",
+ "author": "SAP E-Mobility <e-mobility@sap.com>",
"contributors": [
{
"name": "Jérôme Benoit",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
- "main": "dist/start.js",
+ "exports": [
+ "./dist/start.cjs",
+ "./dist/start.mjs"
+ ],
+ "lint-staged": {
+ "src/**/*.{js,ts}": [
+ "prettier --write",
+ "eslint --cache --fix"
+ ]
+ },
"auto-changelog": {
- "commitUrl": "https://github.com/jerome-benoit/ev-simulator/commit/{id}",
- "issueUrl": "https://github.com/jerome-benoit/ev-simulator/issues/{id}",
- "mergeUrl": "https://github.com/jerome-benoit/ev-simulator/pull/{id}",
- "compareUrl": "https://github.com/jerome-benoit/ev-simulator/compare/{from}...{to}"
+ "commitUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/commit/{id}",
+ "issueUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/issues/{id}",
+ "mergeUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/pull/{id}",
+ "compareUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/compare/{from}...{to}"
+ },
+ "mikro-orm": {
+ "tsConfigPath": "./tsconfig-orm.json",
+ "useTsNode": true
},
"scripts": {
+ "prepare": "node prepare.js",
+ "build-requirements": "node build-requirements.js",
"prestart": "npm run build",
- "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js",
- "start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.js",
- "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.js",
- "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.js",
- "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.js",
- "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.js",
- "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.js",
- "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.js",
- "rollup": "rollup --config",
+ "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.cjs",
+ "start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.cjs",
+ "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.cjs",
+ "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.cjs",
+ "start:dev:esm": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs",
+ "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.cjs",
+ "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.cjs",
+ "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.cjs",
+ "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.cjs",
+ "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.cjs",
+ "rollup": "npm run build-requirements && rollup --config",
"build": "npm run rollup",
"build:dev": "npm run rollup -- --environment BUILD:development",
"build:dev:watch": "npm run rollup -- --environment BUILD:development --watch",
- "build:mta": "mbt build",
- "lint": "cross-env TIMING=1 eslint --ext .js,.ts src",
- "lint:fix": "cross-env TIMING=1 eslint --fix --ext .js,.ts src",
- "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'",
- "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc mocha test/**/*Test.ts",
+ "lint": "cross-env TIMING=1 eslint --cache --ext .js,.ts src",
+ "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src",
+ "format": "prettier --write .",
+ "test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} nyc mocha test/**/*Test.ts",
"coverage": "nyc report --reporter=lcov",
"coverage:html": "nyc report --reporter=html",
"clinic:clean": "clinic clean",
- "npm-check": "npm-check",
+ "npm-check": "npx npm-check",
"robohydra": "robohydra test/robohydra/config.json",
"git:sinit": "git submodule update --init --recursive --force",
"git:sdiff": "git diff && git submodule foreach 'git diff'",
"git:supdate": "git submodule update --remote --recursive --merge",
"git:spush": "git push --recurse-submodules=on-demand",
+ "sonar:properties": "./src/scripts/updateSonarProps.sh",
"release": "release-it"
},
"dependencies": {
- "basic-ftp": "^4.6.6",
- "mongodb": "^4.1.0",
- "poolifier": "^2.0.2",
- "source-map-support": "^0.5.19",
- "tar": "^6.1.10",
- "tslib": "^2.3.1",
- "uuid": "^8.3.2",
- "winston": "^3.3.3",
- "winston-daily-rotate-file": "^4.5.5",
- "ws": "^8.2.0"
+ "@mikro-orm/core": "^5.4.2",
+ "@mikro-orm/mariadb": "^5.4.2",
+ "@mikro-orm/reflection": "^5.4.2",
+ "@mikro-orm/sqlite": "^5.4.2",
+ "ajv": "^8.11.0",
+ "ajv-draft-04": "^1.0.0",
+ "ajv-formats": "^2.1.1",
+ "basic-ftp": "^5.0.2",
+ "chalk": "^4.1.2",
+ "http-status-codes": "^2.2.0",
+ "mnemonist": "^0.39.3",
+ "moment": "^2.29.4",
+ "mongodb": "^4.10.0",
+ "poolifier": "^2.2.0",
+ "proper-lockfile": "^4.1.2",
+ "source-map-support": "^0.5.21",
+ "tar": "^6.1.11",
+ "tslib": "^2.4.0",
+ "uuid": "^9.0.0",
+ "winston": "^3.8.2",
+ "winston-daily-rotate-file": "^4.7.1",
+ "ws": "^8.9.0"
},
"optionalDependencies": {
- "bufferutil": "^4.0.3",
- "utf-8-validate": "^5.0.5"
+ "bufferutil": "^4.0.6",
+ "utf-8-validate": "^5.0.9"
},
"devDependencies": {
- "@istanbuljs/nyc-config-typescript": "^1.0.1",
+ "@istanbuljs/nyc-config-typescript": "^1.0.2",
+ "@mikro-orm/cli": "^5.4.2",
"@rollup/plugin-json": "^4.1.0",
- "@types/mocha": "^9.0.0",
+ "@types/mocha": "^10.0.0",
"@types/mochawesome": "^6.2.1",
- "@types/node": "^14.17.11",
- "@types/tar": "^4.0.5",
- "@types/uuid": "^8.3.1",
- "@types/ws": "^7.4.7",
- "@typescript-eslint/eslint-plugin": "^4.29.3",
- "@typescript-eslint/parser": "^4.29.3",
- "auto-changelog": "^2.3.0",
- "clinic": "^9.0.0",
+ "@types/node": "^18.8.2",
+ "@types/proper-lockfile": "^4.1.2",
+ "@types/tar": "^6.1.3",
+ "@types/uuid": "^8.3.4",
+ "@types/ws": "^8.5.3",
+ "@typescript-eslint/eslint-plugin": "^5.39.0",
+ "@typescript-eslint/parser": "^5.39.0",
+ "auto-changelog": "^2.4.0",
+ "clinic": "^12.0.0",
"cross-env": "^7.0.3",
- "eslint": "^7.32.0",
- "eslint-plugin-import": "^2.24.1",
- "eslint-plugin-jsdoc": "^36.0.7",
+ "eslint": "^8.24.0",
+ "eslint-config-prettier": "^8.5.0",
+ "eslint-import-resolver-typescript": "^3.5.1",
+ "eslint-plugin-import": "^2.26.0",
+ "eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-node": "^11.1.0",
- "expect": "^27.0.6",
- "mbt": "^1.2.3",
- "mocha": "^9.1.0",
- "mochawesome": "^6.2.2",
- "npm-check": "^5.9.2",
+ "eslint-plugin-prettier": "^4.2.1",
+ "expect": "^29.1.2",
+ "husky": "^8.0.1",
+ "lint-staged": "^13.0.3",
+ "mocha": "^10.0.0",
+ "mochawesome": "^7.1.3",
"nyc": "^15.1.0",
- "release-it": "^14.11.5",
+ "prettier": "^2.7.1",
+ "release-it": "^15.5.0",
"robohydra": "^0.6.9",
- "rollup": "^2.56.3",
+ "rollup": "^2.79.1",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-istanbul": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
- "rollup-plugin-typescript2": "^0.30.0",
- "ts-node": "^10.2.1",
- "typescript": "^4.3.5"
+ "rollup-plugin-ts": "^3.0.2",
+ "semver": "^7.3.8",
+ "ts-node": "^10.9.1",
+ "typescript": "^4.8.4"
}
}