UNPKG

@pnpm/cli-utils

Version:
10 lines 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readDepNameCompletions = readDepNameCompletions; const manifest_utils_1 = require("@pnpm/manifest-utils"); const read_project_manifest_1 = require("@pnpm/read-project-manifest"); async function readDepNameCompletions(dir) { const { manifest } = await (0, read_project_manifest_1.readProjectManifest)(dir ?? process.cwd()); return Object.keys((0, manifest_utils_1.getAllDependenciesFromManifest)(manifest)).map((name) => ({ name })); } //# sourceMappingURL=readDepNameCompletions.js.map