rafters 0.0.20 → 0.0.21

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 +5 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53678,19 +53678,17 @@ async function studio() {
53678
53678
  console.error('No .rafters/ directory found. Run "rafters init" first.');
53679
53679
  process.exit(1);
53680
53680
  }
53681
- const devStudioPath = join13(__dirname2, "..", "..", "..", "studio");
53682
- const prodStudioPath = join13(__dirname2, "..", "node_modules", "@rafters", "studio");
53683
- const studioPath = existsSync7(devStudioPath) ? devStudioPath : prodStudioPath;
53684
- if (!existsSync7(studioPath)) {
53685
- console.error("Studio package not found. Please reinstall @rafters/cli.");
53681
+ const devApiPath = join13(__dirname2, "..", "..", "..", "apps", "api");
53682
+ if (!existsSync7(devApiPath)) {
53683
+ console.error("Studio API not found. Run from the rafters monorepo.");
53686
53684
  process.exit(1);
53687
53685
  }
53688
- console.log("Starting Rafters Studio...");
53686
+ console.log("Starting Rafters Studio API...");
53689
53687
  console.log(`Project: ${cwd}`);
53690
53688
  console.log(`Tokens: ${paths.tokens}`);
53691
53689
  console.log("");
53692
53690
  const subprocess = execa2("pnpm", ["dev"], {
53693
- cwd: studioPath,
53691
+ cwd: devApiPath,
53694
53692
  stdio: "inherit",
53695
53693
  env: {
53696
53694
  ...process.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rafters",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "CLI for Rafters design system - scaffold tokens and add components",
5
5
  "license": "MIT",
6
6
  "type": "module",