MCPcopy Create free account
hub / github.com/chakra-ui/panda / glob

Function glob

packages/node/src/node-runtime.ts:34–43  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

32 return fsExtra.readFileSync(filePath, 'utf8')
33 },
34 glob(opts) {
35 if (!opts.include) return []
36
37 const ignore = opts.exclude ?? []
38 if (!ignore.length) {
39 ignore.push('**/*.d.ts')
40 }
41
42 return glob.sync(opts.include, { cwd: opts.cwd, ignore, absolute: true })
43 },
44 writeFile: fsExtra.writeFile,
45 writeFileSync: fsExtra.writeFileSync,
46 readDirSync: fsExtra.readdirSync,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected