Share fast-glob module between core and CLI (#13725)
This commit is contained in:
1 parent
6623d7c736
commit
930cf29d15
3 files changed
+4
-1
No files matched your search
@@ -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 */
|
||||
|
||||
|
||||
@@ -8,4 +8,5 @@ export const {
|
||||
normalizeOptions,
|
||||
getSupportInfoWithoutPlugins,
|
||||
vnopts,
|
||||
fastGlob,
|
||||
} = sharedWithCli;
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user