Skip to content

Commit

Permalink
fix(package): Ignore typechain outputs in watcher
Browse files Browse the repository at this point in the history
These files are touched unconditionally by the build process, so if they
are not ignored it triggers an infinite loop in the watcher.
  • Loading branch information
pxrl committed Sep 18, 2024
1 parent fcd1201 commit 38cd81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=16.18.0"
},
"scripts": {
"start": "nodemon -e ts,tsx,json,js,jsx --watch ./src --ignore ./dist --exec 'yarn build'",
"start": "nodemon -e ts,tsx,json,js,jsx --watch ./src --ignore ./dist --ignore src/utils/abi/typechain --exec 'yarn build'",
"build": "yarn run clean && yarn typechain && yarn run build:cjs & yarn run build:esm & yarn run build:types; wait",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir ./dist/esm && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'",
Expand Down

0 comments on commit 38cd81b

Please sign in to comment.