mirror of
https://github.com/webstudio-is/webstudio.git
synced 2025-03-15 18:38:30 +00:00
Finally figured out how to leverage node conditions to run webstudio cli in fixtures without rebuilding it on every change. Import conditions is another thing which allows to constrain not exposed modules but internal ones. Now to run cli locally it should be have this env which is basically same we do with vite. Works for both import and export conditions. ``` NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio ```
6 lines
65 B
JavaScript
Executable File
6 lines
65 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { main } from "#cli";
|
|
|
|
await main();
|