-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node/byonm): do not accidentally resolve bare node built-ins (#25543
) This was accidentally enabled in byonm, but it requires the `--unstable-bare-node-builtins` flag. Closes #25358
- Loading branch information
Showing
21 changed files
with
73 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"tests": { | ||
"ts": { | ||
"args": "run --quiet --allow-read mod.ts hello there", | ||
"output": "mod.ts.out" | ||
}, | ||
"js": { | ||
"args": "run --quiet --allow-read mod.js hello there", | ||
"output": "mod.js.out" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"tests": { | ||
"basic": { | ||
"args": "run --quiet main.ts", | ||
"output": "main.ts.out", | ||
"exitCode": 1 | ||
}, | ||
"unstable_bare_node_builtins_enabled": { | ||
"args": "run --unstable-bare-node-builtins main.ts", | ||
"output": "feature_enabled.out" | ||
}, | ||
"unstable_bare_node_builtins_enbaled_by_env": { | ||
"args": "run main.ts", | ||
"envs": { | ||
"DENO_UNSTABLE_BARE_NODE_BUILTINS": "1" | ||
}, | ||
"output": "feature_enabled.out" | ||
}, | ||
"enabled_by_config": { | ||
"args": "run --config=config.json main.ts", | ||
"output": "feature_enabled.out" | ||
}, | ||
"byonm_missing": { | ||
"cwd": "byonm", | ||
"exitCode": 1, | ||
"args": "run missing.ts", | ||
"output": "byonm/missing.out" | ||
}, | ||
"byonm_has": { | ||
"cwd": "byonm", | ||
"args": "run has.ts", | ||
"output": "byonm/has.out" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Function: writeFile] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import fs from "node:fs"; | ||
|
||
console.log(fs.writeFile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
error: Relative import path "fs" not prefixed with / or ./ or ../ | ||
hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:fs"). | ||
at file:///[WILDLINE]/missing.ts:1:16 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"unstable": ["bare-node-builtins"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[WILDCARD]Warning Resolving "fs" as "node:fs" at file:///[WILDCARD]/main.ts:1:16. If you want to use a built-in Node module, add a "node:" prefix. | ||
[Function: writeFile] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import fs from "fs"; | ||
|
||
console.log(fs.writeFile); |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters