@fluid-app/fluid-cli-portal 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -439,9 +439,9 @@ const createCommand = new Command("create").description("Create a new Fluid port
|
|
|
439
439
|
let localCoreVersion;
|
|
440
440
|
const cliVersion = await getCliVersion();
|
|
441
441
|
if (!!options.local) {
|
|
442
|
-
const
|
|
443
|
-
const sdkPath = join(
|
|
444
|
-
const corePath = join(
|
|
442
|
+
const monorepoRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "..", "..");
|
|
443
|
+
const sdkPath = join(monorepoRoot, "packages", "portal", "sdk");
|
|
444
|
+
const corePath = join(monorepoRoot, "packages", "portal", "core");
|
|
445
445
|
if (!await directoryExists(sdkPath) || !await directoryExists(corePath)) {
|
|
446
446
|
console.error(chalk.red("Error: --local requires running from within the fluid-mono monorepo\n Could not find packages/portal/sdk or packages/portal/core"));
|
|
447
447
|
process.exit(1);
|