Files
LCUI/package.json
T
Liu db5ab3dc36 ci: improve format check reliability
- Use project-local clang-format from node_modules/.bin instead of system
  PATH to avoid version mismatches between CI and development environments
- Print clang-format version and binary path in CI logs for debugging
- Add format:check script to package.json so `npm run format:check` works
- Add `needs: format` to build job so formatting failures block the build
  and don't waste CI resources
2026-08-05 22:42:15 +08:00

43 lines
1.1 KiB
JSON

{
"name": "lcui",
"version": "3.0.0-alpha.0",
"description": "The C library for building user interfaces.",
"main": "index.js",
"directories": {
"doc": "docs",
"test": "test"
},
"scripts": {
"build-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"update-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"update-copyright": "node scripts/add-copyright.js",
"format:check": "node scripts/clang-format-changed.js",
"prepare": "husky"
},
"lint-staged": {
"**/*.{c,h}": [
"clang-format -i"
]
},
"devDependencies": {
"clang-format-node": "^3.0.6",
"husky": "^9.1.7",
"lint-staged": "^15.2.10"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lc-soft/LCUI.git"
},
"keywords": [
"C",
"gui",
"framework"
],
"author": "Liu Chao <root@lc-soft.io> (https://lc-soft.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/lc-soft/LCUI/issues"
},
"homepage": "https://github.com/lc-soft/LCUI#readme"
}