Skip to content

Commit

Permalink
[INTERNAL] isWorkspace: Fix __dirname
Browse files Browse the repository at this point in the history
Co-authored-by: Yavor Ivanov <[email protected]>
  • Loading branch information
RandomByte and d3xter666 committed Feb 20, 2024
1 parent f9bc5ea commit cc349ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/isWorkspace.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "node:path";
import {fileURLToPath} from "node:url";

const cliPath = path.relative(__dirname, fileURLToPath(import.meta.resolve("@ui5/cli/package.json")));
const cliPath = path.relative(import.meta.dirname, fileURLToPath(import.meta.resolve("@ui5/cli/package.json")));

// no workspace detected
if (!cliPath.startsWith(path.join("..", ".."))) {
Expand Down

0 comments on commit cc349ed

Please sign in to comment.