Desired result: when I commit, prior to committing, run npm run build
, which will generate some new files. I want those files to be added to the commit.
The current state of affairs: when I commit, it runs npm run build
which generates files. And after the commit goes in, I have some staged changes.
I'm working with Solidity (and Forge) + npm. My repo is here if you wanna try: https://github.com/otterspace-xyz/otterspace-contracts
- checkout a new branch
test-branch
- go to
Badges.sol
and add a variablestring private test;
- save
Badges.sol
, rungit add .
git commit -m "commit to test husky"
- run
git status
I expect that you'll see: modified: out/Badges.sol/Badges.json
which makes sense (I guess). It seems like npm run build
runs but it's not adding the resulting files to the commit.