-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
yarn pack
to always include the file in the "main" field (#3092)
* Test that `yarn pack` always includes the file in the "main" field This is for compatibility with npm, which [specifies] that: > Certain files are always included, regardless of settings: > * package.json > * README > * CHANGES / CHANGELOG / HISTORY > * LICENSE / LICENCE > * NOTICE > * The file in the "main" field [specifies]: https://docs.npmjs.com/files/package.json#files * Fix `yarn pack` to always include the file in the "main" field This is for compatibility with npm, which [specifies] that: > Certain files are always included, regardless of settings: > * package.json > * README > * CHANGES / CHANGELOG / HISTORY > * LICENSE / LICENCE > * NOTICE > * The file in the "main" field [specifies]: https://docs.npmjs.com/files/package.json#files
- Loading branch information
1 parent
9a6afe1
commit 4e48fd7
Showing
4 changed files
with
7 additions
and
3 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
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 |
---|---|---|
|
@@ -120,6 +120,7 @@ export type Manifest = { | |
|
||
deprecated?: string, | ||
files?: Array<string>, | ||
main?: string, | ||
}; | ||
|
||
// | ||
|