Skip to content
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

Add node.js only parcel watcher watchman back-end #9789

Merged
merged 31 commits into from
Aug 6, 2024

Conversation

yamadapc
Copy link
Contributor

@yamadapc yamadapc commented Jun 12, 2024

Added a commit over v2...jondlm:parcel:jdlm-watchman-drop-in-replacement

Migrated to typescript but need to write some tests and integrate with the rest of the codebase.

The ignore patterns section likely is one thing that needs to be changed carefully though we could support only a subset of the current ignore options and delegate to watchman.


Update

Ignore support added. Right now globs and directories are supported.

@yamadapc
Copy link
Contributor Author

cc @jdlm-stripe

@yamadapc yamadapc changed the title WIP - Start to add node.js only parcel watcher wachman back-end Start to add node.js only parcel watcher wachman back-end Jun 18, 2024
@yamadapc yamadapc force-pushed the pyamada-nodejs-watchman-watcher branch from b00711b to 5099a0d Compare July 8, 2024 04:11
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
@mattcompiles mattcompiles changed the title Start to add node.js only parcel watcher wachman back-end Add node.js only parcel watcher watchman back-end Aug 6, 2024
@alshdavid alshdavid self-requested a review August 6, 2024 04:11
yarn.lock Outdated Show resolved Hide resolved
@@ -48,6 48,8 @@
"check-ts": "tsc --noEmit index.d.ts"
},
"dependencies": {
"@parcel/feature-flags": "2.12.0",
"@parcel/watcher-watchman-js": "2.12.0",
Copy link
Member

Choose a reason for hiding this comment

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

How can we make this dependency opt-in? Peer dep? try...catch around a require?

Copy link
Contributor

Choose a reason for hiding this comment

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

The package is so small (less than 50KB) that I wasn't going to worry about it. I can try make it opt in though.

@mattcompiles mattcompiles enabled auto-merge (squash) August 6, 2024 06:16
@mattcompiles mattcompiles merged commit fcce2ab into v2 Aug 6, 2024
23 checks passed
@mattcompiles mattcompiles deleted the pyamada-nodejs-watchman-watcher branch August 6, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants