Share fast-glob module between core and CLI (#13725)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-10-26 10:39:40 +08:00
1 parent 6623d7c736
commit 930cf29d15
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import path from "node:path";
import fastGlob from "fast-glob";
import { statSafe } from "./utils.js";
import { fastGlob } from "./prettier-internal.js";
/** @typedef {import('./context').Context} Context */
+1
View File
@@ -8,4 +8,5 @@ export const {
normalizeOptions,
getSupportInfoWithoutPlugins,
vnopts,
fastGlob,
} = sharedWithCli;
+2
View File
@@ -1,4 +1,5 @@
import vnopts from "vnopts";
import fastGlob from "fast-glob";
import core from "./main/core.js";
import { getSupportInfo as getSupportInfoWithoutPlugins } from "./main/support.js";
import getFileInfoWithoutPlugins from "./common/get-file-info.js";
@@ -81,6 +82,7 @@ const sharedWithCli = {
normalizeOptions,
getSupportInfoWithoutPlugins,
vnopts,
fastGlob,
utils: {
arrayify,
isNonEmptyArray,