* feat(cli): add update command for ESEngine packages - Add 'update' command to check and update @esengine/* packages - Support --check flag to only show available updates without installing - Support --yes flag to skip confirmation prompt - Display package update status with current vs latest version comparison - Preserve version prefix (^ or ~) when updating - Bump version to 1.4.0 * chore: add changeset for CLI update command * fix(cli): handle 'latest' tag in update command - Treat 'latest' and '*' version tags as needing update - Pin to specific version (^x.x.x) when updating from 'latest' - Show '(pin version)' hint in update status output * fix(cli): minimize file system race condition in update command Re-read package.json immediately before writing to reduce the window for potential race conditions between reading and writing. * fix(cli): use atomic file write to avoid race condition Write to temp file first, then rename for atomic update.
52 lines
1006 B
JSON
52 lines
1006 B
JSON
{
|
|
"name": "@esengine/cli",
|
|
"version": "1.4.0",
|
|
"description": "CLI tool for adding ESEngine ECS framework to existing projects",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"bin": {
|
|
"esengine": "./dist/cli.js"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"build:watch": "tsc --watch",
|
|
"dev": "ts-node src/cli.ts",
|
|
"clean": "rimraf dist",
|
|
"prepublishOnly": "pnpm run build"
|
|
},
|
|
"keywords": [
|
|
"esengine",
|
|
"ecs",
|
|
"cli",
|
|
"cocos",
|
|
"laya",
|
|
"game-framework"
|
|
],
|
|
"author": "yhh",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"chalk": "^4.1.2",
|
|
"commander": "^12.1.0",
|
|
"prompts": "^2.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.19.0",
|
|
"@types/prompts": "^2.4.9",
|
|
"rimraf": "^5.0.0",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|