I have a package.json file configured to grab all js files from a directory and merge them into a new file, doing transpiling to ES5. However, it is just creating a new file and unifying all the js files from the specified directory. It is not converting to ES5. I do not know what's missing in the package.json file, if you can help me. Here is the code:
{
"name": "farmafam",
"version": "1.0.0",
"description": "",
"babel": {
"presets": ["es2015"]
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"babel": "babel ../js/modulos/js-es6 --watch --out-file ../js/modulos/modulos.js"
},
"author": "KM2",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-preset-es2015": "^6.14.0"
}
}