Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
chore: CDMD-2417 replace node-glob with fast-glob (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzpab authored Jan 25, 2024
1 parent 58bf658 commit 8f6a161
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 155 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intuita",
"version": "0.7.1",
"version": "0.7.2",
"description": "A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)",
"type": "module",
"exports": null,
Expand Down Expand Up @@ -39,7 +39,7 @@
"axios": "^1.4.0",
"cosmiconfig": "^8.3.6",
"form-data": "^4.0.0",
"glob": "10.3.10",
"fast-glob": "3.3.2",
"jscodeshift": "^0.14.0",
"mdast-util-from-markdown": "^2.0.0",
"mdast-util-mdx": "^3.0.0",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"packageManager": "[email protected]",
"scripts": {
"build": "esbuild ./src/index.ts --define:__INTUITA_CLI_VERSION__=\\\"0.7.1\\\" --bundle --platform=node --target=node16 --minify --format=cjs --legal-comments=inline --outfile=./dist/index.cjs",
"build": "esbuild ./src/index.ts --define:__INTUITA_CLI_VERSION__=\\\"0.7.2\\\" --bundle --platform=node --target=node16 --minify --format=cjs --legal-comments=inline --outfile=./dist/index.cjs",
"lint:eslint": "eslint src --fix --ext ts",
"lint:prettier": "prettier --write .",
"package": "pkg --compress GZip .",
Expand All @@ -102,4 +102,4 @@
"publishConfig": {
"access": "public"
}
}
}
130 changes: 14 additions & 116 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/handleListCliCommand.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isNeitherNullNorUndefined } from '@intuita-inc/utilities';
import * as fs from 'fs';
import { glob } from 'glob';
import { glob } from 'fast-glob';
import { mkdir, readFile } from 'node:fs/promises';
import { homedir } from 'node:os';
import { join } from 'node:path';
Expand All @@ -16,7 +16,7 @@ export const handleListNamesCommand = async (printer: PrinterBlueprint) => {
absolute: true,
cwd: intuitaDirectoryPath,
fs,
nodir: true,
onlyFiles: true,
});

const codemodNames = await Promise.allSettled(
Expand Down
Loading

0 comments on commit 8f6a161

Please sign in to comment.