File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import {
1010 adaptInternalPackageManifests ,
1111 adaptTargetPackageManifest ,
1212 readManifest ,
13- writeManifest ,
1413 validateManifestMandatoryFields ,
14+ writeManifest ,
1515} from "./lib/manifest" ;
1616import {
1717 getBuildOutputDir ,
@@ -133,6 +133,15 @@ export function createIsolator(config?: IsolateConfig) {
133133 }
134134 ) ;
135135
136+ /** Validate mandatory fields for all internal packages that will be isolated */
137+ for ( const packageName of internalPackageNames ) {
138+ const packageDef = packagesRegistry [ packageName ] ;
139+ validateManifestMandatoryFields (
140+ packageDef . manifest ,
141+ getRootRelativeLogPath ( packageDef . absoluteDir , workspaceRootDir )
142+ ) ;
143+ }
144+
136145 const packedFilesByName = await packDependencies ( {
137146 internalPackageNames,
138147 packagesRegistry,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import fs from "fs-extra";
22import { globSync } from "glob" ;
33import path from "node:path" ;
44import { useLogger } from "../logger" ;
5- import { validateManifestMandatoryFields } from "../manifest" ;
65import type { PackageManifest , PackagesRegistry } from "../types" ;
76import { isRushWorkspace , readTypedJson , readTypedJsonSync } from "../utils" ;
87import { findPackagesGlobs } from "./helpers" ;
@@ -47,9 +46,6 @@ export async function createPackagesRegistry(
4746 path . join ( absoluteDir , "package.json" )
4847 ) ;
4948
50- /** Validate mandatory fields for all packages */
51- validateManifestMandatoryFields ( manifest , rootRelativeDir ) ;
52-
5349 return {
5450 manifest,
5551 rootRelativeDir,
You can’t perform that action at this time.
0 commit comments