Commit 573e20e
authored
build(client): upgrade dependency-cruiser (#25705)
While testing #25687 I ran into a depcruiser build error like this:
```
@fluidframework/tree: error during command 'depcruise src/ --ignore-known' (exit code 1)
@fluidframework/tree: file:///Volumes/Code/FluidFramework/node_modules/.pnpm/dependency-cruiser@14.1.2/node_modules/dependency-cruiser/src/cli/utl/assert-file-existence.mjs:1
@fluidframework/tree: import { accessSync, R_OK } from "node:fs";
@fluidframework/tree: ^^^^
@fluidframework/tree: SyntaxError: The requested module 'node:fs' does not provide an export named 'R_OK'
@fluidframework/tree: at #_instantiate (node:internal/modules/esm/module_job:254:21)
@fluidframework/tree: at async ModuleJob.run (node:internal/modules/esm/module_job:369:5)
@fluidframework/tree: at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:689:26)
@fluidframework/tree: at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
```
It doesn't happen in CI, but when it happened locally I was able to fix
it by upgrading to the latest version of dependency-cruiser. Despite the
number of major versions, none of the breaking changes affect us as far
as I can tell, so this seems to be a worthwhile upgrade regardless.1 parent bef7f59 commit 573e20e
2 files changed
+85
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments