mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
* Update api/node/README.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
48 lines
1.4 KiB
JSON
48 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 index.ts"
|
|
},
|
|
"ava": {
|
|
"require": [
|
|
"@swc-node/register"
|
|
],
|
|
"extensions": [
|
|
"ts"
|
|
],
|
|
"timeout": "2m",
|
|
"workerThreads": false,
|
|
"environmentVariables": {
|
|
"TS_NODE_PROJECT": "./tsconfig.json"
|
|
}
|
|
}
|
|
}
|