@clerk/dev-cli 0.0.11 → 0.0.12-snapshot.v20250407181413
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/package.json +1 -1
- package/src/commands/watch.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/dev-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12-snapshot.v20250407181413",
|
|
4
4
|
"description": "CLI tool designed to simplify the process of iterating on packages within the clerk/javascript repository",
|
|
5
5
|
"homepage": "https://clerk.com/",
|
|
6
6
|
"bugs": {
|
package/src/commands/watch.js
CHANGED
|
@@ -29,12 +29,18 @@ export async function watch({ js }) {
|
|
|
29
29
|
throw new Error(NULL_ROOT_ERROR);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// Sometimes, the turbo daemon can get stuck in a weird state, so we clean it up before starting the watchers.
|
|
33
|
+
await concurrently([{ name: 'turbo-daemon-clean', command: 'turbo daemon clean', cwd, env: { ...process.env } }])
|
|
34
|
+
.result;
|
|
35
|
+
|
|
32
36
|
/** @type {import('concurrently').ConcurrentlyCommandInput} */
|
|
33
37
|
const clerkJsCommand = {
|
|
34
38
|
name: 'clerk-js',
|
|
35
39
|
command: 'turbo run dev --filter=@clerk/clerk-js -- --env devOrigin=http://localhost:4000',
|
|
36
40
|
cwd,
|
|
37
|
-
|
|
41
|
+
// Turborepo is supposed to use the daemon by default in `watch` mode, but only when attached to a PTY. Since we're
|
|
42
|
+
// redirecting stdout, we have to force it to use the daemon.
|
|
43
|
+
env: { TURBO_UI: '0', TURBO_DAEMON: 'true', ...process.env },
|
|
38
44
|
};
|
|
39
45
|
|
|
40
46
|
/** @type {import('concurrently').ConcurrentlyCommandInput} */
|