Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

fix: Read files even if they have a leading dot #5

Merged

Conversation

stephan-noel
Copy link
Contributor

@stephan-noel stephan-noel commented Jul 22, 2020

Description

Garment was ignoring files with a leading dot. This was due to fast-glob initializing the dot option to false. This PR sets it to true. I need this due to a generator I am building in Typescript and building with garment in which I want to copy boilerplate files such as .npmrc.template, .gitignore.template, etc. The copy runner is skipping these files.

Fixes #2

How Has This Been Tested?

Awaiting feedback on issue #3 before proceeding with a testing strategy.

The change has been tested manually however by modifying my local node_modules code.

UPDATE: Unit tests added.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have made corresponding changes to the documentation

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

@stephan-noel stephan-noel force-pushed the fix/not-reading-files-with-leading-dot branch from 4486181 to 9e16fb9 Compare July 26, 2020 12:50
@beshanoe beshanoe merged commit 3f04be0 into Farfetch:master Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Garment is not reading files that start with a dot
2 participants