Skip to content

Commit

Permalink
Move flow-copy-source to prebuild and ignore test files
Browse files Browse the repository at this point in the history
  • Loading branch information
rickharris committed Jan 10, 2019
1 parent 82c1933 commit 2760ed1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"scripts": {
"prepublish": "yarn run build",
"build": "babel ./src -d ./lib && flow-copy-source src lib",
"build": "babel ./src --ignore **/*/__mocks__,**/test.js -d ./lib",
"prebuild": "flow-copy-source --ignore '**/*/__mocks__/*.js' --ignore '**/*test.js' ./src ./lib",

This comment has been minimized.

Copy link
@amccloud

amccloud Jan 10, 2019

Contributor

🥇

"lint": "eslint .",
"test": "jest",
"test-inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
Expand Down Expand Up @@ -70,4 +71,4 @@
"peerDependencies": {
"@elasticprojects/abstract-cli": "^0.31.0"
}
}
}

0 comments on commit 2760ed1

Please sign in to comment.