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:
Christopher Allford 2023-11-29 11:18:42 -08:00
parent fa011a431b
commit 674cd4051a
2 changed files with 11697 additions and 2354 deletions

View File

@ -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 );

File diff suppressed because it is too large Load Diff