rafters 0.0.15 → 0.0.16

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/dist/index.js +26 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51262,6 +51262,19 @@ async function regenerateFromExisting(cwd, paths, shadcn, isAgentMode2, framewor
51262
51262
  if (existingConfig) {
51263
51263
  existingConfig.exports = exports;
51264
51264
  await writeFile3(paths.config, JSON.stringify(existingConfig, null, 2));
51265
+ } else {
51266
+ const frameworkPaths = COMPONENT_PATHS[framework] || COMPONENT_PATHS.unknown;
51267
+ const newConfig = {
51268
+ framework,
51269
+ componentsPath: frameworkPaths.components,
51270
+ primitivesPath: frameworkPaths.primitives,
51271
+ compositesPath: frameworkPaths.composites,
51272
+ cssPath: null,
51273
+ shadcn: !!shadcn,
51274
+ exports,
51275
+ installed: { components: [], primitives: [], composites: [] }
51276
+ };
51277
+ await writeFile3(paths.config, JSON.stringify(newConfig, null, 2));
51265
51278
  }
51266
51279
  log({
51267
51280
  event: "init:complete",
@@ -51346,6 +51359,19 @@ async function resetToDefaults(cwd, paths, shadcn, isAgentMode2, framework) {
51346
51359
  if (existingConfig) {
51347
51360
  existingConfig.exports = exports;
51348
51361
  await writeFile3(paths.config, JSON.stringify(existingConfig, null, 2));
51362
+ } else {
51363
+ const frameworkPaths = COMPONENT_PATHS[framework] || COMPONENT_PATHS.unknown;
51364
+ const newConfig = {
51365
+ framework,
51366
+ componentsPath: frameworkPaths.components,
51367
+ primitivesPath: frameworkPaths.primitives,
51368
+ compositesPath: frameworkPaths.composites,
51369
+ cssPath: null,
51370
+ shadcn: !!shadcn,
51371
+ exports,
51372
+ installed: { components: [], primitives: [], composites: [] }
51373
+ };
51374
+ await writeFile3(paths.config, JSON.stringify(newConfig, null, 2));
51349
51375
  }
51350
51376
  log({
51351
51377
  event: "init:complete",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rafters",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "CLI for Rafters design system - scaffold tokens and add components",
5
5
  "license": "MIT",
6
6
  "type": "module",