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.
68 lines
2.1 KiB
JSON
68 lines
2.1 KiB
JSON
{
|
|
"name": "slint-ui",
|
|
"version": "1.10.0",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"homepage": "https://github.com/slint-ui/slint",
|
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/slint-ui/slint"
|
|
},
|
|
"keywords": [
|
|
"GUI",
|
|
"UI",
|
|
"native",
|
|
"node",
|
|
"Slint",
|
|
"desktop",
|
|
"embedded"
|
|
],
|
|
"description": "Slint is a declarative GUI toolkit to build native user interfaces for desktop and embedded applications.",
|
|
"devDependencies": {
|
|
"@ava/typescript": "5.0.0",
|
|
"@biomejs/biome": "1.9.4",
|
|
"@types/capture-console": "1.0.5",
|
|
"@types/node": "20.16.10",
|
|
"ava": "6.2.0",
|
|
"capture-console": "1.0.2",
|
|
"jimp": "1.6.0",
|
|
"typedoc": "0.27",
|
|
"typescript": "5.7.3"
|
|
},
|
|
"engines": {
|
|
"node": ">= 10"
|
|
},
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"compile": "tsc --build",
|
|
"build": "napi build --platform --release --js rust-module.cjs --dts rust-module.d.cts -c binaries.json",
|
|
"build:debug": "napi build --platform --js rust-module.cjs --dts rust-module.d.cts -c binaries.json && pnpm compile",
|
|
"build:testing": "napi build --platform --js rust-module.cjs --dts rust-module.d.cts -c binaries.json --features testing && pnpm compile",
|
|
"install": "node build-on-demand.mjs",
|
|
"docs": "pnpm build && typedoc --hideGenerator --readme cover.md typescript/index.ts && cargo about generate thirdparty.hbs -o docs/thirdparty.html",
|
|
"docs:debug": "pnpm build:debug && typedoc --hideGenerator --readme cover.md typescript/index.ts",
|
|
"check": "biome check",
|
|
"format": "biome format",
|
|
"format:fix": "biome format --write",
|
|
"lint": "biome lint",
|
|
"lint:fix": "biome lint --fix",
|
|
"test": "tsc --build __test__/tsconfig.json && ava"
|
|
},
|
|
"ava": {
|
|
"typescript": {
|
|
"rewritePaths": {
|
|
"__test__/": "build/"
|
|
},
|
|
"compile": false,
|
|
"extensions": [
|
|
"mts"
|
|
]
|
|
},
|
|
"timeout": "2m",
|
|
"workerThreads": false
|
|
},
|
|
"dependencies": {
|
|
"@napi-rs/cli": "2.18.4"
|
|
}
|
|
}
|