Created by: mrmckeb
To test, add a "scripts" key to any template.json
file, and use that template.
This code merges keys in, allowing template authors to add or replace the default scripts.
Example command below. While testing, you may need to bump the react-scripts
version (via package.json
) to 3.3.0
.
node ./create-react-app/packages/create-react-app template-test \ feat/template-scripts
--template file:./create-react-app/packages/cra-template-typescript/ \
--scripts-version file:./create-react-app/packages/react-scripts/