diff --git a/packages/generator-langium/templates/packages/cli/bin/cli.js b/packages/generator-langium/templates/packages/cli/bin/cli.js index e166dc613..697962f65 100644 --- a/packages/generator-langium/templates/packages/cli/bin/cli.js +++ b/packages/generator-langium/templates/packages/cli/bin/cli.js @@ -1,4 +1,4 @@ #!/usr/bin/env node -import main from '../out/cli/main.js'; +import main from '../out/main.js'; main(); diff --git a/packages/generator-langium/templates/packages/cli/src/main.ts b/packages/generator-langium/templates/packages/cli/src/main.ts index 41ab16def..a03006b86 100644 --- a/packages/generator-langium/templates/packages/cli/src/main.ts +++ b/packages/generator-langium/templates/packages/cli/src/main.ts @@ -10,7 +10,7 @@ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); -const packagePath = path.resolve(__dirname, '..', '..', 'package.json'); +const packagePath = path.resolve(__dirname, '..', 'package.json'); const packageContent = await fs.readFile(packagePath, 'utf-8'); export const generateAction = async (fileName: string, opts: GenerateOptions): Promise => {