-
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(compile): display embedded file sizes and total (#27360)
Merging as a fix so that LTS gets this as it's a useful diagnostic tool. The 1MB unique is because we deduplicate files that we store (ex. some packages have the same file multiple times so we store that once).
- Loading branch information
Showing
9 changed files
with
295 additions
and
122 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
84 changes: 43 additions & 41 deletions
84
tests/specs/compile/global_npm_cache_implicit_read_permission/compile.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 |
---|---|---|
@@ -1,47 +1,49 @@ | ||
[WILDCARD] | ||
Compile file:///[WILDLINE]/main.ts to [WILDLINE] | ||
|
||
Embedded File System | ||
Embedded Files | ||
|
||
main[WILDLINE] | ||
├─┬ .deno_compile_node_modules | ||
│ └─┬ localhost | ||
│ ├─┬ ansi-regex | ||
│ │ ├── 3.0.1/* | ||
│ │ └── 5.0.1/* | ||
│ ├── ansi-styles/4.3.0/* | ||
│ ├── camelcase/5.3.1/* | ||
│ ├── cliui/6.0.0/* | ||
│ ├── color-convert/2.0.1/* | ||
│ ├── color-name/1.1.4/* | ||
│ ├── cowsay/1.5.0/* | ||
│ ├── decamelize/1.2.0/* | ||
│ ├── emoji-regex/8.0.0/* | ||
│ ├── find-up/4.1.0/* | ||
│ ├── get-caller-file/2.0.5/* | ||
│ ├── get-stdin/8.0.0/* | ||
│ ├─┬ is-fullwidth-code-point | ||
│ │ ├── 2.0.0/* | ||
│ │ └── 3.0.0/* | ||
│ ├── locate-path/5.0.0/* | ||
│ ├── p-limit/2.3.0/* | ||
│ ├── p-locate/4.1.0/* | ||
│ ├── p-try/2.2.0/* | ||
│ ├── path-exists/4.0.0/* | ||
│ ├── require-directory/2.1.1/* | ||
│ ├── require-main-filename/2.0.0/* | ||
│ ├── set-blocking/2.0.0/* | ||
│ ├─┬ string-width | ||
│ │ ├── 2.1.1/* | ||
│ │ └── 4.2.3/* | ||
│ ├─┬ strip-ansi | ||
│ │ ├── 4.0.0/* | ||
│ │ └── 6.0.1/* | ||
│ ├── strip-final-newline/2.0.0/* | ||
│ ├── which-module/2.0.0/* | ||
│ ├── wrap-ansi/6.2.0/* | ||
│ ├── y18n/4.0.3/* | ||
│ ├── yargs/15.4.1/* | ||
│ └── yargs-parser/18.1.3/* | ||
└── main.ts | ||
├─┬ .deno_compile_node_modules ([WILDLINE]) | ||
│ └─┬ localhost ([WILDLINE]) | ||
│ ├─┬ ansi-regex ([WILDLINE]) | ||
│ │ ├── 3.0.1/* ([WILDLINE]) | ||
│ │ └── 5.0.1/* ([WILDLINE]) | ||
│ ├── ansi-styles/4.3.0/* ([WILDLINE]) | ||
│ ├── camelcase/5.3.1/* ([WILDLINE]) | ||
│ ├── cliui/6.0.0/* ([WILDLINE]) | ||
│ ├── color-convert/2.0.1/* ([WILDLINE]) | ||
│ ├── color-name/1.1.4/* ([WILDLINE]) | ||
│ ├── cowsay/1.5.0/* ([WILDLINE]) | ||
│ ├── decamelize/1.2.0/* ([WILDLINE]) | ||
│ ├── emoji-regex/8.0.0/* ([WILDLINE]) | ||
│ ├── find-up/4.1.0/* ([WILDLINE]) | ||
│ ├── get-caller-file/2.0.5/* ([WILDLINE]) | ||
│ ├── get-stdin/8.0.0/* ([WILDLINE]) | ||
│ ├─┬ is-fullwidth-code-point ([WILDLINE]) | ||
│ │ ├── 2.0.0/* ([WILDLINE]) | ||
│ │ └── 3.0.0/* ([WILDLINE]) | ||
│ ├── locate-path/5.0.0/* ([WILDLINE]) | ||
│ ├── p-limit/2.3.0/* ([WILDLINE]) | ||
│ ├── p-locate/4.1.0/* ([WILDLINE]) | ||
│ ├── p-try/2.2.0/* ([WILDLINE]) | ||
│ ├── path-exists/4.0.0/* ([WILDLINE]) | ||
│ ├── require-directory/2.1.1/* ([WILDLINE]) | ||
│ ├── require-main-filename/2.0.0/* ([WILDLINE]) | ||
│ ├── set-blocking/2.0.0/* ([WILDLINE]) | ||
│ ├─┬ string-width ([WILDLINE]) | ||
│ │ ├── 2.1.1/* ([WILDLINE]) | ||
│ │ └── 4.2.3/* ([WILDLINE]) | ||
│ ├─┬ strip-ansi ([WILDLINE]) | ||
│ │ ├── 4.0.0/* ([WILDLINE]) | ||
│ │ └── 6.0.1/* ([WILDLINE]) | ||
│ ├── strip-final-newline/2.0.0/* ([WILDLINE]) | ||
│ ├── which-module/2.0.0/* ([WILDLINE]) | ||
│ ├── wrap-ansi/6.2.0/* ([WILDLINE]) | ||
│ ├── y18n/4.0.3/* ([WILDLINE]) | ||
│ ├── yargs/15.4.1/* ([WILDLINE]) | ||
│ └── yargs-parser/18.1.3/* ([WILDLINE]) | ||
└── main.ts ([WILDLINE]) | ||
|
||
Size: [WILDLINE] | ||
|
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
Compile [WILDLINE] | ||
|
||
Embedded File System | ||
Embedded Files | ||
|
||
main[WILDLINE] | ||
├── index.js | ||
├── index.js ([WILDLINE]) | ||
├── link.js --> index.js | ||
└── setup.js | ||
└── setup.js ([WILDLINE]) | ||
|
||
Size: [WILDLINE] | ||
|
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[WILDCARD] | ||
|
||
Embedded File System | ||
Embedded Files | ||
|
||
main[WILDLINE] | ||
├── main.ts | ||
└── node_modules/* | ||
├── main.ts ([WILDLINE]) | ||
└── node_modules/* ([WILDLINE]) | ||
|
||
Size: [WILDLINE] | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Check file:///[WILDLINE]/main.js | ||
Compile file:///[WILDLINE] | ||
|
||
Embedded File System | ||
Embedded Files | ||
|
||
[WILDCARD] |
2 changes: 1 addition & 1 deletion
2
tests/testdata/compile/node_modules_symlink_outside/main_compile_file.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Compile file:///[WILDCARD]/node_modules_symlink_outside/main.ts to [WILDCARD] | ||
|
||
Embedded File System | ||
Embedded Files | ||
|
||
[WILDCARD] |
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