You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dev-cli/README.md
+1-8
Original file line number
Diff line number
Diff line change
@@ -74,14 +74,7 @@ clerk-dev watch
74
74
75
75
This will run the `build` task for any `@clerk/*` packages in the `package.json` of the current working directory, including any of their dependencies.
76
76
77
-
> [!NOTE]
78
-
> On macOS, this command will automatically spawn a new Terminal.app window running the dev task for `clerk-js`. On other operating systems, you will need to run the following command in a new terminal:
79
-
>
80
-
> ```sh
81
-
> clerk-dev watch --js
82
-
>```
83
-
84
-
If you do not want to spawn the watcher for`@clerk/clerk-js`, you can instead pass `--no-js`.
77
+
If you do not want to start the watcher for `@clerk/clerk-js`, you can instead pass `--no-js`.
//@ts-expect-error The TypeScript types for the ESM version of concurrently are wrong. https://github.com/open-cli-tools/concurrently/issues/494
46
+
const{ result }=concurrently([clerkJsCommand],{prefixColors: 'auto'});
// On macOS, we spawn a new Terminal.app instance containing the watcher for clerk-js. This is because clerk-js is
51
-
// not declared as a dependency for any other packages, so Turborepo is unable to automatically start it.
52
-
if(process.platform==='darwin'){
53
-
spawn('osascript',[
54
-
'-e',
55
-
`tell app "Terminal" to do script "cd ${cwd} && turbo run dev --filter=@clerk/clerk-js -- --env devOrigin=http://localhost:4000"`,
56
-
]);
57
-
}
53
+
commands.push(clerkJsCommand);
58
54
}
59
55
60
-
returnnewPromise((resolve,reject)=>{
61
-
constchild=spawn('turbo',args,{
62
-
cwd,
63
-
stdio: 'inherit',
64
-
env: {
65
-
...process.env,
66
-
},
67
-
});
68
-
69
-
child.on('close',code=>{
70
-
if(code!==0){
71
-
reject();
72
-
return;
73
-
}
74
-
resolve();
75
-
});
76
-
});
56
+
//@ts-expect-error The TypeScript types for the ESM version of concurrently are wrong. https://github.com/open-cli-tools/concurrently/issues/494
57
+
const{ result }=concurrently(commands,{prefixColors: 'auto'});
0 commit comments