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
/// The "name" field can be used in addition to the "exports" field to self-reference a package using its name.
26
25
///
27
26
/// <https://nodejs.org/api/packages.html#name>
28
27
pubname:Option<String>,
29
28
30
-
/// The "main" field defines the entry point of a package when imported by name via a node_modules lookup. Its value is a path.
31
-
/// When a package has an "exports" field, this will take precedence over the "main" field when importing the package by name.
32
-
///
33
-
/// Values are dynamically added from [ResolveOptions::main_fields].
34
-
///
35
-
/// <https://nodejs.org/api/packages.html#main>
36
-
pubmain_fields:Vec<String>,
37
-
38
29
/// 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.
0 commit comments