MCPcopy Create free account
hub / github.com/vercel/vercel / getDependencies

Function getDependencies

utils/build.mjs:8–12  ·  view source on GitHub ↗
(cwd = process.cwd())

Source from the content-addressed store, hash-verified

6import { fileURLToPath } from 'node:url';
7
8export function getDependencies(cwd = process.cwd()) {
9 const pkgPath = path.join(cwd, 'package.json');
10 const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
11 return Object.keys(pkg.dependencies || {});
12}
13
14function parseTsConfig(tsconfigPath) {
15 const parsedConfig = ts.readConfigFile(tsconfigPath, ts.sys.readFile);

Callers 2

build.mjsFile · 0.90
build.mjsFile · 0.90

Calls 4

cwdMethod · 0.80
joinMethod · 0.45
parseMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected