c12 icon indicating copy to clipboard operation
c12 copied to clipboard

Support loading config from `package.json`

Open ontoneio opened this issue 1 year ago • 3 comments

I am just curious, because it doesn't look like it from the looks of things, but wanted to be sure. It would be great to be able to do this and replace other config packages like find-config in my case.

This library supports loading from a "config" key in package.json and I am noticing several others do as well.

Be nice to be able to parse those out in addtion.

ontoneio avatar Aug 15 '22 22:08 ontoneio

Hi. Not at the latest feature but we could support 👍🏼

pi0 avatar Aug 16 '22 08:08 pi0

This is definitely something I would love to see here. Any plans to add it? Are PR's welcomed?

kevinwolfcr avatar Sep 16 '22 17:09 kevinwolfcr

Surely PR welcome! We can use readPackageJSON from pkg-types to load closest package.json as source.

pi0 avatar Sep 16 '22 17:09 pi0

Let me close this issue, because it has been already resolved by #52 (GitHub magic comment was not used in PR message for auto-closing).

NozomuIkuta avatar Mar 07 '23 11:03 NozomuIkuta