Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 857 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 857 Bytes

@nodeproto/jsync

  • sync json files
  • should only be run from the command line

TLDR

  • main use cases is extending one json file from another, e.g. packag.jsons in a monorepo

    1. install pnpm add @nodperoto/jsync
    2. add "jsync": { "root": false } to your child pkg.json and "root": true" to some parent (e.g. monorepo root) package.json
    3. add pkg json script "jsync": NODE_OPTIONS=\"--experimental-specifier-resolution=node\" jsync
    4. run the pkg json script pnpm jsync

inspiration

original idea taken from dry-dry, but honorable mentions

vscode