- sync json files
- should only be run from the command line
-
main use cases is extending one json file from another, e.g. packag.jsons in a monorepo
- install
pnpm add @nodperoto/jsync
- add
"jsync": { "root": false }
to your child pkg.json and"root": true"
to some parent (e.g. monorepo root) package.json - add pkg json script
"jsync": NODE_OPTIONS=\"--experimental-specifier-resolution=node\" jsync
- run the pkg json script
pnpm jsync
- install
original idea taken from dry-dry
, but honorable mentions