mirror of
https://github.com/allankoechke/slint.git
synced 2026-12-02 01:40:33 +00:00
Share tsconfig.json so that ava runs the typescript compiler also on the tests. Similary, the syntax check now also covers the tests. Sadly, the exception that the Slint compiler throws is not type declared, so we have to use any. Similarly, the object share returned by loadFile() is unknown in terms of properties, callbacks, etc.
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"name": "slint-ui",
|
|
"version": "1.3.0",
|
|
"main": "index.js",
|
|
"types": "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"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.15.2",
|
|
"@swc-node/register": "^1.5.5",
|
|
"@swc/core": "^1.3.32",
|
|
"@types/node": "^20.8.6",
|
|
"ava": "^5.3.0",
|
|
"esbuild": "^0.14.54",
|
|
"jimp": "^0.22.8",
|
|
"typedoc": "^0.25.2"
|
|
},
|
|
"engines": {
|
|
"node": ">= 10"
|
|
},
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"compile": "esbuild index.ts --bundle --external:*.node --format=cjs --platform=node --outfile=index.js",
|
|
"build": "napi build --platform --release --js rust-module.js --dts rust-module.d.ts && npm run compile",
|
|
"build:debug": "napi build --platform --js rust-module.js --dts rust-module.d.ts && npm run compile && npm run syntax_check",
|
|
"install": "npm run build",
|
|
"docs": "npm run build && typedoc --hideGenerator --treatWarningsAsErrors --readme cover.md index.ts",
|
|
"test": "ava",
|
|
"syntax_check": "tsc -noEmit"
|
|
},
|
|
"ava": {
|
|
"require": [
|
|
"@swc-node/register"
|
|
],
|
|
"extensions": [
|
|
"ts"
|
|
],
|
|
"timeout": "2m",
|
|
"workerThreads": false,
|
|
"environmentVariables": {
|
|
"TS_NODE_PROJECT": "./tsconfig.json"
|
|
}
|
|
}
|
|
}
|