pejay-ui 1.2.1 → 1.2.2

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/bin/cli.js CHANGED
@@ -209,8 +209,8 @@ program
209
209
 
210
210
  // 3. Process & Copy Component Files
211
211
  let targetDir;
212
- if (componentData.category === "tanstack-query") {
213
- targetDir = path.join(cwd, "src", "tanstack-query");
212
+ if (componentData.category === "scaffold") {
213
+ targetDir = path.join(cwd, "src", componentData.targetDirName || compToInstall);
214
214
  } else {
215
215
  targetDir = path.join(cwd, config.baseDir, "components", componentData.category);
216
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pejay-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "react ui components",
6
6
  "bin": {
package/registry.json CHANGED
@@ -191,13 +191,17 @@
191
191
  },
192
192
  "tanstack-query-client": {
193
193
  "name": "TanstackQueryClient",
194
- "category": "tanstack-query",
194
+ "category": "scaffold",
195
+ "subcategory": "tanstack-query",
196
+ "targetDirName": "tanstack-query",
195
197
  "files": ["templates/scaffolds/tanstack-query"],
196
198
  "peerDependencies": ["@tanstack/react-query"]
197
199
  },
198
200
  "react-router-client": {
199
201
  "name": "ReactRouterClient",
200
- "category": "react-router",
202
+ "category": "scaffold",
203
+ "subcategory": "react-router",
204
+ "targetDirName": "react-router",
201
205
  "files": ["templates/scaffolds/react-router"],
202
206
  "peerDependencies": ["react-router-dom"]
203
207
  }