MCPcopy Create free account
hub / github.com/arktypeio/arktype / setRoot

Function setRoot

ark/aot/unplugin.ts:344–347  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

342 }
343 // ark.json and the packages that opt in are found from the bundler's root unless cwd is set
344 const setRoot = (root: string) => {
345 if (given?.cwd !== undefined || root === (set.cwd ?? process.cwd())) return
346 applySettings({ ...given, cwd: root })
347 }
348 // Vite's, which restarts to read new settings into its config
349 let server: { restart(): Promise<void> } | undefined
350 // whether settings changed since the bundler cached a module it transformed

Callers 2

applyRspackFunction · 0.85
unplugin.tsFile · 0.85

Calls 1

applySettingsFunction · 0.85

Tested by

no test coverage detected