Lock File Update
This takes the lock file from `trunk` and runs an install on it. This should remove any accidental dependency changes caused by the PR.
This commit is contained in:
parent
fa011a431b
commit
674cd4051a
|
@ -15,6 +15,9 @@ const packageFileCache = {};
|
|||
* @return {Object} The package file.
|
||||
*/
|
||||
function loadPackageFile( packagePath ) {
|
||||
// Resolve the absolute path for consistency when loading and updating.
|
||||
packagePath = path.resolve( __dirname, packagePath );
|
||||
|
||||
if ( packageFileCache[ packagePath ] ) {
|
||||
return packageFileCache[ packagePath ];
|
||||
}
|
||||
|
@ -34,6 +37,9 @@ function loadPackageFile( packagePath ) {
|
|||
* @param {Object} packageFile The new package file contents.
|
||||
*/
|
||||
function updatePackageFile( packagePath, packageFile ) {
|
||||
// Resolve the absolute path for consistency when loading and updating.
|
||||
packagePath = path.resolve( __dirname, packagePath );
|
||||
|
||||
packageFileCache[ packagePath ] = packageFile;
|
||||
|
||||
fs.writeFileSync(
|
||||
|
@ -155,8 +161,6 @@ function getLinkedPackages( packagePath, lockPackage ) {
|
|||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Load the linked package file and mark it as a dependency.
|
||||
linkedPackages[ linkedPackagePath ] =
|
||||
loadPackageFile( linkedPackagePath );
|
||||
|
|
14043
pnpm-lock.yaml
14043
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue