mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
We generate dts type for each package on publish. It requires us to include only "src" to output same structure as in src folder. Though we have configs and cli scripts outside of it which should be typechecked, they cannot be ignored. Ideally would be to have one-line commands in package.json. Though typescript always has problems with build step. In this case the CLI have everything to configure this except "include" and "exclude" flags. So here to workaround that I added tsconfig.dts.json to distinct dts generation and typechecking. Blocker for https://github.com/webstudio-is/webstudio-builder/pull/1634
Webstudio SDK
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document. It is currently under development, but feel free to play with the the current landing site