pub struct Produced {
pub upstream: Vec<Outputs>,
pub roots: Vec<String>,
pub declared: Vec<Vec<String>>,
}Expand description
Paths in node_modules that the lockfile does not key, which a path set
keeps: what the tasks a task depends on declare as their outputs, such as
a client generated into node_modules/.prisma, and what lies below a
directory in node_modules that an upstream output or an
includeIgnored fileset reads from, with the directories between such a
directory and the node_modules holding it, where a task looks for what
was produced. Everything else there is installed.
Fields§
§upstream: Vec<Outputs>The declared outputs of the tasks the task depends on.
roots: Vec<String>Directories naming a node_modules directory, workspace-relative.
declared: Vec<Vec<String>>The outputs of the tasks it depends on as they declare them, sorted.
Implementations§
Source§impl Produced
impl Produced
Sourcepub fn new(upstream: Vec<Outputs>, include_ignored: Vec<String>) -> Self
pub fn new(upstream: Vec<Outputs>, include_ignored: Vec<String>) -> Self
The tasks’ upstream outputs and includeIgnored roots: of the roots,
only those in node_modules count, as a project root would hold
installed packages too.
Sourcepub fn declared(self, declared: Vec<Vec<String>>) -> Self
pub fn declared(self, declared: Vec<Vec<String>>) -> Self
With the upstream outputs as declared, which Self::weak keys.
Sourcepub fn holds(&self, path: &str) -> bool
pub fn holds(&self, path: &str) -> bool
Whether path, workspace-relative, is produced rather than installed,
or a directory in node_modules holding what is.
Sourcepub fn lists(&self, path: &str) -> bool
pub fn lists(&self, path: &str) -> bool
Whether a listing of path, a directory in node_modules, is kept,
and whether, as an entry of one, it is listed: what holds what is
produced or may come to, as node_modules holds .gen for an
output in node_modules/.gen/app, or as a directory below the anchor
of an upstream output’s glob holds what it may match. An installed
package elsewhere is neither listed nor its listing kept.
Sourcepub fn traced(&self, path: &str, operation: &Operation) -> bool
pub fn traced(&self, path: &str, operation: &Operation) -> bool
Whether an access to path, in node_modules, is read from a trace
at all, and so counts toward its limits: what Self::holds, and
where only a listing is kept, as Self::lists says, only listings
and writes. An installed package read below where an upstream glob
starts is dropped from a path set anyway.