-
Couldn't load subscription status.
- Fork 11
feat: slightly better watch mode #1398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |||||
| "version": "4.8.0", | ||||||
| "scripts": { | ||||||
| "build": "pnpm -r build", | ||||||
| "build:watch": "pnpm -r build:watch", | ||||||
| "build:watch": " pnpm -r --parallel build:watch", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove leading whitespace in - "build:watch": " pnpm -r --parallel build:watch",
+ "build:watch": "pnpm -r --parallel build:watch",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "dev": "pnpm -r dev", | ||||||
| "unraid:deploy": "pnpm -r unraid:deploy", | ||||||
| "test": "pnpm -r test", | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/bash | ||
| nodemon --verbose \ | ||
| --watch 'source/**/*' \ | ||
| --watch 'plugins/dynamix.unraid.net.plg' \ | ||
| --ext ts,js,plg,sh,xz,json \ | ||
| --ignore '*.test.ts' \ | ||
| --ignore 'node_modules/**' \ | ||
| --ignore 'source/dynamix.unraid.net/doinst.sh' \ | ||
| --ignore 'source/dynamix.unraid.net/usr/local/share/dynamix.unraid.net/config/vendor_archive.json' \ | ||
| --delay 30s \ | ||
| --exec 'pnpm run build' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Improved reliability with explicit directory cleaning.
Explicitly cleaning the release directory before copying files ensures a clean slate for each build, preventing potential issues with stale files.
Consider adding error handling for the case when the release directory can't be cleaned or when the copy operation fails:
🏁 Script executed:
Length of output: 206
Ensure release directory exists and handle errors in build script
Add a step to create the
../releasedirectory if it doesn’t exist before cleaning and copying, and wrap the operations in a try/catch to surface failures:No such file or directoryerrors🤖 Prompt for AI Agents