1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-11-22 16:26:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Update version to 2.4.1 in package.json and streamline file and keyword declarations; import fetch in http-helper.ts for enhanced HTTP functionality.

This commit is contained in:
sunnylqm
2025-11-19 13:41:41 +08:00
parent 818907f811
commit ebd6d36b30
2 changed files with 5 additions and 17 deletions

View File

@@ -1,17 +1,13 @@
{ {
"name": "react-native-update-cli", "name": "react-native-update-cli",
"version": "2.4.0", "version": "2.4.1",
"description": "command line tool for react-native-update (remote updates for react native)", "description": "command line tool for react-native-update (remote updates for react native)",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
"pushy": "lib/index.js", "pushy": "lib/index.js",
"cresc": "lib/index.js" "cresc": "lib/index.js"
}, },
"files": [ "files": ["lib", "src", "cli.json"],
"lib",
"src",
"cli.json"
],
"scripts": { "scripts": {
"build": "swc src -d lib --strip-leading-paths", "build": "swc src -d lib --strip-leading-paths",
"prepublishOnly": "npm run build && chmod +x lib/index.js", "prepublishOnly": "npm run build && chmod +x lib/index.js",
@@ -21,13 +17,7 @@
"type": "git", "type": "git",
"url": "git+https://github.com/reactnativecn/react-native-update-cli.git" "url": "git+https://github.com/reactnativecn/react-native-update-cli.git"
}, },
"keywords": [ "keywords": ["react-native", "ios", "android", "harmony", "update"],
"react-native",
"ios",
"android",
"harmony",
"update"
],
"author": "reactnativecn", "author": "reactnativecn",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"bugs": { "bugs": {
@@ -81,8 +71,5 @@
"@types/yazl": "^2.4.6", "@types/yazl": "^2.4.6",
"typescript": "^5.8.3" "typescript": "^5.8.3"
}, },
"trustedDependencies": [ "trustedDependencies": ["@biomejs/biome", "@swc/core"]
"@biomejs/biome",
"@swc/core"
]
} }

View File

@@ -1,4 +1,5 @@
import { defaultEndpoints } from './constants'; import { defaultEndpoints } from './constants';
import fetch from 'node-fetch';
// const baseUrl = `http://localhost:9000`; // const baseUrl = `http://localhost:9000`;
// let baseUrl = SERVER.main[0]; // let baseUrl = SERVER.main[0];