-
Notifications
You must be signed in to change notification settings - Fork 333
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
Updates docs when building a new command. Closes #5835 #5999
base: main
Are you sure you want to change the base?
Conversation
Thanks @SmitaNachan, we'l ltry to review it ASAP! |
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.
Hey @SmitaNachan, thanks for the doc updates, but we need to take a different direction. Like Waldek mentioned here: #5835 (comment), the goal is to upgrade the current watch
command to start with a new build before attaching the watcher. Sorry for any confusion.
Hi @Jwaegebaert |
@SmitaNachan, you shouldn't necessarily need to change any commands but rather make changes to the way that the |
Hi @Jwaegebaert |
@SmitaNachan, let's try some different approaches. Running I was thinking of exploring TypeScript CLI options more deeply. There's a section about the watcher with some interesting options we could use. https://www.typescriptlang.org/docs/handbook/compiler-options.html Another idea is to focus on adding new commands during the watch session. Maybe we could include some of our pre-written scripts at the watch launch? |
Hi @Jwaegebaert I propose making below changes to the package.json:
Any opinions please? |
That seems like a good start. Although I'm not quite sure if we'll need the |
Hi @Jwaegebaert Using |
Sorry for the late reply, @SmitaNachan. I did some testing, and it seems that we just need to trigger the What we really need is a watcher that focuses specifically on @pnp/cli-for-microsoft-365-maintainers, are there any alternatives you’d recommend for this use case? I’m wondering if it’s worth the effort to set up the watcher to build new commands when they're created, or if it’s sufficient to just run the |
One thing that we could try is the following:
First, we run concurrently to run typescript and nodemon in parallel. Then, using nodemon, we setup a watcher for commands.ts files using a glob across all directories under src and if any is changed, we run the script. I haven't tested it, but in theory it should work. 🤞 |
I think I remember testing |
@Jwaegebaert please let me know if I can help |
Updates docs when building a new command. Closes #5835