diff --git a/packages/standalone/package.json b/packages/standalone/package.json index f90b6402106..598f7e4d0b4 100644 --- a/packages/standalone/package.json +++ b/packages/standalone/package.json @@ -1,7 +1,7 @@ { "name": "@typespec/standalone-cli", "private": true, - "version": "0.67.2", + "version": "0.67.3", "author": "Microsoft Corporation", "description": "TypeSpec Standalone CLI", "homepage": "https://typespec.io", diff --git a/packages/standalone/src/cli.ts b/packages/standalone/src/cli.ts index a48f8cd0801..53c4f456ef8 100644 --- a/packages/standalone/src/cli.ts +++ b/packages/standalone/src/cli.ts @@ -18,7 +18,7 @@ import { parseArgs } from "node:util"; if (process.env.TYPESPEC_CLI_PASSTHROUGH === "1") { process.argv.shift(); // We receive ["tsp", "tsp", "entrypoint"] and we want to match ["node", "entrypoint"] process.execArgv = []; - import(process.argv[1]).catch((e) => { + import(pathToFileURL(process.argv[1]).href).catch((e) => { // eslint-disable-next-line no-console console.log(e); process.exit(1);