Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 1dec23e

Browse files
committed
updating babel config
1 parent c2ad6d8 commit 1dec23e

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

babel.config.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": "18"
8+
}
9+
}
10+
]
11+
]
12+
}

babelrc-node.js

-8
This file was deleted.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"rimraf": "^2.6.3"
2424
},
2525
"scripts": {
26-
"compile": "rimraf lib/ && babel --config-file ./babelrc-node -d lib src",
27-
"compile:dev": "rimraf lib/ && babel --config-file ./babelrc-node --watch -d lib src",
26+
"compile": "rimraf lib/ && babel --config-file ./babel.config.json -d lib src",
27+
"compile:dev": "rimraf lib/ && babel --config-file ./babel.config.json --watch -d lib src",
2828
"lint": "node_modules/.bin/eslint src spec --cache",
2929
"lint:fix": "node_modules/.bin/eslint src spec --fix --cache",
3030
"test": "babel-node --config-file ./babelrc-node ./node_modules/.bin/jasmine --random=false",

0 commit comments

Comments
 (0)