diff --git a/deno.jsonc b/deno.jsonc index 763748e..25c8e90 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -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", diff --git a/deno.lock b/deno.lock index 9b63de3..15ff9b2 100644 --- a/deno.lock +++ b/deno.lock @@ -60,7 +60,6 @@ "jsr:@std/testing@1.0.11": "1.0.11", "jsr:@std/text@~1.0.7": "1.0.12", "npm:@types/node@*": "22.12.0", - "npm:esbuild@0.25.2": "0.25.2", "npm:nanoid@5.1": "5.1.5", "npm:path-to-regexp@^6.3.0": "6.3.0", "npm:ueblueprint@2.0.0": "2.0.0", @@ -559,38 +558,6 @@ "@types/trusted-types@2.0.7": { "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" }, - "esbuild@0.25.2": { - "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", - "optionalDependencies": [ - "@esbuild/aix-ppc64@0.25.2", - "@esbuild/android-arm@0.25.2", - "@esbuild/android-arm64@0.25.2", - "@esbuild/android-x64@0.25.2", - "@esbuild/darwin-arm64@0.25.2", - "@esbuild/darwin-x64@0.25.2", - "@esbuild/freebsd-arm64@0.25.2", - "@esbuild/freebsd-x64@0.25.2", - "@esbuild/linux-arm@0.25.2", - "@esbuild/linux-arm64@0.25.2", - "@esbuild/linux-ia32@0.25.2", - "@esbuild/linux-loong64@0.25.2", - "@esbuild/linux-mips64el@0.25.2", - "@esbuild/linux-ppc64@0.25.2", - "@esbuild/linux-riscv64@0.25.2", - "@esbuild/linux-s390x@0.25.2", - "@esbuild/linux-x64@0.25.2", - "@esbuild/netbsd-arm64", - "@esbuild/netbsd-x64@0.25.2", - "@esbuild/openbsd-arm64@0.25.2", - "@esbuild/openbsd-x64@0.25.2", - "@esbuild/sunos-x64@0.25.2", - "@esbuild/win32-arm64@0.25.2", - "@esbuild/win32-ia32@0.25.2", - "@esbuild/win32-x64@0.25.2" - ], - "scripts": true, - "bin": true - }, "lit-element@3.3.3": { "integrity": "sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==", "dependencies": [ @@ -660,6 +627,10 @@ "https://deno.land/std@0.150.0/path/posix.ts": "c1f7afe274290ea0b51da07ee205653b2964bd74909a82deb07b69a6cc383aaa", "https://deno.land/std@0.150.0/path/separator.ts": "fe1816cb765a8068afb3e8f13ad272351c85cbc739af56dacfc7d93d710fe0f9", "https://deno.land/std@0.150.0/path/win32.ts": "bd7549042e37879c68ff2f8576a25950abbfca1d696d41d82c7bca0b7e6f452c", + "https://deno.land/x/denoflate@1.2.1/mod.ts": "f5628e44b80b3d80ed525afa2ba0f12408e3849db817d47a883b801f9ce69dd6", + "https://deno.land/x/denoflate@1.2.1/pkg/denoflate.js": "b9f9ad9457d3f12f28b1fb35c555f57443427f74decb403113d67364e4f2caf4", + "https://deno.land/x/denoflate@1.2.1/pkg/denoflate_bg.wasm.js": "d581956245407a2115a3d7e8d85a9641c032940a8e810acbd59ca86afd34d44d", + "https://deno.land/x/esbuild@v0.25.4/mod.js": "566ac37ed8acdb49b5cd72e0276de4014eb47b112a8ef31e30659220d8119226", "https://deno.land/x/globber@0.1.0/mod.ts": "971e58757909b2ef722e3dda1125aea8f5694601203ad835bdfc020f202bd5b8", "https://deno.land/x/globber@0.1.0/src/create_matcher.ts": "85be3a6d67376905521aed9da51db756d1ee747ebd0d52b88fc7b78a6831a393", "https://deno.land/x/globber@0.1.0/src/deps.ts": "179ba170213f7a35b7b794c409e7ca523da58644139c053721f93575dcbe616e", @@ -704,7 +675,6 @@ "jsr:@std/path@1.0.8", "jsr:@std/streams@1.0.9", "jsr:@std/testing@1.0.11", - "npm:esbuild@0.25.2", "npm:nanoid@5.1", "npm:ueblueprint@2.0.0", "npm:zod-to-json-schema@3.24.5", diff --git a/src/commands/script.ts b/src/commands/script.ts index e9b4cb9..ccd0eba 100644 --- a/src/commands/script.ts +++ b/src/commands/script.ts @@ -13,10 +13,6 @@ export const script = new Command() .description('script') .arguments('') .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') @@ -29,7 +25,6 @@ export const script = new Command() 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, @@ -40,7 +35,7 @@ export const script = new Command() } await esbuild.build({ - plugins: [...denoPlugins()], + plugins: [...denoPlugins({ loader: 'portable' })], entryPoints: [fileUrl.href], outfile: outfilePath, bundle: true,