Commit 95753a9
chore(deps): update fs-extra to 11.3.6 across all packages (#328)
### Description
Bumps `fs-extra` to `11.3.6` (and `@types/fs-extra` to `11.0.4`) in
every package that depends on it, so the whole monorepo resolves a
single copy of each.
Before this change the versions were inconsistent: five packages were
already on the `11.x` line (`11.3.4` / `^11.3.0`), while three —
`@cdktn/provider-generator`, `@cdktn/cli-core`, and `cdktn-cli` — plus
the standalone `test/` harness were still pinned to `fs-extra@8.1.0` /
`@types/fs-extra@8.1.5`. This aligns all of them on the current release.
**Packages updated:**
| Package | `fs-extra` | `@types/fs-extra` |
| --- | --- | --- |
| `@cdktn/provider-generator` | `8.1.0` → `11.3.6` | `8.1.5` → `11.0.4`
|
| `@cdktn/cli-core` | `8.1.0` → `11.3.6` | `8.1.5` → `11.0.4` |
| `cdktn-cli` | `8.1.0` → `11.3.6` | `8.1.5` → `11.0.4` |
| `test/` (non-workspace) | `^8.1.0` → `^11.3.6` | `^8.1.5` → `^11.0.4`
|
| `@cdktn/provider-schema` | `11.3.4` → `11.3.6` | `11.0.4` (unchanged)
|
| `@cdktn/commons` | `11.3.4` → `11.3.6` | `11.0.4` (unchanged) |
| `@cdktn/hcl2cdk` | `11.3.4` → `11.3.6` | `11.0.4` (unchanged) |
| `@cdktn/hcl2json` | `11.3.4` → `11.3.6` | `11.0.4` (unchanged) |
| `@cdktn/hcl-tools` | `^11.3.0` → `^11.3.6` | `11.0.4` (unchanged) |
**Two source changes were required.** The three packages crossing the
`8.x` → `11.x` boundary were checked against the fs-extra breaking
changes in that window. The `@types/fs-extra@11` typings are stricter
than `@types/fs-extra@8` and flagged two existing calls that passed a
`recursive` option to a copy — `fs.copy`/`fs.copySync` are always
recursive, so `recursive` was never a valid
`CopyOptions`/`CopyOptionsSync` key; the looser v8 typings silently
accepted it. Removing it is a no-op at runtime:
- `@cdktn/provider-generator/src/get/constructs-maker.ts` — `error
TS2769` on `fs.copy(source, target, { recursive: true, overwrite: false
})` → `fs.copy(source, target, { overwrite: false })`.
- `cdktn-cli/src/bin/cmds/helper/init.ts` — `error TS2353` on
`fs.copySync(src, dest, { recursive: true })` → `fs.copySync(src,
dest)`.
No behavioural change was needed for the other differences. `move()`
defaulting to `overwrite: false` from v9 onward doesn't affect the three
`fs.move` call sites in the same file, which already pass `{ overwrite:
true }` explicitly. Every other method used across these packages
(`existsSync`, `readFile(Sync)`, `writeFile(Sync)`, `remove(Sync)`,
`pathExists`, `mkdirp`/`mkdirs`, `copy(Sync)`, `stat`, `readJson(Sync)`,
`appendFileSync`, `rmSync`, `unlinkSync`, `accessSync`, `constants`) is
unchanged from 8 through 11. The rest of the 8→11 range only dropped
support for Node.js < 14, which the repo already requires.
### Checklist
- [ ] I have updated the PR title to match [CDKTN's style
guide](https://github.com/open-constructs/cdk-terrain/blob/main/CONTRIBUTING.md#pull-requests-1)
- [ ] I have run the linter on my code locally
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the
[documentation](https://github.com/open-constructs/cdk-terrain-docs/tree/main/content)
if applicable
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works if applicable
- [ ] New and existing unit tests pass locally with my changes
---------
Co-authored-by: Simon Heather <simon.heather@yulife.com>1 parent 557a163 commit 95753a9
13 files changed
Lines changed: 156 additions & 54 deletions
File tree
- packages
- @cdktn
- cli-core
- commons
- hcl-tools
- hcl2cdk
- hcl2json
- provider-generator
- src/get
- provider-schema
- cdktn-cli
- src/bin/cmds/helper
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 327 | + | |
330 | 328 | | |
331 | 329 | | |
332 | 330 | | |
| |||
0 commit comments