create-mastra 0.11.2 → 0.11.3-alpha.0

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.js CHANGED
@@ -18,7 +18,7 @@ import tty from 'node:tty';
18
18
  import pino from 'pino';
19
19
  import pretty from 'pino-pretty';
20
20
  import { execa } from 'execa';
21
- import fsExtra3, { readJSON, ensureFile, writeJSON } from 'fs-extra/esm';
21
+ import fsExtra2, { readJSON, ensureFile, writeJSON } from 'fs-extra/esm';
22
22
  import prettier from 'prettier';
23
23
  import fsExtra from 'fs-extra';
24
24
 
@@ -1439,13 +1439,6 @@ var DepsService = class {
1439
1439
  throw err;
1440
1440
  }
1441
1441
  }
1442
- async getPackageVersion() {
1443
- const __filename = fileURLToPath(import.meta.url);
1444
- const __dirname = dirname(__filename);
1445
- const pkgJsonPath = path3.join(__dirname, "..", "package.json");
1446
- const content = await fsExtra3.readJSON(pkgJsonPath);
1447
- return content.version;
1448
- }
1449
1442
  async addScriptsToPackageJson(scripts) {
1450
1443
  const packageJson = JSON.parse(await fs.readFile("package.json", "utf-8"));
1451
1444
  packageJson.scripts = {
@@ -1645,12 +1638,12 @@ var FileService = class {
1645
1638
  console.log(`${outputFilePath} already exists`);
1646
1639
  return false;
1647
1640
  }
1648
- await fsExtra3.outputFile(outputFilePath, fileString);
1641
+ await fsExtra2.outputFile(outputFilePath, fileString);
1649
1642
  return true;
1650
1643
  }
1651
1644
  async setupEnvFile({ dbUrl }) {
1652
1645
  const envPath = path3.join(process.cwd(), ".env.development");
1653
- await fsExtra3.ensureFile(envPath);
1646
+ await fsExtra2.ensureFile(envPath);
1654
1647
  const fileEnvService = new FileEnvService(envPath);
1655
1648
  await fileEnvService.setEnvValue("DB_URL", dbUrl);
1656
1649
  }
@@ -1972,7 +1965,7 @@ async function writeCodeSampleForComponents(llmprovider, component, destPath, im
1972
1965
  }
1973
1966
  var createComponentsDir = async (dirPath, component) => {
1974
1967
  const componentPath = dirPath + `/${component}`;
1975
- await fsExtra3.ensureDir(componentPath);
1968
+ await fsExtra2.ensureDir(componentPath);
1976
1969
  };
1977
1970
  var writeIndexFile = async ({
1978
1971
  dirPath,
@@ -2061,7 +2054,7 @@ var createMastraDir = async (directory) => {
2061
2054
  await fs.access(dirPath);
2062
2055
  return { ok: false };
2063
2056
  } catch {
2064
- await fsExtra3.ensureDir(dirPath);
2057
+ await fsExtra2.ensureDir(dirPath);
2065
2058
  return { ok: true, dirPath };
2066
2059
  }
2067
2060
  };