Skip to content

build: add a script to rebuild on typescript file changes#178

Merged
zimeg merged 3 commits intomainfrom
zimeg-build-watch-ts
Feb 6, 2026
Merged

build: add a script to rebuild on typescript file changes#178
zimeg merged 3 commits intomainfrom
zimeg-build-watch-ts

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Jan 30, 2026

Type of change

  • New feature
  • Documentation

Summary

This PR adds a script to rebuild the app on TypeScript file changes:

$ npm run build:watch

Notes

Used alongside changes of slackapi/slack-cli#310 and slackapi/node-slack-sdk#2474 and the WIP hook defaults of the hooks slackapi/node-slack-sdk#2480 file:

{
  "hooks": {
    "get-hooks": "npx -q --no-install -p @slack/cli-hooks slack-cli-get-hooks"
  },
  "config": {
    "watch": {
      "app": {
        "filter-regex": "\\.js$",
        "paths": ["."]
      }
    }
  }
}

This command can be used separate for a smooth development experience with:

$ slack run

Updates to documentation for noting this pattern with the CLI are saved for pages or follow up elsewhere perhaps later! 📚 ✨

Requirements

  • I have ensured the changes I am contributing align with existing patterns and have tested and linted my code
  • I've read and agree to the Code of Conduct

@zimeg zimeg self-assigned this Jan 30, 2026
@zimeg zimeg added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 30, 2026
@zimeg zimeg requested a review from a team as a code owner January 30, 2026 06:37
For development, use watch mode to automatically rebuild on changes:

```sh
npm run build:watch

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@zimeg
Copy link
Member Author

zimeg commented Feb 6, 2026

@srtaalej Let's make server restarts fast so I will merge this 🚢 💨

@zimeg zimeg merged commit 7fa5ffc into main Feb 6, 2026
5 checks passed
@zimeg zimeg deleted the zimeg-build-watch-ts branch February 6, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants