diff --git a/package.json b/package.json index b4ab303cd..3794df6a6 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "verify-data-integrity": "pnpm pre && pnpm -C apps/backend run verify-data-integrity", "generate-docs": "pnpm pre && turbo run generate-docs", "generate-keys": "pnpm pre && turbo run generate-keys", - "generate-from-template:watch": "chokidar --silent -c 'npx --package=ts-node ts-node ./scripts/generate-from-template.ts' './packages/template' --ignore '**/node_modules/**' --ignore '**/dist/**' --ignore '**/.turbo/**' --throttle 1000" + "generate-from-template:watch": "chokidar --silent -c 'npx --package=ts-node ts-node ./scripts/generate-from-template.ts' './packages/template' --ignore './packages/template/package.json' --ignore '**/node_modules/**' --ignore '**/dist/**' --ignore '**/.turbo/**' --throttle 2000" }, "devDependencies": { "@changesets/cli": "^2.27.9", diff --git a/packages/template/package-template.json b/packages/template/package-template.json index a1a34ba35..93077d7d4 100644 --- a/packages/template/package-template.json +++ b/packages/template/package-template.json @@ -46,11 +46,11 @@ "css-tw:watch": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css --watch", "css-tw": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css", "css-sc": "tsx ./scripts/process-css.ts ./src/generated/tailwind.css ./src/generated/global-css.ts", - "css-sc:watch": "chokidar --silent './src/generated/tailwind.css' -c 'pnpm run css-sc'", + "css-sc:watch": "chokidar --silent './src/generated/tailwind.css' -c 'pnpm run css-sc' --throttle 2000", "override-env-local-for-quetzal": "echo \"\\n$STACK_ENV_LOCAL_PACKAGE_BUILD_OVERRIDE_FOR_QUETZAL\\n\" >> .env.local", "quetzal": "rimraf quetzal-translations && pnpm run override-env-local-for-quetzal && quetzal-process-translations && tsx ./scripts/merge-quetzal-translations.ts", "quetzal:ignore-errors": "pnpm run quetzal || echo Quetzal failed, probably because the API key is missing. We will just ignore it", - "quetzal:watch": "chokidar --silent \"src/**/*\" -i \"src/generated/quetzal-translations.ts\" -c 'pnpm run quetzal:ignore-errors'" + "quetzal:watch": "chokidar --silent \"src/**/*\" -i \"src/generated/quetzal-translations.ts\" -c 'pnpm run quetzal:ignore-errors' --throttle 2000" ,"//": "END_PLATFORM" }, "files": [ diff --git a/packages/template/package.json b/packages/template/package.json index eeb491046..2bdc20080 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -31,11 +31,11 @@ "css-tw:watch": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css --watch", "css-tw": "tailwindcss -i ./src/global.css -o ./src/generated/tailwind.css", "css-sc": "tsx ./scripts/process-css.ts ./src/generated/tailwind.css ./src/generated/global-css.ts", - "css-sc:watch": "chokidar --silent './src/generated/tailwind.css' -c 'pnpm run css-sc'", + "css-sc:watch": "chokidar --silent './src/generated/tailwind.css' -c 'pnpm run css-sc' --throttle 2000", "override-env-local-for-quetzal": "echo \"\\n$STACK_ENV_LOCAL_PACKAGE_BUILD_OVERRIDE_FOR_QUETZAL\\n\" >> .env.local", "quetzal": "rimraf quetzal-translations && pnpm run override-env-local-for-quetzal && quetzal-process-translations && tsx ./scripts/merge-quetzal-translations.ts", "quetzal:ignore-errors": "pnpm run quetzal || echo Quetzal failed, probably because the API key is missing. We will just ignore it", - "quetzal:watch": "chokidar --silent \"src/**/*\" -i \"src/generated/quetzal-translations.ts\" -c 'pnpm run quetzal:ignore-errors'" + "quetzal:watch": "chokidar --silent \"src/**/*\" -i \"src/generated/quetzal-translations.ts\" -c 'pnpm run quetzal:ignore-errors' --throttle 2000" }, "files": [ "README.md",