chore: bump glob

This commit is contained in:
cha0s 2024-01-13 01:59:01 -06:00
parent be7d73376e
commit 51abba45c6
10 changed files with 10 additions and 34 deletions

View File

@ -73,7 +73,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-webpack-plugin": "^4.0.1",
"glob": "^7.2.0",
"glob": "^10.3.10",
"globals": "^13.23.0",
"js-yaml": "4.1.0",
"jsonparse": "^1.3.1",

View File

@ -2,7 +2,7 @@ import {spawn} from 'child_process';
import {join, normalize} from 'path';
import {Argument} from 'commander';
import glob from 'glob';
import {glob} from 'glob';
import flatten from 'lodash.flatten';
import rimraf from 'rimraf';
@ -127,12 +127,7 @@ export default (program, flecks) => {
args: [],
action: async () => {
const promises = [];
const packages = await new Promise((r, e) => {
glob(
join('packages', '*'),
(error, result) => (error ? e(error) : r(result)),
);
});
const packages = await glob(join('packages', '*'));
if (0 === packages.length) {
packages.push('.');
}

View File

@ -14,6 +14,7 @@ defaultOptions.breakLength = 160;
defaultOptions.compact = 6;
defaultOptions.sorted = true;
export {glob} from 'glob';
export {dump as dumpYml, load as loadYml} from 'js-yaml';
export {

View File

@ -29,7 +29,6 @@
],
"dependencies": {
"@flecks/core": "^2.0.3",
"glob": "^7.2.0",
"minimatch": "^5.0.1",
"validate-npm-package-name": "^3.0.0"
},

View File

@ -1,7 +1,7 @@
import {createReadStream, createWriteStream} from 'fs';
import {mkdir, stat} from 'fs/promises';
import glob from 'glob';
import {glob} from '@flecks/core/server';
import minimatch from 'minimatch';
import {dirname, join} from 'path';
@ -24,13 +24,7 @@ export default class FileTree {
}
static async loadFrom(cwd) {
const paths = await new Promise((r, e) => {
glob(
'**/*',
{cwd, dot: true},
(error, paths) => (error ? e(error) : r(paths)),
);
});
const paths = await glob('**/*', {cwd, dot: true});
return new FileTree(
await paths
.reduce(

View File

@ -36,7 +36,6 @@
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"comment-parser": "^1.3.0",
"glob": "^7.2.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",

View File

@ -19,9 +19,8 @@ import {
isThisExpression,
isVariableDeclaration,
} from '@babel/types';
import {require as R} from '@flecks/core/server';
import {glob, require as R} from '@flecks/core/server';
import {parse as parseComment} from 'comment-parser';
import glob from 'glob';
class ParserState {
@ -293,14 +292,7 @@ export const parseFile = async (filename, resolved, state) => {
traverse(ast, FlecksTodos(state, resolved));
};
const fleckSources = async (path) => (
new Promise((r, e) => {
glob(
join(path, 'src', '**', '*.js'),
(error, result) => (error ? e(error) : r(result)),
);
})
);
const fleckSources = async (path) => glob(join(path, 'src', '**', '*.js'));
export const parseFleckRoot = async (root, state) => {
const resolved = dirname(R.resolve(join(root, 'package.json')));

View File

@ -33,7 +33,6 @@
"chokidar": "^3.5.3",
"clear-module": "^4.1.2",
"debug": "^4.3.3",
"glob": "^7.2.0",
"mocha": "^8.3.2"
},
"devDependencies": {

View File

@ -2,13 +2,11 @@ import {stat, unlink} from 'fs/promises';
import {join} from 'path';
import {D} from '@flecks/core';
import {commands as coreCommands, glob} from '@flecks/core/server';
import chokidar from 'chokidar';
import clearModule from 'clear-module';
import glob from 'glob';
import Mocha from 'mocha';
import {commands as coreCommands} from '@flecks/core/server';
const debug = D('@flecks/core.commands');
const {
@ -30,7 +28,7 @@ export default (program, flecks) => {
} = opts;
const {build} = coreCommands(program, flecks);
const child = build.action(undefined, opts);
const testPaths = glob.sync(join(FLECKS_CORE_ROOT, 'test/*.js'));
const testPaths = await glob(join(FLECKS_CORE_ROOT, 'test/*.js'));
if (0 === testPaths.length) {
// eslint-disable-next-line no-console
console.log('No fleck tests found.');

View File

@ -55,7 +55,6 @@
"compression": "^1.7.4",
"css-loader": "^6.8.1",
"express": "^4.17.1",
"glob": "^7.2.0",
"html-loader": "^4.2.0",
"html-webpack-plugin": "^5.5.3",
"http-proxy": "^1.17.0",