From 782a12eee7fc36f7a8fdc4221f3a1405fc487df5 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Mon, 8 Jul 2024 13:33:42 +0200 Subject: [PATCH] fix: correction to cli --- packages/generator-langium/templates/packages/cli/bin/cli.js | 2 +- packages/generator-langium/templates/packages/cli/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 => {