rafters 0.0.19 → 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.
- package/dist/index.js +5 -7
- 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
|
|
53682
|
-
|
|
53683
|
-
|
|
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:
|
|
53691
|
+
cwd: devApiPath,
|
|
53694
53692
|
stdio: "inherit",
|
|
53695
53693
|
env: {
|
|
53696
53694
|
...process.env,
|