Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DaneTheory/99ea70bcbe5cfc3d6763360ba8363d67 to your computer and use it in GitHub Desktop.

Select an option

Save DaneTheory/99ea70bcbe5cfc3d6763360ba8363d67 to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Main (Field)
[{
"npm:current": {
"ref": "",
"source": [
]
},
"npm:legacy": {
"ref": "",
"source": [
]
},
"yarn:current": {
"ref": "https://yarnpkg.com/configuration/manifest#main",
"source": [
"The path that will be used to resolve the qualified path to use when accessing the package by its name. This field can be modified at publish-time through the use of the publishConfig.main field.",
"_example_:{ \n \"main\": \"./sources/index.js\" \n }:_example_"
]
},
"yarn:legacy": {
"ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-main",
"source": [
"This is the primary entry point for the functionality for your project.",
"_example_:{ \n \"main\": \"./sources/index.js\" \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment