Update dependencies for JavaScript

Update to Babel 7 to avoid stern warnings during `npm install`
Update Mocha to version 8, also to avoid warnings and be compatible with
Babel 7
This commit is contained in:
Gabriel Birke 2021-05-14 11:22:05 +02:00
parent bee064f7c6
commit 765ff04d62
2 changed files with 14 additions and 9 deletions

View File

@ -21,16 +21,19 @@
},
"homepage": "https://github.com/emilybache/GildedRose-Refactoring-Kata",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-env": "1.7.0",
"babel-register": "^6.26.0",
"jasmine": "^3.2.0"
"@babel/core": "^7.14.0",
"@babel/preset-env": "7.14.0",
"@babel/register": "^7.13.0",
"jasmine": "^3.7.0"
},
"babel": {
"presets": [
[
"env", {
"targets": { "node": "current" }
"env",
{
"targets": {
"node": "current"
}
}
]
],

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Gilded Rose kata in Javascript with Mocha",
"scripts": {
"test": "mocha --compilers js:babel/register"
"test": "mocha --require @babel/register"
},
"repository": {
"type": "git",
@ -21,8 +21,10 @@
},
"homepage": "https://github.com/emilybache/GildedRose-Refactoring-Kata",
"devDependencies": {
"babel": "^5.8.23",
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.0",
"@babel/register": "^7.13.0",
"chai": "^4.2.0",
"mocha": "^5.2.0"
"mocha": "^8.4.0"
}
}