-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing copy based on yarn.lock (#3)
When adding the copy on the generated content, we check if yarn.lock is present so we can recommend the right command to run. I've also excluded `node_modules` as a default to avoid going through all the node_modules files.
- Loading branch information
Showing
6 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ describe('Generate', () => { | |
#################################### Generated content - do not edit! #################################### | ||
# This block has been generated with codeowners-generator (for more information https://github.com/gagoar/codeowners-generator/README.md) | ||
# To re-generate, run npm run codeowners-generator generate. Don't worry, the content outside this block will be kept. | ||
# To re-generate, run \`yarn codeowners-generator generate\`. Don't worry, the content outside this block will be kept. | ||
# Rule extracted from dir1/CODEOWNERS | ||
dir1/*.ts @eeny @meeny | ||
|
@@ -100,7 +100,7 @@ describe('Generate', () => { | |
"CODEOWNERS", | ||
"#################################### Generated content - do not edit! #################################### | ||
# This block has been generated with codeowners-generator (for more information https://github.com/gagoar/codeowners-generator/README.md) | ||
# To re-generate, run npm run codeowners-generator generate. Don't worry, the content outside this block will be kept. | ||
# To re-generate, run \`npm run codeowners-generator generate\`. Don't worry, the content outside this block will be kept. | ||
# Rule extracted from dir1/CODEOWNERS | ||
dir1/*.ts @eeny @meeny | ||
|
@@ -159,7 +159,7 @@ describe('Generate', () => { | |
expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` | ||
"#################################### Generated content - do not edit! #################################### | ||
# This block has been generated with codeowners-generator (for more information https://github.com/gagoar/codeowners-generator/README.md) | ||
# To re-generate, run npm run codeowners-generator generate. Don't worry, the content outside this block will be kept. | ||
# To re-generate, run \`npm run codeowners-generator generate\`. Don't worry, the content outside this block will be kept. | ||
# Rule extracted from dir5/package.json | ||
dir5/ [email protected] [email protected] | ||
|
@@ -211,7 +211,7 @@ describe('Generate', () => { | |
expect(writeFile.mock.calls[0][1]).toMatchInlineSnapshot(` | ||
"#################################### Generated content - do not edit! #################################### | ||
# This block has been generated with codeowners-generator (for more information https://github.com/gagoar/codeowners-generator/README.md) | ||
# To re-generate, run npm run codeowners-generator generate. Don't worry, the content outside this block will be kept. | ||
# To re-generate, run \`npm run codeowners-generator generate\`. Don't worry, the content outside this block will be kept. | ||
# Rule extracted from dir5/package.json | ||
dir5/ [email protected] [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters