Skip to content

Update dependency yargs to v18 #5704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 157 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"solidity-coverage": "^0.8.14",
"solidity-docgen": "^0.6.0-beta.29",
"undici": "^7.4.0",
"yargs": "^17.0.0"
"yargs": "^18.0.0"
},
"lint-staged": {
"*.{js,ts}": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/compare-layout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const { getStorageUpgradeReport } = require('@openzeppelin/upgrades-core/dist/storage');

const { ref, head } = require('yargs').argv;
const { ref, head } = require('yargs/yargs')().argv;

const oldLayout = JSON.parse(fs.readFileSync(ref));
const newLayout = JSON.parse(fs.readFileSync(head));
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/compareGasReports.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs');
const chalk = require('chalk');
const { argv } = require('yargs')
const { argv } = require('yargs/yargs')()
.env()
.options({
style: {
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/extract-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const { findAll, astDereferencer, srcDecoder } = require('solidity-ast/utils');
const { extractStorageLayout } = require('@openzeppelin/upgrades-core/dist/storage/extract');

const { _ } = require('yargs').argv;
const { _ } = require('yargs/yargs')().argv;

const skipPath = ['contracts/mocks/', 'contracts-exposed/'];
const skipKind = ['interface', 'library'];
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/inheritance-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const graphlib = require('graphlib');
const match = require('micromatch');
const { findAll } = require('solidity-ast/utils');
const { _: artifacts } = require('yargs').argv;
const { _: artifacts } = require('yargs/yargs')().argv;

// files to skip
const skipPatterns = ['contracts-exposed/**', 'contracts/mocks/**'];
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/pragma-consistency.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const semver = require('semver');
const match = require('micromatch');
const { findAll } = require('solidity-ast/utils');
const { _: artifacts } = require('yargs').argv;
const { _: artifacts } = require('yargs/yargs')().argv;

// files to skip
const skipPatterns = ['contracts-exposed/**', 'contracts/mocks/WithInit.sol'];
Expand Down
Loading