Skip to content

Commit

Permalink
chore(globby): upgrade to v14 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffchew authored Nov 13, 2023
1 parent 9026ddb commit 81c4d9b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"commander": "^11.1.0",
"eslint-config-carbon": "^3.10.0",
"gitignore-to-glob": "^0.3.0",
"globby": "^11.1.0",
"globby": "^14.0.0",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
"prettier": "^2.8.8",
Expand Down
47 changes: 45 additions & 2 deletions pnpm-lock.yaml

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

6 changes: 4 additions & 2 deletions tasks/check-license.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const fs = require('fs');
const { promisify } = require('util');
const { program } = require('commander');
const gitignoreToGlob = require('gitignore-to-glob');
const globby = require('globby');
const path = require('path');
const reLicense = require('./license-text.cjs');

Expand Down Expand Up @@ -42,7 +41,7 @@ program.parse();
/**
* Stores the arguments
*
* @type {OptionValues}
* @type {{}}
*/
const options = program.opts();

Expand All @@ -58,7 +57,10 @@ const options = program.opts();
*/
const check = async (paths, options) => {
let checkPaths = [];

if (options.checkAllFiles) {
const { globby } = await import ('globby');

const gitIgnorePath = await globby(
path.resolve(__dirname, '../.gitignore'),
{
Expand Down

0 comments on commit 81c4d9b

Please sign in to comment.