Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated package.json structs and populated new main field #1151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ impl CrateData {
url: repo_url,
}),
files: data.files,
main: data.main.clone(),
module: data.main,
homepage: data.homepage,
types: data.dts_file,
Expand Down Expand Up @@ -771,6 +772,7 @@ impl CrateData {
url: repo_url,
}),
files: data.files,
main: data.main.clone(),
module: data.main,
homepage: data.homepage,
types: data.dts_file,
Expand Down Expand Up @@ -808,6 +810,7 @@ impl CrateData {
url: repo_url,
}),
files: data.files,
main: data.main.clone(),
browser: data.main,
homepage: data.homepage,
types: data.dts_file,
Expand Down
1 change: 1 addition & 0 deletions src/manifest/npm/esmodules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct ESModulesPackage {
pub repository: Option<Repository>,
#[serde(skip_serializing_if = "Vec::is_empty")]
pub files: Vec<String>,
pub main: String,
pub module: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub homepage: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/manifest/npm/nomodules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct NoModulesPackage {
pub repository: Option<Repository>,
#[serde(skip_serializing_if = "Vec::is_empty")]
pub files: Vec<String>,
pub main: String,
pub browser: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub homepage: Option<String>,
Expand Down