rsms / figplug

Figma plugin builder
https://rsms.me/figplug/
MIT License
362 stars 16 forks source link

windows10 crash on "figplug build -w -o=build" command #9

Open promet99 opened 2 years ago

promet99 commented 2 years ago

when "figplug build -w -o=build" is executed on windows10, error occurs due to TSC_NONPOLLING_WATCHER env var not being recognized.

skovy commented 2 years ago

This also appears to be an issue when using this with https://rushjs.io for monorepo management. Can TSC_NONPOLLING_WATCHER be removed from this plugin?

Edit: correction, this appears to be an issue using both pnpm with the following error when using rushx build:

> rushx build
.../node_modules/.bin/figplug: line 16: exec: TSC_NONPOLLING_WATCHER=1: not found
The script failed with exit code 127

However, running rush build -t . works as expected. I don't think this is an issue specifically with this project, but removing this env variable (if possible) may avoid this issue when using rush + pnpm.