@clerk/dev-cli 0.0.12 → 0.1.0-canary.v20260227025820

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerk/dev-cli",
3
- "version": "0.0.12",
3
+ "version": "0.1.0-canary.v20260227025820",
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": {
@@ -19,20 +19,22 @@
19
19
  "clerk-dev": "bin/cli.js"
20
20
  },
21
21
  "dependencies": {
22
- "commander": "^12.1.0",
23
- "concurrently": "^9.0.1",
24
- "dotenv": "^16.4.5",
25
- "globby": "^14.0.2",
26
- "jscodeshift": "^0.16.1"
22
+ "commander": "^14.0.1",
23
+ "concurrently": "^9.2.1",
24
+ "dotenv": "^17.2.3",
25
+ "jscodeshift": "^17.3.0",
26
+ "tinyglobby": "^0.2.15"
27
27
  },
28
28
  "devDependencies": {},
29
29
  "engines": {
30
- "node": ">=18.17.0"
30
+ "node": ">=20.9.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
35
  "scripts": {
36
+ "format": "node ../../scripts/format-package.mjs",
37
+ "format:check": "node ../../scripts/format-package.mjs --check",
36
38
  "lint": "eslint src"
37
39
  }
38
40
  }
@@ -74,7 +74,9 @@ async function getOutputFileTracingRoot() {
74
74
  const root1 = path.parse(p1).root;
75
75
  const root2 = path.parse(p2).root;
76
76
 
77
- if (root1 !== root2) return null;
77
+ if (root1 !== root2) {
78
+ return null;
79
+ }
78
80
 
79
81
  const parts1 = p1.slice(root1.length).split(path.sep);
80
82
  const parts2 = p2.slice(root2.length).split(path.sep);
@@ -82,8 +84,11 @@ async function getOutputFileTracingRoot() {
82
84
  const len = Math.min(parts1.length, parts2.length);
83
85
  const common = [];
84
86
  for (let i = 0; i < len; i++) {
85
- if (parts1[i] === parts2[i]) common.push(parts1[i]);
86
- else break;
87
+ if (parts1[i] === parts2[i]) {
88
+ common.push(parts1[i]);
89
+ } else {
90
+ break;
91
+ }
87
92
  }
88
93
 
89
94
  return common.length ? path.join(root1, ...common) : root1;
@@ -1,7 +1,7 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { dirname, posix } from 'node:path';
3
3
 
4
- import { globby } from 'globby';
4
+ import { glob } from 'tinyglobby';
5
5
 
6
6
  import { NULL_ROOT_ERROR } from './errors.js';
7
7
  import { getMonorepoRoot } from './getMonorepoRoot.js';
@@ -17,7 +17,7 @@ export async function getClerkPackages() {
17
17
  }
18
18
  /** @type {Record<string, string>} */
19
19
  const packages = {};
20
- const clerkPackages = await globby([posix.join(monorepoRoot, 'packages', '*', 'package.json'), '!*node_modules*']);
20
+ const clerkPackages = await glob([posix.join(monorepoRoot, 'packages', '*', 'package.json'), '!*node_modules*']);
21
21
  for (const packageJSON of clerkPackages) {
22
22
  const { name } = JSON.parse(await readFile(packageJSON, 'utf-8'));
23
23
  if (name) {