1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

fix(workspace): allow using --import-map flag with workspace (#24527)

This is a temporary fix, which is not perfect - specifying
`--import-map`
will break resolution of packages defined in `workspace` setting, but
erroring on `--import-map` currently causes regression in code that
worked fine in v1.44.x.
This commit is contained in:
Bartek Iwańczuk 2024-07-11 17:43:28 +01:00 committed by GitHub
parent f950f59983
commit 4f15aada02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 3 deletions

4
Cargo.lock generated
View file

@ -1308,9 +1308,9 @@ dependencies = [
[[package]]
name = "deno_config"
version = "0.21.0"
version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47d457bbaff2200897ab1f635863c477f10524412a1f568535ea26763b96d5c9"
checksum = "c2df23da1c85522dd6cb23372d7953ecf576ec416c5d517b046aeeca281ca5a4"
dependencies = [
"anyhow",
"deno_semver",

View file

@ -101,7 +101,7 @@ console_static_text = "=0.8.1"
data-encoding = "2.3.3"
data-url = "=0.3.0"
deno_cache_dir = "=0.10.0"
deno_config = { version = "=0.21.0", default-features = false }
deno_config = { version = "=0.21.1", default-features = false }
dlopen2 = "0.6.1"
ecb = "=0.1.2"
elliptic-curve = { version = "0.13.4", features = ["alloc", "arithmetic", "ecdh", "std", "pem"] }

View file

@ -0,0 +1,5 @@
{
"args": "run -A --import-map=./import_map.json main.ts",
"output": "main.out",
"tempDir": true
}

View file

@ -0,0 +1,5 @@
{
"imports": {
"chalk": "npm:chalk"
}
}

View file

@ -0,0 +1,2 @@
[WILDCARD]
hello

View file

@ -0,0 +1,3 @@
import chalk from "chalk";
console.log(chalk.green("hello"));

View file

@ -0,0 +1,3 @@
{
"workspaces": ["packages/*"]
}