@clerk/dev-cli 0.0.3 → 0.0.4-canary.vd8d752c

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@clerk/dev-cli",
3
3
  "description": "CLI tool designed to simplify the process of iterating on packages within the clerk/javascript repository",
4
- "version": "0.0.3",
4
+ "version": "0.0.4-canary.vd8d752c",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "author": "Clerk",
@@ -1,14 +1,16 @@
1
1
  import { readFile } from 'node:fs/promises';
2
- import { dirname, join, posix, resolve } from 'node:path';
2
+ import { dirname, posix } from 'node:path';
3
3
 
4
4
  import { globby } from 'globby';
5
5
 
6
+ import { getMonorepoRoot } from './getMonorepoRoot.js';
7
+
6
8
  /**
7
9
  * Generates an object with keys of package names and values of absolute paths to the package folder.
8
10
  * @returns {Promise<Record<string, string>>}
9
11
  */
10
12
  export async function getClerkPackages() {
11
- const monorepoRoot = resolve(join(import.meta.dirname, '..', '..', '..', '..'));
13
+ const monorepoRoot = await getMonorepoRoot();
12
14
  /** @type {Record<string, string>} */
13
15
  const packages = {};
14
16
  const clerkPackages = await globby([posix.join(monorepoRoot, 'packages', '*', 'package.json'), '!*node_modules*']);