Skip to content

fix: wrap ignore pattern in quotes#23176

Merged
blainekasten merged 1 commit intogatsbyjs:masterfrom
LekoArts:wrap-ignore-pattern
Apr 16, 2020
Merged

fix: wrap ignore pattern in quotes#23176
blainekasten merged 1 commit intogatsbyjs:masterfrom
LekoArts:wrap-ignore-pattern

Conversation

@LekoArts
Copy link
Copy Markdown
Contributor

Description

So I've been seeing a reoccurring issue with the Gatsby monorepo on my local Windows (WSL) dev environment. When I ran yarn bootstrap the babel cli created files at packages/gatsby-source-graphql/batching/__tests__ even though __tests__ should be ignored.

The issue was zsh (my shell) and it already appeared in this previous PR: #14465

So I'm adding this to every script so that people don't accidentally commit files that should be ignored / not be generated via Babel. In the past I always had to exclude/delete those files first which is annoying and you can easily forget it.

Related Issues

#14465

@LekoArts LekoArts requested a review from a team April 16, 2020 13:58
Copy link
Copy Markdown
Contributor

@madalynrose madalynrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow thanks for going through and hunting down all of these! Are there any tests we can add around this to catch anything added in the future?

@blainekasten
Copy link
Copy Markdown
Contributor

I'm going to merge this as is. The downsides of this are relatively little so I am okay with skipping tests on it.

@blainekasten blainekasten merged commit 7563db6 into gatsbyjs:master Apr 16, 2020
@LekoArts LekoArts deleted the wrap-ignore-pattern branch April 17, 2020 07:01
mwfrost pushed a commit to mwfrost/gatsby that referenced this pull request Apr 20, 2023
raffishquartan pushed a commit to raffishquartan/gatsby that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants