Struct deno_lockfile::SetWorkspaceConfigOptions
source · pub struct SetWorkspaceConfigOptions<F: Fn(&str) -> Option<String>> {
pub config: WorkspaceConfig,
pub no_config: bool,
pub no_npm: bool,
pub nv_to_jsr_url: F,
}
Fields§
§config: WorkspaceConfig
§no_config: bool
Maintains deno.json dependencies and workspace config
regardless of the config
options provided.
Ex. the CLI sets this to true
when someone runs a
one-off script with --no-config
.
no_npm: bool
Maintains package.json dependencies regardless of the
config
options provided.
Ex. the CLI sets this to true
when someone runs a
one-off script with --no-npm
.
nv_to_jsr_url: F
Gives a name and version from JSR (ex. @scope/package@1.0.0
)
and expects a URL to the JSR package. This will then be used to
remove items from the “remotes” for removed packages.
Auto Trait Implementations§
impl<F> RefUnwindSafe for SetWorkspaceConfigOptions<F>where
F: RefUnwindSafe,
impl<F> Send for SetWorkspaceConfigOptions<F>where
F: Send,
impl<F> Sync for SetWorkspaceConfigOptions<F>where
F: Sync,
impl<F> Unpin for SetWorkspaceConfigOptions<F>where
F: Unpin,
impl<F> UnwindSafe for SetWorkspaceConfigOptions<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more