Skip to content

Commit 9f858cb

Browse files
committed
chore: delete tests instead of ignoring them with babel
1 parent c595ba0 commit 9f858cb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

babel.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
ignore: ['**/__tests__/**'],
54
presets: [['@babel/preset-env', { targets: { node: 6 } }]],
65
};

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
"eslint": ">=5"
2727
},
2828
"scripts": {
29-
"prepare": "yarn build",
29+
"prepare": "yarn build && yarn postbuild",
3030
"lint": "eslint . --ignore-pattern '!.eslintrc.js'",
3131
"prettylint": "prettylint docs/**/*.md README.md package.json",
3232
"prepublishOnly": "yarn build",
3333
"test": "jest",
34-
"build": "babel src --out-dir lib"
34+
"build": "babel src --out-dir lib",
35+
"postbuild": "rimraf lib/**/__tests__/**"
3536
},
3637
"devDependencies": {
3738
"@babel/cli": "^7.4.4",
@@ -51,7 +52,8 @@
5152
"jest-runner-eslint": "^0.7.1",
5253
"lint-staged": "^8.0.4",
5354
"prettier": "^1.10.2",
54-
"prettylint": "^1.0.0"
55+
"prettylint": "^1.0.0",
56+
"rimraf": "^2.6.3"
5557
},
5658
"prettier": {
5759
"proseWrap": "always",

0 commit comments

Comments
 (0)