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

fix number format

This commit is contained in:
sunnylqm
2025-03-15 19:03:19 +08:00
parent 8bd19bc0f7
commit a559140b72
4 changed files with 26 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ export interface CommitInfo {
hash: string;
message: string;
author: string;
date: number;
date: string;
origin: string;
}
@@ -40,7 +40,7 @@ export async function getCommitInfo(): Promise<CommitInfo | undefined> {
hash: oid,
message: commit.message,
author: commit.author.name || commit.committer.name,
date: commit.committer.timestamp,
date: String(commit.committer.timestamp),
origin: origin.url,
};
} catch (error) {

View File

@@ -5,20 +5,3 @@ const lockFiles = [
'bun.lockb',
'bun.lock',
];
const lockNotFound = `
没有检测到任何 lock 文件,这可能导致依赖关系不一致而使热更异常。
`;
const multipleLocksFound = `
检测到多个锁文件(),这可能导致依赖关系不一致而使热更异常。
`;
const lockBestPractice = `
关于 lock 文件的最佳实践:
1. 开发团队中的所有成员应该使用相同的包管理器,维护同一份 lock 文件。
2. 将 lock 文件添加到版本控制中(但不要同时提交多种不同格式的 lock 文件)。
3. 代码审核时应关注 lock 文件的变化。
这样可以最大限度避免因依赖关系不一致而导致的热更异常,也降低供应链攻击等安全隐患。
`;