Skip to content

Commit

Permalink
add missing comment in generate .cjs file
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Mar 19, 2024
1 parent 351b4ed commit f1fd240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"zx": "^7.2.3"
},
"scripts": {
"compile": "esbuild src/main.ts --bundle --platform=node --target=node20 --outfile=built/genaiscript.cjs --external:pdfjs-dist --external:mammoth --external:llamaindex --external:llm-code-highlighter",
"compile": "esbuild src/main.ts --bundle --platform=node --target=node20 --outfile=built/genaiscript.cjs --external:pdfjs-dist --external:mammoth --external:llamaindex --external:llm-code-highlighter && echo '#!/usr/bin/env node' | cat - built/genaiscript.cjs > temp && mv temp built/genaiscript.cjs",
"postcompile": "cp built/genaiscript.cjs ../vscode/genaiscript.cjs && node built/genaiscript.cjs help-all > ../../docs/src/content/docs/reference/cli/commands.md",
"go": "yarn compile && node built/genaiscript.cjs",
"test": "node --import tsx --test src/**.test.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/clihelp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RunTemplateOptions } from "."
import { CORE_VERSION, RunTemplateOptions } from "."
import { Fragment } from "./ast"
import { GENAISCRIPT_CLI_JS, NPM_CLI_PACKAGE } from "./constants"
import { MarkdownTrace } from "./trace"
Expand All @@ -14,7 +14,7 @@ export function generateCliArguments(
const cli = [
"npx",
"--yes",
NPM_CLI_PACKAGE,
`${NPM_CLI_PACKAGE}@^${CORE_VERSION}`,
command,
template.id,
`"${cliInfo.spec}"`,
Expand Down

0 comments on commit f1fd240

Please sign in to comment.