mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Sadly, ts-node doesn't work with the newer typescript anymore. As per https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md , this patch changes from the second to the first method: build the tests first, then run them with ava. This requires a few small changes in the tests, as import.meta.url now returns the transpiled .mjs file in the build dir, instead of the source dir, as expected by the test.
11 lines
193 B
JSON
11 lines
193 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "nodenext",
|
|
"target": "esnext",
|
|
"outDir": "../build",
|
|
"skipLibCheck": true
|
|
},
|
|
"include": [
|
|
"*.mts"
|
|
],
|
|
}
|