@module-federation/managers
Advanced tools
Comparing version
@@ -105,7 +105,7 @@ 'use strict'; | ||
} | ||
function getBuildVersion() { | ||
function getBuildVersion(root) { | ||
if (process.env['MF_BUILD_VERSION']) { | ||
return process.env['MF_BUILD_VERSION']; | ||
} | ||
const pkg = new PKGJsonManager().readPKGJson(); | ||
const pkg = new PKGJsonManager().readPKGJson(root); | ||
if ((pkg == null ? void 0 : pkg['version']) && typeof pkg['version'] === 'string') { | ||
@@ -112,0 +112,0 @@ return pkg['version']; |
@@ -103,7 +103,7 @@ import path from 'path'; | ||
} | ||
function getBuildVersion() { | ||
function getBuildVersion(root) { | ||
if (process.env['MF_BUILD_VERSION']) { | ||
return process.env['MF_BUILD_VERSION']; | ||
} | ||
const pkg = new PKGJsonManager().readPKGJson(); | ||
const pkg = new PKGJsonManager().readPKGJson(root); | ||
if ((pkg == null ? void 0 : pkg['version']) && typeof pkg['version'] === 'string') { | ||
@@ -110,0 +110,0 @@ return pkg['version']; |
import { ContainerOptionsFormat, NormalizeSimple, NormalizeOptions, ParsedContainerOptions } from './types'; | ||
export declare function parseOptions<T, R>(options: ContainerOptionsFormat<T>, normalizeSimple: NormalizeSimple<R>, normalizeOptions: NormalizeOptions<T, R>): ParsedContainerOptions<R>; | ||
export declare function getBuildVersion(): string; | ||
export declare function getBuildVersion(root?: string): string; | ||
export declare function getBuildName(): string | undefined; |
{ | ||
"name": "@module-federation/managers", | ||
"version": "0.0.0-next-20250715082703", | ||
"version": "0.0.0-next-20250717203314", | ||
"license": "MIT", | ||
@@ -25,7 +25,7 @@ "description": "Provide managers for helping handle mf data .", | ||
"module": "./dist/index.esm.js", | ||
"types": "./dist/index.cjs.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"find-pkg": "2.0.0", | ||
"fs-extra": "9.1.0", | ||
"@module-federation/sdk": "0.0.0-next-20250715082703" | ||
"@module-federation/sdk": "0.0.0-next-20250717203314" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
".": { | ||
"types": "./dist/index.cjs.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.esm.js", | ||
@@ -46,3 +46,3 @@ "require": "./dist/index.cjs.js" | ||
".": [ | ||
"./dist/index.cjs.d.ts" | ||
"./dist/index.d.ts" | ||
] | ||
@@ -49,0 +49,0 @@ } |
42223
-0.03%16
-5.88%1045
-0.1%+ Added
- Removed