@vexblocks/cli 1.0.3 → 1.0.4
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 +13 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -586,7 +586,9 @@ async function diffCommand(packageArg, options) {
|
|
|
586
586
|
logger.title("\u{1F50D} VexBlocks Diff");
|
|
587
587
|
const manifest = await readManifest(cwd);
|
|
588
588
|
if (!manifest) {
|
|
589
|
-
logger.error(
|
|
589
|
+
logger.error(
|
|
590
|
+
"No vexblocks.json found. Run `npx @vexblocks/cli init` first."
|
|
591
|
+
);
|
|
590
592
|
process.exit(1);
|
|
591
593
|
}
|
|
592
594
|
const installedPackages = Object.keys(manifest.packages);
|
|
@@ -822,7 +824,7 @@ async function createNewProject(cwd, options) {
|
|
|
822
824
|
await fs6.ensureDir(path6.join(projectDir, "packages"));
|
|
823
825
|
const packageJson = {
|
|
824
826
|
name: projectName,
|
|
825
|
-
version: "0.
|
|
827
|
+
version: "0.2.0",
|
|
826
828
|
private: true,
|
|
827
829
|
packageManager: "pnpm@9.15.0",
|
|
828
830
|
workspaces: ["apps/*", "packages/*"],
|
|
@@ -981,7 +983,9 @@ async function initializeExisting(cwd, _options) {
|
|
|
981
983
|
`1. ${pc4.cyan("npx @vexblocks/cli add all")} - Add all CMS packages`,
|
|
982
984
|
"2. Configure your environment variables",
|
|
983
985
|
`3. ${pc4.cyan(`${packageManager} install`)}`,
|
|
984
|
-
`4. ${pc4.cyan(
|
|
986
|
+
`4. ${pc4.cyan(
|
|
987
|
+
`${packageManager === "npm" ? "npm run" : packageManager} dev`
|
|
988
|
+
)}`
|
|
985
989
|
]);
|
|
986
990
|
} catch (error) {
|
|
987
991
|
spinner.fail("Failed to initialize");
|
|
@@ -1000,7 +1004,9 @@ async function upgradeCommand(packages, options) {
|
|
|
1000
1004
|
logger.title("\u2B06\uFE0F Upgrade VexBlocks Packages");
|
|
1001
1005
|
const manifest = await readManifest(cwd);
|
|
1002
1006
|
if (!manifest) {
|
|
1003
|
-
logger.error(
|
|
1007
|
+
logger.error(
|
|
1008
|
+
"No vexblocks.json found. Run `npx @vexblocks/cli init` first."
|
|
1009
|
+
);
|
|
1004
1010
|
process.exit(1);
|
|
1005
1011
|
}
|
|
1006
1012
|
const spinner = ora4("Checking for updates...").start();
|
|
@@ -1008,7 +1014,9 @@ async function upgradeCommand(packages, options) {
|
|
|
1008
1014
|
spinner.stop();
|
|
1009
1015
|
const installedPackages = Object.keys(manifest.packages);
|
|
1010
1016
|
if (installedPackages.length === 0) {
|
|
1011
|
-
logger.info(
|
|
1017
|
+
logger.info(
|
|
1018
|
+
"No packages installed. Run `npx @vexblocks/cli add <package>` first."
|
|
1019
|
+
);
|
|
1012
1020
|
return;
|
|
1013
1021
|
}
|
|
1014
1022
|
let packagesToUpgrade;
|