Ryan Zimmerman

Results 239 comments of Ryan Zimmerman

Looking good so far; needs docs and unit tests yet.

Sorry for the slow reply here; reproduced. However, `postcss-import` has had this incorrect behavior for a long time; changing it completely would cause a massive shockwave in the ecosystem. Also,...

The module we use for resolution doesn't support `exports` yet; so that's a technical blocker: https://github.com/browserify/resolve/issues/222. Presumably, we'd want to support some kind of style-specific [conditional export](https://nodejs.org/api/packages.html#conditional-exports) as well, so...

Relevant: https://nodejs.org/api/packages.html#community-conditions-definitions

@dmatora what would ensureJSON's behavior be?

The more I think about this, the more I'm opposed to adding additional functionality to `ensureFile`. There's a potentially limitless number of operations we could chain onto `ensureFile`, such as...

`fs-extra` has over 300M downloads a month, yet only a handful of people have indicated interest in the feature over the years; I would argue that this is the definition...

Closing as this is stale.

`readdir` is a native `fs` function; as per https://github.com/jprichardson/node-fs-extra#esm, you need to import these functions directly from `fs` or `fs/promises` for named imports.