mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
- Instead of building index.js with esbuild and generating types with tsc, use tsc to build index.js and index.d.ts. - Use ts-node instead of swc for typescript based tests, as that works with es modules. - Remove "syntax_check" target from package.json as that's now implied with "compile". - Sadly this requires one "as any" cast as tsc somehow fails to determine the right type info for node-fetch. Unfortunately index.js can't be an ES module without breaking compatiblity. It would imply that the Node.js port can't be used with require() anymore. So even thought that would simplify things further, it's not part of this PR. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||