notionsoft-ui 1.0.24 → 1.0.25

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/cli/index.cjs +4 -2
  2. package/package.json +1 -1
package/cli/index.cjs CHANGED
@@ -129,9 +129,11 @@ program
129
129
  }
130
130
 
131
131
  const config = fs.readJSONSync(configFile);
132
- const templateFile = getTemplateFile(component);
133
132
 
134
- if (!fs.existsSync(templateFile)) {
133
+ // Make sure templateDir is defined here
134
+ const templateDir = path.join(__dirname, "../src/notion-ui", component);
135
+
136
+ if (!fs.existsSync(templateDir)) {
135
137
  console.log(chalk.red(`❌ Component '${component}' does not exist.`));
136
138
  return;
137
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notionsoft-ui",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "A React UI component installer (shadcn-style). Installs components directly into your project.",
5
5
  "bin": {
6
6
  "notionsoft-ui": "./cli/index.cjs"