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(get-dependency-list): add glob to dependency list and match existing behaviour on Windows. #83

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

neverendingqs
Copy link
Contributor

Resolves #74 (comment), #75.

It's not explicitly spelled out in the Serverless documentation, but it looks like package.patterns should always be using /s anyway, so I don't think

const files = [...new Set(this.getPatterns().filter(pattern => !pattern.startsWith('!') && !pattern.includes('node_modules'))
.map(modulePath => glob.sync(modulePath, {
nodir: true,
ignore: path.join(modulePath, 'node_modules', '**'),
absolute: true
})
).flat().map(file => file.replaceAll('\\', '/')))];
needs to be updated with the same change.

Open to feedback!


Quality notes:

@dougmoscrop dougmoscrop merged commit cf515cc into dougmoscrop:master Oct 6, 2023
@neverendingqs neverendingqs deleted the fix/blogwindowsnoci branch October 6, 2023 20:39
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.

Version 5.0.0 does not include node modules
2 participants