@onexapis/cli 1.1.4 → 1.1.6

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
@@ -1291,7 +1291,7 @@ Add your theme-specific blocks here.
1291
1291
  }
1292
1292
  }
1293
1293
  function generateManifest(data) {
1294
- return `import type { ThemeExport } from "@duongthiu/onex-core";
1294
+ return `import type { ThemeExport } from "@onexapis/core";
1295
1295
 
1296
1296
  /**
1297
1297
  * ${data.displayName} Theme Manifest
@@ -1339,7 +1339,7 @@ export default manifest;
1339
1339
  `;
1340
1340
  }
1341
1341
  function generateThemeConfig(data) {
1342
- return `import type { ThemeConfig } from "@duongthiu/onex-core";
1342
+ return `import type { ThemeConfig } from "@onexapis/core";
1343
1343
 
1344
1344
  /**
1345
1345
  * ${data.displayName} Theme Configuration
@@ -1440,7 +1440,7 @@ export const themeConfig: ThemeConfig = {
1440
1440
  `;
1441
1441
  }
1442
1442
  function generateThemeLayout(data) {
1443
- return `import type { ThemeLayoutConfig } from "@duongthiu/onex-core";
1443
+ return `import type { ThemeLayoutConfig } from "@onexapis/core";
1444
1444
 
1445
1445
  /**
1446
1446
  * ${data.themeName} Theme Layout
@@ -1480,7 +1480,7 @@ export { themeLayout as ${data.themeName}Layout } from "./theme.layout";
1480
1480
  `;
1481
1481
  }
1482
1482
  function generateHomePage(data) {
1483
- return `import type { PageConfig } from "@duongthiu/onex-core";
1483
+ return `import type { PageConfig } from "@onexapis/core";
1484
1484
 
1485
1485
  /**
1486
1486
  * Home Page Configuration
@@ -1631,7 +1631,7 @@ async function createSectionCommand(name, options) {
1631
1631
  }
1632
1632
  }
1633
1633
  function generateSectionSchema(data) {
1634
- return `import type { SectionSchema } from "@duongthiu/onex-core";
1634
+ return `import type { SectionSchema } from "@onexapis/core";
1635
1635
 
1636
1636
  /**
1637
1637
  * ${data.displayName} Section Schema
@@ -1693,7 +1693,7 @@ export const ${data.sectionName}Schema: SectionSchema = {
1693
1693
  }
1694
1694
  function generateSectionTemplate(data) {
1695
1695
  return `import React from "react";
1696
- import type { SectionComponentProps } from "@duongthiu/onex-core";
1696
+ import type { SectionComponentProps } from "@onexapis/core";
1697
1697
 
1698
1698
  /**
1699
1699
  * ${data.displayName} - Default Template
@@ -1877,7 +1877,7 @@ async function createBlockCommand(name, options) {
1877
1877
  }
1878
1878
  }
1879
1879
  function generateBlockSchema(data) {
1880
- return `import type { BlockDefinition } from "@duongthiu/onex-core";
1880
+ return `import type { BlockDefinition } from "@onexapis/core";
1881
1881
 
1882
1882
  /**
1883
1883
  * ${data.displayName} Block Schema
@@ -1926,7 +1926,7 @@ export const ${data.blockName}Definition: BlockDefinition = {
1926
1926
  }
1927
1927
  function generateBlockComponent(data) {
1928
1928
  return `import React from "react";
1929
- import type { BlockComponentProps } from "@duongthiu/onex-core";
1929
+ import type { BlockComponentProps } from "@onexapis/core";
1930
1930
 
1931
1931
  /**
1932
1932
  * ${data.displayName} Block Component
@@ -2079,7 +2079,7 @@ async function createComponentCommand(name, options) {
2079
2079
  }
2080
2080
  }
2081
2081
  function generateComponentSchema(data) {
2082
- return `import type { ComponentDefinition } from "@duongthiu/onex-core";
2082
+ return `import type { ComponentDefinition } from "@onexapis/core";
2083
2083
 
2084
2084
  /**
2085
2085
  * ${data.displayName} Component Schema
@@ -2143,7 +2143,7 @@ export const ${data.componentName}Definition: ComponentDefinition = {
2143
2143
  }
2144
2144
  function generateComponent(data) {
2145
2145
  return `import React from "react";
2146
- import type { ComponentProps } from "@duongthiu/onex-core";
2146
+ import type { ComponentProps } from "@onexapis/core";
2147
2147
 
2148
2148
  /**
2149
2149
  * ${data.displayName} Component
@@ -3471,6 +3471,9 @@ async function renameTheme(themeDir, oldName, newName) {
3471
3471
  );
3472
3472
  }
3473
3473
  pkg.version = "1.0.0";
3474
+ if (pkg.devDependencies?.["@onexapis/cli"]) {
3475
+ delete pkg.devDependencies["@onexapis/cli"];
3476
+ }
3474
3477
  await fs__default.default.writeJson(pkgPath, pkg, { spaces: 2 });
3475
3478
  }
3476
3479
  const configPath = path8__default.default.join(themeDir, "theme.config.ts");
@@ -3623,7 +3626,9 @@ async function cloneCommand(themeName, options) {
3623
3626
  console.log();
3624
3627
  console.log(chalk4__default.default.cyan("Next steps:"));
3625
3628
  console.log(chalk4__default.default.gray(` cd ${path8__default.default.relative(process.cwd(), outputDir)}`));
3626
- console.log(chalk4__default.default.gray(" cp .env.example .env # then add your Company ID"));
3629
+ console.log(
3630
+ chalk4__default.default.gray(" cp .env.example .env # then add your Company ID")
3631
+ );
3627
3632
  if (options.install === false) {
3628
3633
  console.log(chalk4__default.default.gray(" pnpm install"));
3629
3634
  }