Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wsrun doesn't mimick yarn workspace resolution #72

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

VPagani
Copy link
Contributor

@VPagani VPagani commented Sep 25, 2019

Fix #69

const registryFilenames = ['package.json', 'yarn.json']
const registryFolders = ['node_modules']
const trailingPattern = `/+(${registryFilenames.join('|')})`
const ignorePatterns = registryFolders.map(folder => `/${folder}/**/+(${registryFilenames.join('|')})`)
Copy link
Contributor

@spion-h4 spion-h4 Sep 30, 2019

Choose a reason for hiding this comment

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

This does mimic yarn exactly, but there is a bug because it will also match files named package_json or packageTjson or any other letter due to the dot. Which... not a big deal, but might be useful to add a comment about this.

edit: never mind, its not regex

@spion-h4 spion-h4 merged commit 371cd7a into hfour:master Sep 30, 2019
@devshorts devshorts mentioned this pull request Nov 9, 2019
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.

wsrun doesn't mimick yarn workspace resolution
2 participants