mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
feat(jsr): support publishing jsr packages in npm workspaces (#24507)
Supports publishing an npm workspace with a directory structure similar to the following: - workspace - package.json - package-a - package.json - jsr.json - package-b - package.json - jsr.json deno_config PR: https://github.com/denoland/deno_config/pull/77 Closes https://github.com/denoland/deno/issues/23638
This commit is contained in:
parent
69afa8718f
commit
4d2d764816
13 changed files with 62 additions and 13 deletions
|
@ -1297,15 +1297,18 @@ impl CliOptions {
|
|||
pub fn to_compiler_option_types(
|
||||
&self,
|
||||
) -> Result<Vec<deno_graph::ReferrerImports>, AnyError> {
|
||||
self.workspace.to_maybe_imports().map(|maybe_imports| {
|
||||
maybe_imports
|
||||
.into_iter()
|
||||
.map(|(referrer, imports)| deno_graph::ReferrerImports {
|
||||
referrer,
|
||||
imports,
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
self
|
||||
.workspace
|
||||
.to_compiler_option_types()
|
||||
.map(|maybe_imports| {
|
||||
maybe_imports
|
||||
.into_iter()
|
||||
.map(|(referrer, imports)| deno_graph::ReferrerImports {
|
||||
referrer,
|
||||
imports,
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn npmrc(&self) -> &Arc<ResolvedNpmRc> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue