@eide/foir-cli 0.1.36 → 0.1.37

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/cli.js CHANGED
@@ -7239,19 +7239,19 @@ async function confirmAction(message, opts) {
7239
7239
  var __filename = fileURLToPath(import.meta.url);
7240
7240
  var __dirname = dirname5(__filename);
7241
7241
  function loadSchemaSDL() {
7242
- const monorepoPath = resolve5(
7243
- __dirname,
7244
- "../../../../graphql-core/schema.graphql"
7245
- );
7242
+ const bundledPath = resolve5(__dirname, "schema.graphql");
7246
7243
  try {
7247
- return readFileSync(monorepoPath, "utf-8");
7244
+ return readFileSync(bundledPath, "utf-8");
7248
7245
  } catch {
7249
- const altPath = resolve5(__dirname, "../../../graphql-core/schema.graphql");
7246
+ const monorepoPath = resolve5(
7247
+ __dirname,
7248
+ "../../../graphql-core/schema.graphql"
7249
+ );
7250
7250
  try {
7251
- return readFileSync(altPath, "utf-8");
7251
+ return readFileSync(monorepoPath, "utf-8");
7252
7252
  } catch {
7253
7253
  throw new Error(
7254
- "Could not find schema.graphql. Ensure you are running from within the EIDE monorepo."
7254
+ "Could not find schema.graphql. Try reinstalling @eide/foir-cli."
7255
7255
  );
7256
7256
  }
7257
7257
  }