Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@std/path": "jsr:@std/path@1.0.8",
"@std/streams": "jsr:@std/streams@1.0.9",
"@std/testing": "jsr:@std/testing@1.0.11",
"esbuild": "npm:esbuild@0.25.2",
"esbuild": "https://deno.land/x/esbuild@v0.25.4/mod.js",
"ueblueprint": "npm:ueblueprint@2.0.0",
"zod": "npm:zod@3.24.2",
"zod-to-json-schema": "npm:zod-to-json-schema@3.24.5",
Expand Down
38 changes: 4 additions & 34 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/commands/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export const script = new Command<GlobalOptions>()
.description('script')
.arguments('<input:string>')
.action(async (options, ...args: string[]) => {
if (Deno.build.standalone) {
logger.error('Script command is not available when running a compiled binary')
Deno.exit(1)
}

if (!args[0]) {
logger.error('No script name provided')
Expand All @@ -29,7 +25,6 @@ export const script = new Command<GlobalOptions>()
const scriptName = path.basename(filePath, '.ts')
const outfilePath = path.join(Deno.cwd(), '.runreal', 'scripts', `${scriptName}.esm.js`)
const outfileUrl = toFileUrl(outfilePath)

const cfg = Config.getInstance().mergeConfigCLIConfig({ cliOptions: options })
const context: ScriptContext = {
config: cfg,
Expand All @@ -40,7 +35,7 @@ export const script = new Command<GlobalOptions>()
}

await esbuild.build({
plugins: [...denoPlugins()],
plugins: [...denoPlugins({ loader: 'portable' })],
entryPoints: [fileUrl.href],
outfile: outfilePath,
bundle: true,
Expand Down