@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.mjs CHANGED
@@ -1249,7 +1249,7 @@ Add your theme-specific blocks here.
1249
1249
  }
1250
1250
  }
1251
1251
  function generateManifest(data) {
1252
- return `import type { ThemeExport } from "@duongthiu/onex-core";
1252
+ return `import type { ThemeExport } from "@onexapis/core";
1253
1253
 
1254
1254
  /**
1255
1255
  * ${data.displayName} Theme Manifest
@@ -1297,7 +1297,7 @@ export default manifest;
1297
1297
  `;
1298
1298
  }
1299
1299
  function generateThemeConfig(data) {
1300
- return `import type { ThemeConfig } from "@duongthiu/onex-core";
1300
+ return `import type { ThemeConfig } from "@onexapis/core";
1301
1301
 
1302
1302
  /**
1303
1303
  * ${data.displayName} Theme Configuration
@@ -1398,7 +1398,7 @@ export const themeConfig: ThemeConfig = {
1398
1398
  `;
1399
1399
  }
1400
1400
  function generateThemeLayout(data) {
1401
- return `import type { ThemeLayoutConfig } from "@duongthiu/onex-core";
1401
+ return `import type { ThemeLayoutConfig } from "@onexapis/core";
1402
1402
 
1403
1403
  /**
1404
1404
  * ${data.themeName} Theme Layout
@@ -1438,7 +1438,7 @@ export { themeLayout as ${data.themeName}Layout } from "./theme.layout";
1438
1438
  `;
1439
1439
  }
1440
1440
  function generateHomePage(data) {
1441
- return `import type { PageConfig } from "@duongthiu/onex-core";
1441
+ return `import type { PageConfig } from "@onexapis/core";
1442
1442
 
1443
1443
  /**
1444
1444
  * Home Page Configuration
@@ -1589,7 +1589,7 @@ async function createSectionCommand(name, options) {
1589
1589
  }
1590
1590
  }
1591
1591
  function generateSectionSchema(data) {
1592
- return `import type { SectionSchema } from "@duongthiu/onex-core";
1592
+ return `import type { SectionSchema } from "@onexapis/core";
1593
1593
 
1594
1594
  /**
1595
1595
  * ${data.displayName} Section Schema
@@ -1651,7 +1651,7 @@ export const ${data.sectionName}Schema: SectionSchema = {
1651
1651
  }
1652
1652
  function generateSectionTemplate(data) {
1653
1653
  return `import React from "react";
1654
- import type { SectionComponentProps } from "@duongthiu/onex-core";
1654
+ import type { SectionComponentProps } from "@onexapis/core";
1655
1655
 
1656
1656
  /**
1657
1657
  * ${data.displayName} - Default Template
@@ -1835,7 +1835,7 @@ async function createBlockCommand(name, options) {
1835
1835
  }
1836
1836
  }
1837
1837
  function generateBlockSchema(data) {
1838
- return `import type { BlockDefinition } from "@duongthiu/onex-core";
1838
+ return `import type { BlockDefinition } from "@onexapis/core";
1839
1839
 
1840
1840
  /**
1841
1841
  * ${data.displayName} Block Schema
@@ -1884,7 +1884,7 @@ export const ${data.blockName}Definition: BlockDefinition = {
1884
1884
  }
1885
1885
  function generateBlockComponent(data) {
1886
1886
  return `import React from "react";
1887
- import type { BlockComponentProps } from "@duongthiu/onex-core";
1887
+ import type { BlockComponentProps } from "@onexapis/core";
1888
1888
 
1889
1889
  /**
1890
1890
  * ${data.displayName} Block Component
@@ -2037,7 +2037,7 @@ async function createComponentCommand(name, options) {
2037
2037
  }
2038
2038
  }
2039
2039
  function generateComponentSchema(data) {
2040
- return `import type { ComponentDefinition } from "@duongthiu/onex-core";
2040
+ return `import type { ComponentDefinition } from "@onexapis/core";
2041
2041
 
2042
2042
  /**
2043
2043
  * ${data.displayName} Component Schema
@@ -2101,7 +2101,7 @@ export const ${data.componentName}Definition: ComponentDefinition = {
2101
2101
  }
2102
2102
  function generateComponent(data) {
2103
2103
  return `import React from "react";
2104
- import type { ComponentProps } from "@duongthiu/onex-core";
2104
+ import type { ComponentProps } from "@onexapis/core";
2105
2105
 
2106
2106
  /**
2107
2107
  * ${data.displayName} Component
@@ -3429,6 +3429,9 @@ async function renameTheme(themeDir, oldName, newName) {
3429
3429
  );
3430
3430
  }
3431
3431
  pkg.version = "1.0.0";
3432
+ if (pkg.devDependencies?.["@onexapis/cli"]) {
3433
+ delete pkg.devDependencies["@onexapis/cli"];
3434
+ }
3432
3435
  await fs.writeJson(pkgPath, pkg, { spaces: 2 });
3433
3436
  }
3434
3437
  const configPath = path8.join(themeDir, "theme.config.ts");
@@ -3581,7 +3584,9 @@ async function cloneCommand(themeName, options) {
3581
3584
  console.log();
3582
3585
  console.log(chalk4.cyan("Next steps:"));
3583
3586
  console.log(chalk4.gray(` cd ${path8.relative(process.cwd(), outputDir)}`));
3584
- console.log(chalk4.gray(" cp .env.example .env # then add your Company ID"));
3587
+ console.log(
3588
+ chalk4.gray(" cp .env.example .env # then add your Company ID")
3589
+ );
3585
3590
  if (options.install === false) {
3586
3591
  console.log(chalk4.gray(" pnpm install"));
3587
3592
  }