@vexblocks/cli 1.0.8 → 1.1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -487,12 +487,12 @@ async function installBackendPackage(targetPath, sourcePath, spinner) {
487
487
  logger.info(`Backed up existing schema to ${path4.basename(backupPath)}`);
488
488
  const cmsFiles = [
489
489
  "convex/cms",
490
- "convex/schema.cms.ts",
491
490
  "convex/auth.ts",
492
491
  "convex/auth.config.ts",
493
492
  "convex/http.ts",
494
493
  "better-auth",
495
- "emails"
494
+ "emails",
495
+ "vexblocks.config.ts"
496
496
  ];
497
497
  for (const file of cmsFiles) {
498
498
  const fullSourcePath = `${sourcePath}/${file}`;
@@ -579,7 +579,7 @@ async function mergeSchemaFile(schemaPath, spinner) {
579
579
  }
580
580
  spinner.text = "Merging CMS schema into existing schema.ts...";
581
581
  let newContent = content;
582
- const importStatement = 'import { cmsSchemaExports } from "./schema.cms"';
582
+ const importStatement = 'import { cmsSchemaExports } from "./cms/schema.cms"';
583
583
  const hasImport = content.includes(importStatement);
584
584
  if (!hasImport) {
585
585
  const importRegex = /^import\s+.*from\s+['"].*['"];?\s*$/gm;
@@ -1161,7 +1161,7 @@ async function upgradePackage(cwd, pkg, version, manifest, options) {
1161
1161
  });
1162
1162
  } else {
1163
1163
  spinner.text = `Upgrading CMS files in ${PACKAGE_NAMES[pkg]}...`;
1164
- const cmsFiles = ["convex/cms", "convex/schema.cms.ts"];
1164
+ const cmsFiles = ["convex/cms"];
1165
1165
  for (const file of cmsFiles) {
1166
1166
  const targetFilePath = path7.join(targetPath, file);
1167
1167
  const sourceFilePath = `packages/backend/${file}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vexblocks/cli",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "CLI for adding VexBlocks Headless CMS to your Turborepo project",
5
5
  "keywords": [
6
6
  "cms",