#!/bin/bash # # Add package.json files to cjs/esm subtrees in dist # This is needed to allow one package to work with # commonJS for older node versions, and for using ES6 imports # for browsers, and newer versions of node # cat >dist/cjs/package.json <dist/esm/package.json <