Add subdir wildcards explicitly in the glob pattern

Prettier has an open bug where it doesn't correctly handle the
globstart pattern:

https://github.com/jlongster/prettier/issues/145

Listing the subdir globstars explicitly (to a deep enough level) fixes
this for now.
This commit is contained in:
Kimmo Puputti 2017-01-18 14:39:36 +02:00
parent b379cc03b2
commit a1236c66a8

View file

@ -24,7 +24,7 @@
"clean": "rm -rf build/*",
"dev": "sharetribe-scripts start",
"build": "sharetribe-scripts build",
"prettier": "prettier --write --print-width 100 --single-quote --trailing-comma src/**/*.js server/*.js",
"prettier": "prettier --write --print-width 100 --single-quote --trailing-comma server/*.js src/*.js src/**/*.js src/**/**/*.js",
"test": "sharetribe-scripts test --env=jsdom",
"test-ci": "sharetribe-scripts test --env=jsdom --runInBand",
"eject": "sharetribe-scripts eject",