Skip to content

Commit 761f578

Browse files
Use JSON for babel config
Avoid it getting included when looking for .js files
1 parent 3e61985 commit 761f578

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

babel.config.js

-6
This file was deleted.

babel.config.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", { "targets": { "node": "current" } }],
4+
"@babel/preset-typescript"
5+
]
6+
}

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,23 @@
2121
"schedule"
2222
],
2323
"scripts": {
24-
"clean": "git clean -xdf -e node_modules",
24+
"clean": "rimraf *.d.ts *.js *.map tests/*.d.ts tests/*.js tests/*.map *.tgz",
2525
"build": "tsc",
2626
"test": "jest"
2727
},
28-
"files": ["*.js", "*.js.map", "*.d.ts"],
28+
"files": [
29+
"*.js",
30+
"*.js.map",
31+
"*.d.ts"
32+
],
2933
"devDependencies": {
3034
"@babel/core": "^7.12.3",
3135
"@babel/preset-env": "^7.12.1",
3236
"@babel/preset-typescript": "^7.12.1",
3337
"@types/jest": "^26.0.15",
3438
"babel-jest": "^26.6.1",
3539
"jest": "^26.6.1",
40+
"rimraf": "^3.0.2",
3641
"typescript": "^4.0.5"
3742
}
3843
}

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -3627,7 +3627,7 @@ ret@~0.1.10:
36273627
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
36283628
integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==
36293629

3630-
rimraf@^3.0.0:
3630+
rimraf@^3.0.0, rimraf@^3.0.2:
36313631
version "3.0.2"
36323632
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
36333633
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==

0 commit comments

Comments
 (0)