We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f2267 commit 8045b77Copy full SHA for 8045b77
scripts/isWorkspace.js
@@ -6,15 +6,10 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
import {createRequire} from "node:module";
7
const require = createRequire(import.meta.url);
8
9
-try {
10
- const cPath = require.resolve("@ui5/cli/package.json");
11
- const cliPath = path.relative(__dirname, path.dirname(cPath));
+const cPath = require.resolve("@ui5/cli/package.json");
+const cliPath = path.relative(__dirname, path.dirname(cPath));
12
13
- // no workspace detected
14
- if (!cliPath.startsWith("..")) {
15
- process.exit(1);
16
- }
17
-} catch (error) {
18
- console.log(error);
+// no workspace detected
+if (!cliPath.startsWith("..")) {
19
process.exit(1);
20
}
0 commit comments