-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c05460c
commit a5ace17
Showing
6 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import packageJson from '../../package.json' with { type: 'json' }; | ||
import lernaJson from '../../lerna.json' with { type: 'json' }; | ||
import appPackageJson from '../../app/package.json' with { type: 'json' }; | ||
|
||
export { | ||
packageJson, | ||
lernaJson, | ||
appPackageJson | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import process from 'node:process'; | ||
import semver from 'semver'; | ||
|
||
/* 根据不同的nodejs版本加载不同的文件 */ | ||
let jsonImport; | ||
|
||
if (semver.gte(process.version, '22.0.0')) { | ||
jsonImport = await import('./gteV22.mjs'); | ||
} else { | ||
jsonImport = await import('./ltV22.mjs'); | ||
} | ||
|
||
export const { | ||
packageJson, | ||
lernaJson, | ||
appPackageJson | ||
} = jsonImport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import packageJson from '../../package.json' assert { type: 'json' }; | ||
import lernaJson from '../../lerna.json' assert { type: 'json' }; | ||
import appPackageJson from '../../app/package.json' assert { type: 'json' }; | ||
|
||
export { | ||
packageJson, | ||
lernaJson, | ||
appPackageJson | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters