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:
14
scripts/checks/compare-layout.js
Normal file → Executable file
14
scripts/checks/compare-layout.js
Normal file → Executable 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) {
|
||||
|
||||
Reference in New Issue
Block a user