Globs aren't supported? #58

Closed
okonet opened this Issue Jan 10, 2017 · 2 comments

Projects

None yet

2 participants

@okonet
Contributor
okonet commented Jan 10, 2017

Running prettier --write --single-quote src/*.js or when using with package.json like this:

{
  "scripts": {
    "prettify": "prettier --write --single-quote",
    "prettify:src": "npm run prettify -- src/*.js *.js",
  }
}

it only processes the first file that the glob pattern is resolving. In my case running npm run prettify:src producing the following command:

prettier --write --single-quote "src/getDataTransferItems.js" "src/getDataTransferItems.spec.js" "src/index.js" "src/index.spec.js" "testSetup.js" "wallaby.config.js" "webpack.config.js"

But only src/getDataTransferItems.js got processed.

@vramana
Collaborator
vramana commented Jan 10, 2017
@okonet okonet added a commit to okonet/prettier that referenced this issue Jan 10, 2017
@okonet okonet feature: Add support for passing multiple files
Fixes #58
1a77d07
@okonet
Contributor
okonet commented Jan 10, 2017

Not anymore ↑

@jlongster jlongster closed this in #64 Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment