@@ -11,9 +11,9 @@ import * as path from 'path';
1111import * as semver from 'semver' ;
1212
1313import {
14+ IPackageJson ,
1415 JsonFile ,
15- FileConstants ,
16- IPackageJsonWithVersion
16+ FileConstants
1717} from '@microsoft/node-core-library' ;
1818
1919import {
@@ -90,7 +90,7 @@ export class PublishUtilities {
9090 if ( allChanges . hasOwnProperty ( packageName ) ) {
9191 const change : IChangeInfo = allChanges [ packageName ] ;
9292 const project : RushConfigurationProject = allPackages . get ( packageName ) ! ;
93- const pkg : IPackageJsonWithVersion = project . packageJson ;
93+ const pkg : IPackageJson = project . packageJson ;
9494 const deps : string [ ] = project . downstreamDependencyProjects ;
9595
9696 // Write the new version expected for the change.
@@ -142,11 +142,11 @@ export class PublishUtilities {
142142 shouldCommit : boolean ,
143143 prereleaseToken ?: PrereleaseToken ,
144144 projectsToExclude ?: Set < string >
145- ) : Map < string , IPackageJsonWithVersion > {
146- const updatedPackages : Map < string , IPackageJsonWithVersion > = new Map < string , IPackageJsonWithVersion > ( ) ;
145+ ) : Map < string , IPackageJson > {
146+ const updatedPackages : Map < string , IPackageJson > = new Map < string , IPackageJson > ( ) ;
147147
148148 Object . keys ( allChanges ) . forEach ( packageName => {
149- const updatedPackage : IPackageJsonWithVersion = PublishUtilities . _writePackageChanges (
149+ const updatedPackage : IPackageJson = PublishUtilities . _writePackageChanges (
150150 allChanges [ packageName ] ,
151151 allChanges ,
152152 allPackages ,
@@ -288,10 +288,10 @@ export class PublishUtilities {
288288 shouldCommit : boolean ,
289289 prereleaseToken ?: PrereleaseToken ,
290290 projectsToExclude ?: Set < string >
291- ) : IPackageJsonWithVersion {
291+ ) : IPackageJson {
292292
293293 const project : RushConfigurationProject = allPackages . get ( change . packageName ) ! ;
294- const pkg : IPackageJsonWithVersion = project . packageJson ;
294+ const pkg : IPackageJson = project . packageJson ;
295295
296296 const shouldSkipVersionBump : boolean = ! project . shouldPublish ||
297297 ! ! projectsToExclude && projectsToExclude . has ( change . packageName ) ;
@@ -453,7 +453,7 @@ export class PublishUtilities {
453453 return false ;
454454 }
455455
456- const pkg : IPackageJsonWithVersion = project . packageJson ;
456+ const pkg : IPackageJson = project . packageJson ;
457457 let currentChange : IChangeInfo ;
458458
459459 // If the given change does not have a changeType, derive it from the "type" string.
@@ -542,7 +542,7 @@ export class PublishUtilities {
542542 if ( ( change . changeType ! >= ChangeType . hotfix ) ||
543543 ( prereleaseToken && prereleaseToken . hasValue ) ) {
544544 for ( const depName of downstreamNames ) {
545- const pkg : IPackageJsonWithVersion = allPackages . get ( depName ) ! . packageJson ;
545+ const pkg : IPackageJson = allPackages . get ( depName ) ! . packageJson ;
546546
547547 PublishUtilities . _updateDownstreamDependency (
548548 pkg . name ,
0 commit comments