X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=package.json;h=9557e59d92ff4cfeaca0197484d05e6d5348fe28;hb=65db1aeeb41bb9c47cb5ffff8f09dd025d456c2a;hp=ebeb1881380ba0fb9f39e4568c092020c01ddb03;hpb=bc464bb1fb95c50a14b25478d35be76b7d8e5498;p=e-mobility-charging-stations-simulator.git diff --git a/package.json b/package.json index ebeb1881..9557e59d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "charging-stations-simulator", - "version": "1.1.47", + "version": "1.1.51", "engines": { "node": "16.x.x", "npm": "8.x.x" @@ -10,7 +10,7 @@ "url": "https://github.com/jerome-benoit/charging-stations-simulator.git" }, "description": "Electric Vehicle charging stations simulator", - "author": "SAP E-Mobility Labs France ", + "author": "SAP E-Mobility ", "contributors": [ { "name": "Jérôme Benoit", @@ -26,6 +26,12 @@ } ], "main": "./dist/start.js", + "lint-staged": { + "*.{js,ts}": [ + "prettier --write", + "eslint --cache --fix" + ] + }, "auto-changelog": { "commitUrl": "https://github.com/jerome-benoit/charging-stations-simulator/commit/{id}", "issueUrl": "https://github.com/jerome-benoit/charging-stations-simulator/issues/{id}", @@ -37,6 +43,7 @@ "useTsNode": true }, "scripts": { + "prepare": "husky install", "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", @@ -51,8 +58,9 @@ "build": "npm run rollup", "build:dev": "npm run rollup -- --environment BUILD:development", "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch", - "lint": "cross-env TIMING=1 eslint --ext .js,.ts src", - "lint:fix": "cross-env TIMING=1 eslint --fix --ext .js,.ts src", + "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 .", "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'", "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc mocha test/**/*Test.ts", "coverage": "nyc report --reporter=lcov", @@ -73,7 +81,7 @@ "@mikro-orm/sqlite": "^4.5.10", "basic-ftp": "^4.6.6", "chalk": "^4.1.2", - "mongodb": "^4.3.1", + "mongodb": "^4.4.1", "poolifier": "^2.2.0", "proper-lockfile": "^4.1.2", "source-map-support": "^0.5.21", @@ -94,35 +102,40 @@ "@rollup/plugin-json": "^4.1.0", "@types/mocha": "^9.1.0", "@types/mochawesome": "^6.2.1", - "@types/node": "^16.11.25", + "@types/node": "^16.11.26", "@types/proper-lockfile": "^4.1.2", "@types/tar": "^6.1.1", "@types/uuid": "^8.3.4", - "@types/ws": "^8.2.2", - "@typescript-eslint/eslint-plugin": "^5.12.0", - "@typescript-eslint/parser": "^5.12.0", + "@types/ws": "^8.5.2", + "@typescript-eslint/eslint-plugin": "^5.13.0", + "@typescript-eslint/parser": "^5.13.0", "auto-changelog": "^2.4.0", "clinic": "^11.1.0", "cross-env": "^7.0.3", - "eslint": "^8.9.0", + "eslint": "^8.10.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.25.4", - "eslint-plugin-jsdoc": "^37.9.2", + "eslint-plugin-jsdoc": "^37.9.6", "eslint-plugin-node": "^11.1.0", + "eslint-plugin-prettier": "^4.0.0", "expect": "^27.5.1", - "mocha": "^9.2.0", - "mochawesome": "^7.0.1", + "husky": "^7.0.4", + "lint-staged": "^12.3.5", + "mocha": "^9.2.1", + "mochawesome": "^7.1.1", "npm-check": "^5.9.2", "nyc": "^15.1.0", - "release-it": "^14.12.4", + "prettier": "^2.5.1", + "release-it": "^14.12.5", "robohydra": "^0.6.9", - "rollup": "^2.67.2", + "rollup": "^2.69.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-ts": "^2.0.5", - "ts-node": "^10.5.0", - "typescript": "^4.5.5" + "ts-node": "^10.6.0", + "typescript": "^4.6.2" } }