Skip to content

docs: update fs-extra documentation#461

Merged
43081j merged 2 commits intoes-tooling:mainfrom
gameroman:docs-fs-extra
Mar 19, 2026
Merged

docs: update fs-extra documentation#461
43081j merged 2 commits intoes-tooling:mainfrom
gameroman:docs-fs-extra

Conversation

@gameroman
Copy link
Contributor

Closes #452

@gameroman gameroman marked this pull request as ready for review March 17, 2026 19:38
Copy link
Contributor

@joaopedrodcf joaopedrodcf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvements in the migration examples 🙏

```js
await fsExtra.mkdirs(dir) // [!code --]
await fsExtra.mkdirp(dir) // [!code --]
await fsExtra.ensureDir(dir) // [!code --]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't actually work as a diff since you'd never have all 3 replaced by 1

it should either be all 3 again in the after, or just mention that this is the same for mkdirs and ensureDir in a comment

```js
fsExtra.mkdirsSync(dir) // [!code --]
fsExtra.mkdirpSync(dir) // [!code --]
fsExtra.ensureDirSync(dir) // [!code --]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, this doesn't work as a diff. gave a suggestion in the other comment


```js
await fsExtra.ensureFile(file) // [!code --]
await fsExtra.createFile(file) // [!code --]
Copy link
Contributor

@43081j 43081j Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one too doesn't work as a diff. see other comment

edit: in fact all the ones below here have the same issue. so probably just fix all in one go

@43081j 43081j merged commit 0262177 into es-tooling:main Mar 19, 2026
4 checks passed
@gameroman gameroman deleted the docs-fs-extra branch March 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve documenation for fs-extra

3 participants