MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / get_external_deps_from_pkg

Function get_external_deps_from_pkg

build_shared.ts:45–48  ·  view source on GitHub ↗
(pkg_filename: string)

Source from the content-addressed store, hash-verified

43]
44
45export function get_external_deps_from_pkg(pkg_filename: string): string[] {
46 let pkg = JSON.parse(fs.readFileSync(pkg_filename) as any) as Package_Json
47 return [...DEFAULT_EXTERNAL_DEPS, ...Object.keys({...pkg.peerDependencies, ...pkg.dependencies})]
48}
49
50export function get_is_dev_from_args(): boolean {
51 return process.argv.includes('--watch')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…