0abdc91: feat(cli-hooks): add default app and manifest watch config
This package now provides default watch configurations for automatic file watching during slack run. The CLI will restart your app server when source files change and reinstall your app when the manifest changes.
Requirements: These features require Slack CLI v3.12.0+ with file watching support.
The following watch settings are provided automatically when using this package:
{
"config": {
"watch": {
"app": {
"filter-regex": "\\.js$",
"paths": ["."]
},
"manifest": {
"paths": ["manifest.json"]
}
}
}
}
Note: Manifest watching requires a local manifest source in your .slack/config.json file. Remote manifests will not be updated on file changes.
{
"manifest": {
"source": "local"
}
}
You can override these defaults in your .slack/hooks.json file to reduce the paths searched or change the file patterns. Read Watch Configurations for more options.
TypeScript developers should run tsc --watch in a separate terminal during development. This compiles .ts files to .js on changes, and the default watch configuration will detect changes to the compiled dist/*.js files and restart the app server. This approach works best with the default settings.
8962739: fix(cli-hooks): stop app process if the start hook exits
Fixes a CLI issue where daemon app processes were spawned if the CLI was exited without being interrupted.
Fetched April 3, 2026