switch to type "module" for this project (ESM)
since it's still kind of small, it makes sense to switch to ESM, now.
Showing
- .eslintrc 10 additions, 0 deletions.eslintrc
- .eslintrc.js 0 additions, 10 deletions.eslintrc.js
- jest.config.js 1 addition, 1 deletionjest.config.js
- package.json 3 additions, 3 deletionspackage.json
- spec/.eslintrc 6 additions, 0 deletionsspec/.eslintrc
- spec/.eslintrc.js 0 additions, 6 deletionsspec/.eslintrc.js
- spec/server_test.js 36 additions, 35 deletionsspec/server_test.js
- spec/util.js 18 additions, 0 deletionsspec/util.js
- src/createApp.js 19 additions, 16 deletionssrc/createApp.js
- src/index.js 4 additions, 3 deletionssrc/index.js
- src/swagger.yaml 0 additions, 0 deletionssrc/swagger.yaml
- yarn.lock 14 additions, 397 deletionsyarn.lock
.eslintrc
0 → 100644
.eslintrc.js
deleted
100644 → 0
... | ... | @@ -2,13 +2,14 @@ |
"name": "manifest-service", | ||
"version": "1.0.0", | ||
"description": "Provides a combined manifest.json", | ||
"type": "module", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"start": "node index.js", | ||
"dev": "nodemon index.js | pino-pretty", | ||
"prepare": "husky install", | ||
"test": "jest --no-cache" | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest --no-cache" | ||
}, | ||
"author": "Open-Xchange", | ||
"license": "CC-BY-NC-SA-2.5", | ||
... | ... | @@ -17,13 +18,13 @@ |
"dotenv-defaults": "^2.0.1", | ||
"eslint-config-standard": "^16.0.2", | ||
"express": "^4.17.1", | ||
"express-prom-bundle": "^6.4.1", | ||
"helmet": "^4.4.1", | ||
"js-yaml": "^4.0.0", | ||
"node-fetch": "^2.6.1", | ||
"pino": "^6.11.2", | ||
"pino-http": "^5.5.0", | ||
"prom-client": "^13.1.0", | ||
"prometheus-api-metrics": "^3.2.0", | ||
"swagger-ui-express": "^4.1.6" | ||
}, | ||
"devDependencies": { | ||
... | ... | @@ -34,7 +35,6 @@ |
"eslint-plugin-jest": "^24.4.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"fetch-mock-jest": "^1.5.1", | ||
"husky": ">=6", | ||
"jest": "^27.1.0", | ||
"jest-extended": "^0.11.5", | ||
... | ... |
spec/.eslintrc
0 → 100644
spec/.eslintrc.js
deleted
100644 → 0
spec/util.js
0 → 100644
File moved
This diff is collapsed.
Please register or sign in to comment