You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Path to `package.json`. Contains the `package.json` filename.
21
22
#[serde(skip)]
22
-
pubpath:PathBuf,
23
+
pub(crate)path:PathBuf,
23
24
24
25
/// Realpath to `package.json`. Contains the `package.json` filename.
25
26
#[serde(skip)]
26
-
pubrealpath:PathBuf,
27
+
pub(crate)realpath:PathBuf,
27
28
28
29
#[serde(skip)]
29
-
#[serde(default)]
30
-
pubraw_json:Arc<serde_json::Value>,
30
+
pub(crate)raw_json:Arc<serde_json::Value>,
31
31
32
32
/// The "name" field defines your package's name.
33
33
/// The "name" field can be used in addition to the "exports" field to self-reference a package using its name.
34
34
///
35
35
/// <https://nodejs.org/api/packages.html#name>
36
-
pubname:Option<String>,
36
+
pub(crate)name:Option<String>,
37
37
38
38
/// The "main" field defines the entry point of a package when imported by name via a node_modules lookup. Its value is a path.
39
39
/// When a package has an "exports" field, this will take precedence over the "main" field when importing the package by name.
@@ -42,26 +42,26 @@ pub struct PackageJson {
42
42
///
43
43
/// <https://nodejs.org/api/packages.html#main>
44
44
#[serde(skip)]
45
-
pubmain_fields:Vec<String>,
45
+
pub(crate)main_fields:Vec<String>,
46
46
47
47
/// The "exports" field allows defining the entry points of a package when imported by name loaded either via a node_modules lookup or a self-reference to its own name.
/// In addition to the "exports" field, there is a package "imports" field to create private mappings that only apply to import specifiers from within the package itself.
0 commit comments