"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.readDepNameCompletions = void 0;
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 read_project_manifest_1.default(dir !== null && dir !== void 0 ? dir : process.cwd());
    return Object.keys(manifest_utils_1.getAllDependenciesFromManifest(manifest)).map((name) => ({ name }));
}
exports.readDepNameCompletions = readDepNameCompletions;
//# sourceMappingURL=readDepNameCompletions.js.map