-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tools/doc): HTML resolve main entrypoint from config file (#27103)
Fixes #26901
- Loading branch information
Showing
6 changed files
with
46 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
{ | ||
"tempDir": true, | ||
"args": [ | ||
"doc", | ||
"--html", | ||
"--name=MyLib", | ||
"--output=temp_dir_path_here", | ||
"referenced_private_types_fixed.ts" | ||
], | ||
"output": "[WILDCARD]", | ||
"exitCode": 0 | ||
"steps": [ | ||
{ | ||
"args": [ | ||
"doc", | ||
"--html", | ||
"--name=MyLib", | ||
"a.ts", | ||
"b.ts" | ||
], | ||
"output": "Written 23 files to \"./docs/\"\n", | ||
"exitCode": 0 | ||
}, | ||
{ | ||
"args": "run --allow-read check_file.ts", | ||
"output": "", | ||
"exitCode": 0 | ||
} | ||
] | ||
} |
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,11 @@ | ||
/** Doc comment */ | ||
export interface MyInterface2 { | ||
/** Doc comment */ | ||
prop?: string; | ||
} | ||
|
||
/** Doc comment */ | ||
export class MyClass2 { | ||
/** Doc comment */ | ||
prop: MyInterface2 = {}; | ||
} |
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,5 @@ | ||
const content = Deno.readTextFileSync("./docs/index.html"); | ||
|
||
if (content.includes("..")) { | ||
throw new Error(); | ||
} |
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,5 @@ | ||
{ | ||
"exports": { | ||
".": "./a.ts" | ||
} | ||
} |