Update dependency yargs to v18 (#5704)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
renovate[bot]
2025-06-18 22:01:19 +02:00
committed by GitHub
parent 6ccfb7b891
commit 51da8ae490
6 changed files with 177 additions and 28 deletions

14
scripts/checks/compare-layout.js Normal file → Executable file
View File

@ -1,10 +1,18 @@
#!/usr/bin/env node
const fs = require('fs');
const { getStorageUpgradeReport } = require('@openzeppelin/upgrades-core/dist/storage');
const { ref, head } = require('yargs').argv;
const { hideBin } = require('yargs/helpers');
const { argv } = require('yargs/yargs')(hideBin(process.argv))
.env('')
.options({
ref: { type: 'string', required: true },
head: { type: 'string', required: true },
});
const oldLayout = JSON.parse(fs.readFileSync(ref));
const newLayout = JSON.parse(fs.readFileSync(head));
const oldLayout = JSON.parse(fs.readFileSync(argv.ref));
const newLayout = JSON.parse(fs.readFileSync(argv.head));
for (const name in oldLayout) {
if (name in newLayout) {