forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: skip npm install if graph has no new packages (denoland#24017)
- Loading branch information
Showing
8 changed files
with
86 additions
and
11 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
19 changes: 19 additions & 0 deletions
19
tests/specs/npm/adding_npm_dep_in_dynamic_import/__test__.jsonc
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,19 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [{ | ||
"args": "run --allow-read=. main.ts", | ||
"output": "main.out" | ||
}, { | ||
"args": "task --quiet cat deno.lock", | ||
"output": "lock.out" | ||
}, { | ||
"args": "task rm_node_modules", | ||
"output": "[WILDCARD]" | ||
}, { | ||
"args": "run --allow-read=. main.ts", | ||
"output": "main2.out" | ||
}, { | ||
"args": "task --quiet cat deno.lock", | ||
"output": "lock.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,7 @@ | ||
{ | ||
"nodeModulesDir": true, | ||
"tasks": { | ||
"cat": "cat", | ||
"rm_node_modules": "rm -rf node_modules" | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"version": "3", | ||
"packages": { | ||
"specifiers": { | ||
"npm:@denotest/add": "npm:@denotest/[email protected]", | ||
"npm:@denotest/subtract": "npm:@denotest/[email protected]" | ||
}, | ||
"npm": { | ||
"@denotest/[email protected]": { | ||
"integrity": "[WILDLINE]", | ||
"dependencies": {} | ||
}, | ||
"@denotest/[email protected]": { | ||
"integrity": "[WILDLINE]", | ||
"dependencies": {} | ||
} | ||
} | ||
}, | ||
"remote": {} | ||
} |
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,8 @@ | ||
Download http:https://localhost:4260/@denotest/add | ||
Download http:https://localhost:4260/@denotest/add/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
3 | ||
Download http:https://localhost:4260/@denotest/subtract | ||
Download http:https://localhost:4260/@denotest/subtract/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
1 |
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,8 @@ | ||
import { add } from "npm:@denotest/add"; | ||
|
||
console.log(add(1, 2)); | ||
|
||
const fileName = "other.ts"; | ||
const specifier = "./" + fileName; // non-analyzable | ||
const { subtract } = await import(specifier); | ||
console.log(subtract(3, 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,6 @@ | ||
[UNORDERED_START] | ||
Initialize @denotest/[email protected] | ||
Initialize @denotest/[email protected] | ||
[UNORDERED_END] | ||
3 | ||
1 |
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 @@ | ||
export * from "npm:@denotest/subtract"; |