Compare commits
1
Commits
main
...
fix/issue-2053
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0108085e42 |
@@ -31,14 +31,15 @@ export const registerWebModuleCommands = (
|
|||||||
}),
|
}),
|
||||||
options: z.object({
|
options: z.object({
|
||||||
importerUrl: webModuleTraceInputSchema.shape.importer_url,
|
importerUrl: webModuleTraceInputSchema.shape.importer_url,
|
||||||
|
// Describe the optional wrapper: help reads the outer schema's metadata.
|
||||||
importMapPath: importMapInputSchema.shape.path
|
importMapPath: importMapInputSchema.shape.path
|
||||||
|
.optional()
|
||||||
.describe(
|
.describe(
|
||||||
"Absolute local import-map JSON path; requires --import-map-base-url",
|
"Absolute local import-map JSON path; requires --import-map-base-url",
|
||||||
)
|
),
|
||||||
.optional(),
|
|
||||||
importMapBaseUrl: importMapInputSchema.shape.base_url
|
importMapBaseUrl: importMapInputSchema.shape.base_url
|
||||||
.describe("HTTP(S) import-map base URL; requires --import-map-path")
|
.optional()
|
||||||
.optional(),
|
.describe("HTTP(S) import-map base URL; requires --import-map-path"),
|
||||||
}),
|
}),
|
||||||
run: ({ args, options }) =>
|
run: ({ args, options }) =>
|
||||||
withCommandCancellation(async (signal) => {
|
withCommandCancellation(async (signal) => {
|
||||||
|
|||||||
Reference in new issue
Block a user