Dashboard › craft › Session 1GQVZRpOR9dW
1GQVZRpOR9dWw4JKX<path>/home/byk/Code/getsentry/craft/src/utils/workspaces.ts</path>
<type>file</type>
<content>
1: import { readFileSync } from 'fs';
2: import * as path from 'path';
3: import { load } from 'js-yaml';
4: import { glob } from 'glob';
5:
6: import { logger } from '../logger';
7:
8: /**
9: * Check if an error is a "file not found" error
10: */
11: function isNotFoundError(err: unknown): boolean {
12: return err instanceof Error && 'code' in err && err.code === 'ENOENT';
13: }
14:
15: /** Information about a workspace package */
16: export interface WorkspacePackage {
17: /** The package name from package.json */
18: name: string;
19: /** Absolute path to the package directory */
20: location: string;
21: /** Whether the package is private */
22: private: boolean;
23: /** Whether the package has publishConfig.access set to 'public' */
24: hasPublicAccess: boolean;
25: /** Dependencies that are also workspace packages */
26: workspaceDependencies: string[];
27: ...
/home/byk/Code/getsentry/craft/src/utils/workspaces.ts /home/byk/Code/getsentry/craft/src/utils/__tests__/workspaces.test.ts /home/byk/Code/getsentry/craft/src/utils/__fixtures__/workspaces/pnpm-workspace/pnpm-workspace.yaml
No files found
Date: Sep 3, 2026 * 🟡 (18:01) Tool result identified workspace-related files: `/home/byk/Code/getsentry/craft/src/utils/workspaces.ts`, `/home/byk/Code/getsentry/craft/src/utils/__tests__/workspaces.test.ts`, and `/home/byk/Code/getsentry/craft/src/utils/__fixtures__/workspaces/pnpm-workspace/pnpm-workspace.yaml`.
Date: Sep 3, 2026 * 🟡 (17:58) Inspected `/home/byk/Code/getsentry/craft/src/utils/workspaces.ts` (lines 1–290 of 425). The module imports `readFileSync` from `fs`, `path`, `load` from `js-yaml`, `glob` from `glob`, and `logger` from `../logger`. * 🟡 (17:58) `src/utils/workspaces.ts` defines `WorkspacePackage` with `name`, absolute `location`, `private`, `hasPublicAccess`, and `workspaceDependen…