forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): Add custom config for init private flag (yarnpkg#4377)
**Summary** Here is a small custom; I add this because it relates to https://yarnpkg.com/en/docs/cli/init#toc-setting-defaults-for-yarn-init. I discovered this was necessary while writing introduces for this flag. **Test plan** New init and config tests.
- Loading branch information
1 parent
ee76bc4
commit ce2fd05
Showing
4 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`init-config 1`] = ` | ||
Object { | ||
"author": "Kittens McKitty <[email protected]> (https://yarnpkg.com)", | ||
"license": "BSD", | ||
"main": "index.js", | ||
"name": "init-config", | ||
"private": true, | ||
"version": "0.0.0-alpha", | ||
} | ||
`; | ||
|
||
exports[`init-github 1`] = ` | ||
Object { | ||
"license": "MIT", | ||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
init-private true | ||
init-license BSD | ||
init-version "0.0.0-alpha" | ||
init-author-name "Kittens McKitty" | ||
init-author-email "[email protected]" | ||
init-author-url "https://yarnpkg.com" |
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