mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 注入全局常量:PROJECT_BUILD_TIME - 构建时间
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import type { VersionInfo } from '@/interface';
|
||||
import version from './version.json';
|
||||
import packageJson from '../../../package.json';
|
||||
|
||||
interface Version {
|
||||
dependencies: {
|
||||
@ -8,6 +8,7 @@ interface Version {
|
||||
devDependencies: {
|
||||
[key: string]: string;
|
||||
};
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface PackageVersion {
|
||||
@ -15,7 +16,7 @@ interface PackageVersion {
|
||||
devDependencies: VersionInfo[];
|
||||
}
|
||||
|
||||
const versionWithType = version as Version;
|
||||
const versionWithType = packageJson as Version;
|
||||
|
||||
function transformVersionData(tuple: [string, string]): VersionInfo {
|
||||
const [name, version] = tuple;
|
||||
|
Reference in New Issue
Block a user