mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
Update version check (#67)
This commit is contained in:
@@ -14,7 +14,7 @@ if (!(matchResult && matchResult[1])) {
|
||||
const branchVersion = matchResult[1];
|
||||
|
||||
const versionRegExpMap = {
|
||||
'./package.json': /"version": "(.*)"/,
|
||||
'./package.json': /"version": "(\d+\.\d+\.\d+)(?:-.*)?"/,
|
||||
'./cocos/core/global-exports.ts': /engineVersion = '(.*)'/,
|
||||
};
|
||||
for (const filePath in versionRegExpMap) {
|
||||
|
||||
Reference in New Issue
Block a user