Skip to content

Commit

Permalink
chore: delete tests instead of ignoring them with babel
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 17, 2019
1 parent c595ba0 commit 9f858cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion babel.config.js
@@ -1,6 +1,5 @@
'use strict';

module.exports = {
ignore: ['**/__tests__/**'],
presets: [['@babel/preset-env', { targets: { node: 6 } }]],
};
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -26,12 +26,13 @@
"eslint": ">=5"
},
"scripts": {
"prepare": "yarn build",
"prepare": "yarn build && yarn postbuild",
"lint": "eslint . --ignore-pattern '!.eslintrc.js'",
"prettylint": "prettylint docs/**/*.md README.md package.json",
"prepublishOnly": "yarn build",
"test": "jest",
"build": "babel src --out-dir lib"
"build": "babel src --out-dir lib",
"postbuild": "rimraf lib/**/__tests__/**"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
Expand All @@ -51,7 +52,8 @@
"jest-runner-eslint": "^0.7.1",
"lint-staged": "^8.0.4",
"prettier": "^1.10.2",
"prettylint": "^1.0.0"
"prettylint": "^1.0.0",
"rimraf": "^2.6.3"
},
"prettier": {
"proseWrap": "always",
Expand Down

0 comments on commit 9f858cb

Please sign in to comment.