Skip to content

Commit 30b7320

Browse files
committed
build-js - rename to 'dev-call build-artifacts'
1 parent 61eba69 commit 30b7320

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/command/command.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { typstCommand } from "./typst/cmd.ts";
1818
import { capabilitiesCommand } from "./capabilities/cmd.ts";
1919
import { checkCommand } from "./check/cmd.ts";
2020
import { inspectCommand } from "./inspect/cmd.ts";
21-
import { buildJsCommand } from "./build-js/cmd.ts";
2221
import { installCommand } from "./install/cmd.ts";
2322
import { updateCommand } from "./update/cmd.ts";
2423
import { publishCommand } from "./publish/cmd.ts";
@@ -57,7 +56,6 @@ export function commands(): Command<any>[] {
5756
capabilitiesCommand,
5857
inspectCommand,
5958
checkCommand,
60-
buildJsCommand,
6159
editorSupportCommand,
6260
callCommand,
6361
devCallCommand,

src/command/build-js/cmd.ts renamed to src/command/dev-call/build-artifacts/cmd.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ import {
1010
ESBuildAnalysis,
1111
esbuildAnalyze,
1212
esbuildCompile,
13-
} from "../../core/esbuild.ts";
14-
import { buildIntelligenceResources } from "../../core/schema/build-schema-file.ts";
15-
import { formatResourcePath, resourcePath } from "../../core/resources.ts";
13+
} from "../../../core/esbuild.ts";
14+
import { buildIntelligenceResources } from "../../../core/schema/build-schema-file.ts";
15+
import { formatResourcePath, resourcePath } from "../../../core/resources.ts";
1616
import { simple } from "acorn/walk";
1717
import { Parser } from "acorn/acorn";
1818
import classFields from "acorn-class-fields";
19-
import { initYamlIntelligenceResourcesFromFilesystem } from "../../core/schema/utils.ts";
19+
import { initYamlIntelligenceResourcesFromFilesystem } from "../../../core/schema/utils.ts";
2020

2121
// initialize language handlers
22-
import "../../core/handlers/handlers.ts";
23-
import { join } from "../../deno_ral/path.ts";
22+
import "../../../core/handlers/handlers.ts";
23+
import { join } from "../../../deno_ral/path.ts";
2424

2525
function ensureAllowableIDESyntax(src: string, filename: string) {
2626
const ast = Parser.extend(classFields).parse(src, {

src/command/dev-call/cmd.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Command } from "cliffy/command/mod.ts";
22
import { quartoConfig } from "../../core/quarto.ts";
33
import { commands } from "../command.ts";
4+
import { buildJsCommand } from "./build-artifacts/cmd.ts";
45

56
type CommandOptionInfo = {
67
name: string;
@@ -55,4 +56,6 @@ export const devCallCommand = new Command()
5556
.action(() => {
5657
devCallCommand.showHelp();
5758
Deno.exit(1);
58-
}).command("cli-info", generateCliInfoCommand);
59+
})
60+
.command("cli-info", generateCliInfoCommand)
61+
.command("build-artifacts", buildJsCommand);

0 commit comments

Comments
 (0)