@suryaravikumar/mdx-ui 0.0.2 → 0.0.3

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.
@@ -12,7 +12,7 @@ const init = new Command().name("init").description("Initialize your project for
12
12
  type: "text",
13
13
  name: "componentsDir",
14
14
  message: "Where should we put the components?",
15
- initial: "components/mdx"
15
+ initial: "src/components/mdx-ui"
16
16
  },
17
17
  {
18
18
  type: "confirm",
@@ -31,7 +31,7 @@ const init = new Command().name("init").description("Initialize your project for
31
31
  try {
32
32
  const componentsPath = path.join(cwd, config.componentsDir);
33
33
  await fs.ensureDir(componentsPath);
34
- const libPath = path.join(cwd, path.dirname(config.componentsDir), "lib");
34
+ const libPath = path.join(cwd, "src", "lib");
35
35
  await fs.ensureDir(libPath);
36
36
  const utilsContent = config.typescript ? `import { clsx, type ClassValue } from "clsx"
37
37
  import { twMerge } from "tailwind-merge"
@@ -64,7 +64,7 @@ export function cn(...inputs) {
64
64
  console.log(chalk.green(`\u2713 Created ${config.componentsDir}/`));
65
65
  console.log(
66
66
  chalk.green(
67
- `\u2713 Created ${path.dirname(config.componentsDir)}/lib/utils.${config.typescript ? "ts" : "js"}`
67
+ `\u2713 Created src/lib/utils.${config.typescript ? "ts" : "js"}`
68
68
  )
69
69
  );
70
70
  console.log(chalk.bold("\n\u{1F389} You're all set!\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suryaravikumar/mdx-ui",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Add MDX components to your project",
5
5
  "license": "MIT",
6
6
  "type": "module",