@teambit/pnpm 1.0.481 → 1.0.482

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { type ProjectManifest } from '@pnpm/types';
2
+ import { type LockfileFileV9 } from '@pnpm/lockfile.types';
3
+ import { DependenciesGraph } from '@teambit/legacy/dist/scope/models/dependencies-graph';
4
+ import { type CalcDepsGraphOptions } from '@teambit/dependency-resolver';
5
+ export declare function convertLockfileToGraph(lockfile: LockfileFileV9, { pkgName, componentRootDir, componentRelativeDir, componentIdByPkgName }: Omit<CalcDepsGraphOptions, 'rootDir'>): DependenciesGraph;
6
+ export declare function convertGraphToLockfile(graph: DependenciesGraph, manifests: Record<string, ProjectManifest>, rootDir: string): LockfileFileV9;
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.convertGraphToLockfile = convertGraphToLockfile;
7
+ exports.convertLockfileToGraph = convertLockfileToGraph;
8
+ function dp() {
9
+ const data = _interopRequireWildcard(require("@pnpm/dependency-path"));
10
+ dp = function () {
11
+ return data;
12
+ };
13
+ return data;
14
+ }
15
+ function _lodash() {
16
+ const data = require("lodash");
17
+ _lodash = function () {
18
+ return data;
19
+ };
20
+ return data;
21
+ }
22
+ function _dependenciesGraph() {
23
+ const data = require("@teambit/legacy/dist/scope/models/dependencies-graph");
24
+ _dependenciesGraph = function () {
25
+ return data;
26
+ };
27
+ return data;
28
+ }
29
+ function _lockfile() {
30
+ const data = require("@pnpm/lockfile.fs");
31
+ _lockfile = function () {
32
+ return data;
33
+ };
34
+ return data;
35
+ }
36
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
37
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
38
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
39
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
40
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
41
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
42
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
43
+ function convertLockfileToGraphFromCapsule(lockfile, {
44
+ componentRelativeDir,
45
+ componentIdByPkgName
46
+ }) {
47
+ const componentImporter = lockfile.importers[componentRelativeDir];
48
+ const directDependencies = [];
49
+ for (const depType of ['dependencies', 'optionalDependencies', 'devDependencies']) {
50
+ if (componentImporter[depType] != null) {
51
+ const lifecycle = depType === 'devDependencies' ? 'dev' : 'runtime';
52
+ const optional = depType === 'optionalDependencies';
53
+ directDependencies.push(...importerDepsToNeighbours(componentImporter[depType], lifecycle, optional));
54
+ }
55
+ }
56
+ return _convertLockfileToGraph(lockfile, {
57
+ componentIdByPkgName,
58
+ directDependencies
59
+ });
60
+ }
61
+ function importerDepsToNeighbours(importerDependencies, lifecycle, optional) {
62
+ const neighbours = [];
63
+ for (const [name, {
64
+ version,
65
+ specifier
66
+ }] of Object.entries(importerDependencies)) {
67
+ const id = dp().refToRelative(version, name);
68
+ neighbours.push({
69
+ name,
70
+ specifier,
71
+ id,
72
+ lifecycle,
73
+ optional
74
+ });
75
+ }
76
+ return neighbours;
77
+ }
78
+ function convertLockfileToGraph(lockfile, {
79
+ pkgName,
80
+ componentRootDir,
81
+ componentRelativeDir,
82
+ componentIdByPkgName
83
+ }) {
84
+ if (componentRootDir == null || pkgName == null) {
85
+ return convertLockfileToGraphFromCapsule(lockfile, {
86
+ componentRelativeDir,
87
+ componentIdByPkgName
88
+ });
89
+ }
90
+ const componentDevImporter = lockfile.importers[componentRelativeDir];
91
+ const directDependencies = [];
92
+ if (componentDevImporter.devDependencies != null) {
93
+ directDependencies.push(...importerDepsToNeighbours(componentDevImporter.devDependencies, 'dev', false));
94
+ }
95
+ const lockedPkg = lockfile.snapshots[`${pkgName}@${lockfile.importers[componentRootDir].dependencies[pkgName].version}`];
96
+ for (const depType of ['dependencies', 'optionalDependencies']) {
97
+ const optional = depType === 'optionalDependencies';
98
+ for (const [name, version] of Object.entries(lockedPkg[depType] ?? {})) {
99
+ const id = dp().refToRelative(version, name);
100
+ directDependencies.push({
101
+ name,
102
+ specifier: componentDevImporter[depType]?.[name]?.specifier ?? '*',
103
+ id,
104
+ lifecycle: 'runtime',
105
+ optional
106
+ });
107
+ }
108
+ }
109
+ return _convertLockfileToGraph(lockfile, {
110
+ componentIdByPkgName,
111
+ directDependencies
112
+ });
113
+ }
114
+ function _convertLockfileToGraph(lockfile, {
115
+ componentIdByPkgName,
116
+ directDependencies
117
+ }) {
118
+ lockfile = replaceFileVersionsWithPendingVersions(lockfile);
119
+ return new (_dependenciesGraph().DependenciesGraph)({
120
+ edges: buildEdges(lockfile, {
121
+ directDependencies
122
+ }),
123
+ packages: buildPackages(lockfile, {
124
+ componentIdByPkgName
125
+ })
126
+ });
127
+ }
128
+ function buildEdges(lockfile, {
129
+ directDependencies
130
+ }) {
131
+ const edges = [];
132
+ for (const [depPath, snapshot] of Object.entries(lockfile.snapshots ?? {})) {
133
+ const neighbours = extractDependenciesFromSnapshot(snapshot);
134
+ const edge = {
135
+ id: depPath,
136
+ neighbours
137
+ };
138
+ const pkgId = dp().removeSuffix(depPath);
139
+ if (pkgId !== depPath) {
140
+ edge.attr = {
141
+ pkgId
142
+ };
143
+ }
144
+ if (snapshot.transitivePeerDependencies) {
145
+ edge.attr = _objectSpread(_objectSpread({}, edge.attr), {}, {
146
+ transitivePeerDependencies: snapshot.transitivePeerDependencies
147
+ });
148
+ }
149
+ if (edge.neighbours.length > 0 || edge.id !== pkgId) {
150
+ edges.push(edge);
151
+ }
152
+ }
153
+ edges.push({
154
+ id: _dependenciesGraph().DependenciesGraph.ROOT_EDGE_ID,
155
+ neighbours: replaceFileVersionsWithPendingVersions(directDependencies)
156
+ });
157
+ return edges;
158
+ }
159
+ function extractDependenciesFromSnapshot(snapshot) {
160
+ const dependencies = [];
161
+ for (const {
162
+ depTypeField,
163
+ optional
164
+ } of [{
165
+ depTypeField: 'dependencies',
166
+ optional: false
167
+ }, {
168
+ depTypeField: 'optionalDependencies',
169
+ optional: true
170
+ }]) {
171
+ for (const [name, ref] of Object.entries(snapshot[depTypeField] ?? {})) {
172
+ const subDepPath = dp().refToRelative(ref, name);
173
+ if (subDepPath != null) {
174
+ dependencies.push({
175
+ id: subDepPath,
176
+ optional
177
+ });
178
+ }
179
+ }
180
+ }
181
+ return dependencies;
182
+ }
183
+ function buildPackages(lockfile, {
184
+ componentIdByPkgName
185
+ }) {
186
+ const packages = new Map();
187
+ for (const [pkgId, pkg] of Object.entries(lockfile.packages ?? {})) {
188
+ const graphPkg = (0, _lodash().pick)(pkg, ['bundledDependencies', 'cpu', 'deprecated', 'engines', 'hasBin', 'libc', 'name', 'os', 'peerDependencies', 'peerDependenciesMeta', 'resolution', 'version']);
189
+ if (pkgId.includes('@pending:')) {
190
+ const parsed = dp().parse(pkgId);
191
+ if (parsed.name && componentIdByPkgName.has(parsed.name)) {
192
+ const compId = componentIdByPkgName.get(parsed.name);
193
+ graphPkg.component = {
194
+ name: compId.fullName,
195
+ scope: compId.scope
196
+ };
197
+ }
198
+ }
199
+ packages.set(pkgId, graphPkg);
200
+ }
201
+ return packages;
202
+ }
203
+ function replaceFileVersionsWithPendingVersions(obj) {
204
+ return JSON.parse(JSON.stringify(obj).replaceAll(/file:[^'"(]+/g, 'pending:'));
205
+ }
206
+ function convertGraphToLockfile(graph, manifests, rootDir) {
207
+ const packages = {};
208
+ const snapshots = {};
209
+ const allEdgeIds = new Set(graph.edges.map(({
210
+ id
211
+ }) => id));
212
+ for (const edge of graph.edges) {
213
+ if (edge.id === _dependenciesGraph().DependenciesGraph.ROOT_EDGE_ID) continue;
214
+ const pkgId = edge.attr?.pkgId ?? edge.id;
215
+ snapshots[edge.id] = {};
216
+ packages[pkgId] = {};
217
+ const [optionalDeps, prodDeps] = (0, _lodash().partition)(edge.neighbours, dep => dep.optional);
218
+ if (prodDeps.length) {
219
+ snapshots[edge.id].dependencies = convertToDeps(prodDeps);
220
+ }
221
+ if (optionalDeps.length) {
222
+ snapshots[edge.id].optionalDependencies = convertToDeps(optionalDeps);
223
+ }
224
+ const graphPkg = graph.packages.get(pkgId);
225
+ if (graphPkg != null) {
226
+ Object.assign(packages[pkgId], convertGraphPackageToLockfilePackage(graphPkg));
227
+ }
228
+ }
229
+ const lockfile = {
230
+ lockfileVersion: '9.0',
231
+ packages,
232
+ snapshots,
233
+ importers: {}
234
+ };
235
+ for (const [projectDir, manifest] of Object.entries(manifests)) {
236
+ const projectId = (0, _lockfile().getLockfileImporterId)(rootDir, projectDir);
237
+ lockfile.importers[projectId] = {
238
+ dependencies: {},
239
+ devDependencies: {},
240
+ optionalDependencies: {}
241
+ };
242
+ const rootEdge = graph.findRootEdge();
243
+ if (rootEdge) {
244
+ for (const depType of ['dependencies', 'devDependencies', 'optionalDependencies']) {
245
+ for (const [name, specifier] of Object.entries(manifest[depType] ?? {})) {
246
+ const edgeId = rootEdge.neighbours.find(directDep => directDep.name === name && directDep.specifier === specifier)?.id;
247
+ if (edgeId) {
248
+ const parsed = dp().parse(edgeId);
249
+ const ref = depPathToRef(parsed);
250
+ lockfile.importers[projectId][depType][name] = {
251
+ version: ref,
252
+ specifier
253
+ };
254
+ }
255
+ }
256
+ }
257
+ }
258
+ }
259
+ return lockfile;
260
+ function convertToDeps(neighbours) {
261
+ const deps = {};
262
+ for (const {
263
+ id
264
+ } of neighbours) {
265
+ const parsed = dp().parse(id);
266
+ deps[parsed.name] = depPathToRef(parsed);
267
+ if (!allEdgeIds.has(id)) {
268
+ snapshots[id] = {};
269
+ packages[id] = convertGraphPackageToLockfilePackage(graph.packages.get(id));
270
+ }
271
+ }
272
+ return deps;
273
+ }
274
+ }
275
+ function depPathToRef(depPath) {
276
+ return `${depPath.version}${depPath.patchHash ?? ''}${depPath.peersSuffix ?? ''}`;
277
+ }
278
+ function convertGraphPackageToLockfilePackage(pkgAttr) {
279
+ return (0, _lodash().pick)(pkgAttr, ['bundledDependencies', 'cpu', 'deprecated', 'engines', 'hasBin', 'libc', 'name', 'os', 'peerDependencies', 'peerDependenciesMeta', 'resolution', 'version']);
280
+ }
281
+
282
+ //# sourceMappingURL=lockfile-deps-graph-converter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["dp","data","_interopRequireWildcard","require","_lodash","_dependenciesGraph","_lockfile","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","convertLockfileToGraphFromCapsule","lockfile","componentRelativeDir","componentIdByPkgName","componentImporter","importers","directDependencies","depType","lifecycle","optional","importerDepsToNeighbours","_convertLockfileToGraph","importerDependencies","neighbours","name","version","specifier","entries","id","refToRelative","convertLockfileToGraph","pkgName","componentRootDir","componentDevImporter","devDependencies","lockedPkg","snapshots","dependencies","replaceFileVersionsWithPendingVersions","DependenciesGraph","edges","buildEdges","packages","buildPackages","depPath","snapshot","extractDependenciesFromSnapshot","edge","pkgId","removeSuffix","attr","transitivePeerDependencies","ROOT_EDGE_ID","depTypeField","ref","subDepPath","Map","pkg","graphPkg","pick","includes","parsed","parse","compId","component","fullName","scope","obj","JSON","stringify","replaceAll","convertGraphToLockfile","graph","manifests","rootDir","allEdgeIds","Set","map","optionalDeps","prodDeps","partition","dep","convertToDeps","optionalDependencies","assign","convertGraphPackageToLockfilePackage","lockfileVersion","projectDir","manifest","projectId","getLockfileImporterId","rootEdge","findRootEdge","edgeId","find","directDep","depPathToRef","deps","patchHash","peersSuffix","pkgAttr"],"sources":["lockfile-deps-graph-converter.ts"],"sourcesContent":["import { type ProjectManifest } from '@pnpm/types';\nimport { type LockfileFileV9, type InlineSpecifiersResolvedDependencies } from '@pnpm/lockfile.types';\nimport * as dp from '@pnpm/dependency-path';\nimport { pick, partition } from 'lodash';\nimport {\n DependenciesGraph,\n type PackagesMap,\n type PackageAttributes,\n type DependencyEdge,\n type DependencyNeighbour,\n} from '@teambit/legacy/dist/scope/models/dependencies-graph';\nimport { type CalcDepsGraphOptions, type ComponentIdByPkgName } from '@teambit/dependency-resolver';\nimport { getLockfileImporterId } from '@pnpm/lockfile.fs';\n\nfunction convertLockfileToGraphFromCapsule(\n lockfile: LockfileFileV9,\n {\n componentRelativeDir,\n componentIdByPkgName,\n }: Pick<CalcDepsGraphOptions, 'componentRelativeDir' | 'componentIdByPkgName'>\n): DependenciesGraph {\n const componentImporter = lockfile.importers![componentRelativeDir];\n const directDependencies: DependencyNeighbour[] = [];\n for (const depType of ['dependencies' as const, 'optionalDependencies' as const, 'devDependencies' as const]) {\n if (componentImporter[depType] != null) {\n const lifecycle = depType === 'devDependencies' ? 'dev' : 'runtime';\n const optional = depType === 'optionalDependencies';\n directDependencies.push(...importerDepsToNeighbours(componentImporter[depType]!, lifecycle, optional));\n }\n }\n return _convertLockfileToGraph(lockfile, { componentIdByPkgName, directDependencies });\n}\n\nfunction importerDepsToNeighbours(\n importerDependencies: InlineSpecifiersResolvedDependencies,\n lifecycle: 'dev' | 'runtime',\n optional: boolean\n): DependencyNeighbour[] {\n const neighbours: DependencyNeighbour[] = [];\n for (const [name, { version, specifier }] of Object.entries(importerDependencies) as any) {\n const id = dp.refToRelative(version, name)!;\n neighbours.push({ name, specifier, id, lifecycle, optional });\n }\n return neighbours;\n}\n\nexport function convertLockfileToGraph(\n lockfile: LockfileFileV9,\n { pkgName, componentRootDir, componentRelativeDir, componentIdByPkgName }: Omit<CalcDepsGraphOptions, 'rootDir'>\n): DependenciesGraph {\n if (componentRootDir == null || pkgName == null) {\n return convertLockfileToGraphFromCapsule(lockfile, { componentRelativeDir, componentIdByPkgName });\n }\n const componentDevImporter = lockfile.importers![componentRelativeDir];\n const directDependencies: DependencyNeighbour[] = [];\n if (componentDevImporter.devDependencies != null) {\n directDependencies.push(...importerDepsToNeighbours(componentDevImporter.devDependencies, 'dev', false));\n }\n const lockedPkg =\n lockfile.snapshots![`${pkgName}@${lockfile.importers![componentRootDir].dependencies![pkgName].version}`];\n for (const depType of ['dependencies' as const, 'optionalDependencies' as const]) {\n const optional = depType === 'optionalDependencies';\n for (const [name, version] of Object.entries(lockedPkg[depType] ?? {})) {\n const id = dp.refToRelative(version, name)!;\n directDependencies.push({\n name,\n specifier: componentDevImporter[depType]?.[name]?.specifier ?? '*',\n id,\n lifecycle: 'runtime',\n optional,\n });\n }\n }\n return _convertLockfileToGraph(lockfile, { componentIdByPkgName, directDependencies });\n}\n\nfunction _convertLockfileToGraph(\n lockfile: LockfileFileV9,\n {\n componentIdByPkgName,\n directDependencies,\n }: {\n componentIdByPkgName: ComponentIdByPkgName;\n directDependencies: DependencyNeighbour[];\n }\n): DependenciesGraph {\n lockfile = replaceFileVersionsWithPendingVersions(lockfile);\n return new DependenciesGraph({\n edges: buildEdges(lockfile, { directDependencies }),\n packages: buildPackages(lockfile, { componentIdByPkgName }),\n });\n}\n\nfunction buildEdges(\n lockfile: LockfileFileV9,\n { directDependencies }: { directDependencies: DependencyNeighbour[] }\n): DependencyEdge[] {\n const edges: DependencyEdge[] = [];\n for (const [depPath, snapshot] of Object.entries(lockfile.snapshots ?? {})) {\n const neighbours = extractDependenciesFromSnapshot(snapshot);\n const edge: DependencyEdge = {\n id: depPath,\n neighbours,\n };\n const pkgId = dp.removeSuffix(depPath);\n if (pkgId !== depPath) {\n edge.attr = { pkgId };\n }\n if (snapshot.transitivePeerDependencies) {\n edge.attr = {\n ...edge.attr,\n transitivePeerDependencies: snapshot.transitivePeerDependencies,\n };\n }\n if (edge.neighbours.length > 0 || edge.id !== pkgId) {\n edges.push(edge);\n }\n }\n edges.push({\n id: DependenciesGraph.ROOT_EDGE_ID,\n neighbours: replaceFileVersionsWithPendingVersions(directDependencies),\n });\n return edges;\n}\n\nfunction extractDependenciesFromSnapshot(snapshot: any): DependencyNeighbour[] {\n const dependencies: DependencyNeighbour[] = [];\n\n for (const { depTypeField, optional } of [\n { depTypeField: 'dependencies', optional: false },\n { depTypeField: 'optionalDependencies', optional: true },\n ]) {\n for (const [name, ref] of Object.entries((snapshot[depTypeField] ?? {}) as Record<string, string>)) {\n const subDepPath = dp.refToRelative(ref, name);\n if (subDepPath != null) {\n dependencies.push({ id: subDepPath, optional });\n }\n }\n }\n\n return dependencies;\n}\n\nfunction buildPackages(\n lockfile: LockfileFileV9,\n { componentIdByPkgName }: { componentIdByPkgName: ComponentIdByPkgName }\n): PackagesMap {\n const packages: PackagesMap = new Map();\n for (const [pkgId, pkg] of Object.entries(lockfile.packages ?? {})) {\n const graphPkg = pick(pkg, [\n 'bundledDependencies',\n 'cpu',\n 'deprecated',\n 'engines',\n 'hasBin',\n 'libc',\n 'name',\n 'os',\n 'peerDependencies',\n 'peerDependenciesMeta',\n 'resolution',\n 'version',\n ]) as any;\n if (pkgId.includes('@pending:')) {\n const parsed = dp.parse(pkgId);\n if (parsed.name && componentIdByPkgName.has(parsed.name)) {\n const compId = componentIdByPkgName.get(parsed.name)!;\n graphPkg.component = {\n name: compId.fullName,\n scope: compId.scope,\n };\n }\n }\n packages.set(pkgId, graphPkg);\n }\n return packages;\n}\n\nfunction replaceFileVersionsWithPendingVersions<T>(obj: T): T {\n return JSON.parse(JSON.stringify(obj).replaceAll(/file:[^'\"(]+/g, 'pending:'));\n}\n\nexport function convertGraphToLockfile(\n graph: DependenciesGraph,\n manifests: Record<string, ProjectManifest>,\n rootDir: string\n): LockfileFileV9 {\n const packages = {};\n const snapshots = {};\n const allEdgeIds = new Set(graph.edges.map(({ id }) => id));\n\n for (const edge of graph.edges) {\n if (edge.id === DependenciesGraph.ROOT_EDGE_ID) continue;\n const pkgId = edge.attr?.pkgId ?? edge.id;\n snapshots[edge.id] = {};\n packages[pkgId] = {};\n const [optionalDeps, prodDeps] = partition(edge.neighbours, (dep) => dep.optional);\n if (prodDeps.length) {\n snapshots[edge.id].dependencies = convertToDeps(prodDeps);\n }\n if (optionalDeps.length) {\n snapshots[edge.id].optionalDependencies = convertToDeps(optionalDeps);\n }\n const graphPkg = graph.packages.get(pkgId);\n if (graphPkg != null) {\n Object.assign(packages[pkgId], convertGraphPackageToLockfilePackage(graphPkg));\n }\n }\n const lockfile = {\n lockfileVersion: '9.0',\n packages,\n snapshots,\n importers: {},\n };\n for (const [projectDir, manifest] of Object.entries(manifests)) {\n const projectId = getLockfileImporterId(rootDir, projectDir);\n lockfile.importers![projectId] = {\n dependencies: {},\n devDependencies: {},\n optionalDependencies: {},\n };\n const rootEdge = graph.findRootEdge();\n if (rootEdge) {\n for (const depType of ['dependencies', 'devDependencies', 'optionalDependencies']) {\n for (const [name, specifier] of Object.entries(manifest[depType] ?? {})) {\n const edgeId = rootEdge.neighbours.find(\n (directDep) => directDep.name === name && directDep.specifier === specifier\n )?.id;\n if (edgeId) {\n const parsed = dp.parse(edgeId);\n const ref = depPathToRef(parsed);\n lockfile.importers![projectId][depType][name] = { version: ref, specifier };\n }\n }\n }\n }\n }\n return lockfile;\n\n function convertToDeps(neighbours: DependencyNeighbour[]) {\n const deps = {};\n for (const { id } of neighbours) {\n const parsed = dp.parse(id);\n deps[parsed.name!] = depPathToRef(parsed);\n if (!allEdgeIds.has(id)) {\n snapshots[id] = {};\n packages[id] = convertGraphPackageToLockfilePackage(graph.packages.get(id)!);\n }\n }\n return deps;\n }\n}\n\nfunction depPathToRef(depPath: dp.DependencyPath): string {\n return `${depPath.version}${depPath.patchHash ?? ''}${depPath.peersSuffix ?? ''}`;\n}\n\nfunction convertGraphPackageToLockfilePackage(pkgAttr: PackageAttributes) {\n return pick(pkgAttr, [\n 'bundledDependencies',\n 'cpu',\n 'deprecated',\n 'engines',\n 'hasBin',\n 'libc',\n 'name',\n 'os',\n 'peerDependencies',\n 'peerDependenciesMeta',\n 'resolution',\n 'version',\n ]);\n}\n"],"mappings":";;;;;;;AAEA,SAAAA,GAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,EAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,mBAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,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Z,SAAS,CACV,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+
3
+ function _path() {
4
+ const data = _interopRequireDefault(require("path"));
5
+ _path = function () {
6
+ return data;
7
+ };
8
+ return data;
9
+ }
10
+ function _dependenciesGraph() {
11
+ const data = require("@teambit/legacy/dist/scope/models/dependencies-graph");
12
+ _dependenciesGraph = function () {
13
+ return data;
14
+ };
15
+ return data;
16
+ }
17
+ function _lockfileDepsGraphConverter() {
18
+ const data = require("./lockfile-deps-graph-converter");
19
+ _lockfileDepsGraphConverter = function () {
20
+ return data;
21
+ };
22
+ return data;
23
+ }
24
+ function _chai() {
25
+ const data = require("chai");
26
+ _chai = function () {
27
+ return data;
28
+ };
29
+ return data;
30
+ }
31
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
32
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
35
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
36
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
37
+ describe('convertLockfileToGraph simple case', () => {
38
+ const lockfile = {
39
+ importers: {
40
+ '.': {},
41
+ 'node_modules/.bit_roots/env': {
42
+ dependencies: {
43
+ comp1: {
44
+ version: 'file:comps/comp1',
45
+ specifier: '*'
46
+ }
47
+ }
48
+ },
49
+ 'comps/comp1': {
50
+ dependencies: {
51
+ foo: {
52
+ version: '1.0.0(patch_hash=0000)',
53
+ specifier: '^1.0.0'
54
+ }
55
+ }
56
+ }
57
+ },
58
+ lockfileVersion: '9.0',
59
+ snapshots: {
60
+ 'foo@1.0.0(patch_hash=0000)': {
61
+ dependencies: {
62
+ bar: '1.0.0'
63
+ }
64
+ },
65
+ 'bar@1.0.0': {},
66
+ 'comp1@file:comps/comp1': {
67
+ dependencies: {
68
+ foo: '1.0.0(patch_hash=0000)'
69
+ }
70
+ }
71
+ },
72
+ packages: {
73
+ 'comp1@file:comps/comp1': {
74
+ resolution: {
75
+ directory: 'comps/comp1',
76
+ type: 'directory'
77
+ }
78
+ },
79
+ 'foo@1.0.0': {
80
+ engines: {
81
+ node: '>=8',
82
+ npm: '>=6'
83
+ },
84
+ hasBin: true,
85
+ os: ['darwin'],
86
+ cpu: ['arm64'],
87
+ resolution: {
88
+ integrity: 'sha512-000'
89
+ }
90
+ },
91
+ 'bar@1.0.0': {
92
+ resolution: {
93
+ integrity: 'sha512-111'
94
+ }
95
+ }
96
+ }
97
+ };
98
+ const graph = (0, _lockfileDepsGraphConverter().convertLockfileToGraph)(lockfile, {
99
+ pkgName: 'comp1',
100
+ componentRelativeDir: 'comps/comp1',
101
+ componentRootDir: 'node_modules/.bit_roots/env',
102
+ componentIdByPkgName: new Map()
103
+ });
104
+ const expected = {
105
+ schemaVersion: '1.0',
106
+ edges: [{
107
+ id: 'foo@1.0.0(patch_hash=0000)',
108
+ neighbours: [{
109
+ id: 'bar@1.0.0',
110
+ optional: false
111
+ }],
112
+ attr: {
113
+ pkgId: 'foo@1.0.0'
114
+ }
115
+ }, {
116
+ id: 'comp1@pending:',
117
+ neighbours: [{
118
+ id: 'foo@1.0.0(patch_hash=0000)',
119
+ optional: false
120
+ }]
121
+ }, {
122
+ id: '.',
123
+ neighbours: [{
124
+ id: 'foo@1.0.0(patch_hash=0000)',
125
+ name: 'foo',
126
+ specifier: '^1.0.0',
127
+ lifecycle: 'runtime',
128
+ optional: false
129
+ }]
130
+ }],
131
+ packages: {
132
+ 'foo@1.0.0': {
133
+ engines: {
134
+ node: '>=8',
135
+ npm: '>=6'
136
+ },
137
+ hasBin: true,
138
+ os: ['darwin'],
139
+ cpu: ['arm64'],
140
+ resolution: {
141
+ integrity: 'sha512-000'
142
+ }
143
+ },
144
+ 'bar@1.0.0': {
145
+ resolution: {
146
+ integrity: 'sha512-111'
147
+ }
148
+ },
149
+ 'comp1@pending:': {
150
+ resolution: {
151
+ directory: 'comps/comp1',
152
+ type: 'directory'
153
+ }
154
+ }
155
+ }
156
+ };
157
+ it('should convert the lockfile object to the graph object', () => {
158
+ (0, _chai().expect)(_objectSpread(_objectSpread({}, graph), {}, {
159
+ packages: Object.fromEntries(graph.packages.entries())
160
+ })).to.eql(expected);
161
+ });
162
+ it('should convert the graph object to the lockfile object', () => {
163
+ (0, _chai().expect)((0, _lockfileDepsGraphConverter().convertGraphToLockfile)(new (_dependenciesGraph().DependenciesGraph)(graph), {
164
+ [_path().default.resolve('comps/comp1')]: {
165
+ dependencies: {
166
+ foo: '^1.0.0'
167
+ }
168
+ }
169
+ }, process.cwd())).to.eql({
170
+ importers: {
171
+ 'comps/comp1': {
172
+ dependencies: {
173
+ foo: {
174
+ version: '1.0.0(patch_hash=0000)',
175
+ specifier: '^1.0.0'
176
+ }
177
+ },
178
+ devDependencies: {},
179
+ optionalDependencies: {}
180
+ }
181
+ },
182
+ lockfileVersion: '9.0',
183
+ snapshots: {
184
+ 'foo@1.0.0(patch_hash=0000)': {
185
+ dependencies: {
186
+ bar: '1.0.0'
187
+ }
188
+ },
189
+ 'bar@1.0.0': {},
190
+ 'comp1@pending:': {
191
+ dependencies: {
192
+ foo: '1.0.0(patch_hash=0000)'
193
+ }
194
+ }
195
+ },
196
+ packages: {
197
+ 'comp1@pending:': {
198
+ resolution: {
199
+ directory: 'comps/comp1',
200
+ type: 'directory'
201
+ }
202
+ },
203
+ 'foo@1.0.0': {
204
+ engines: {
205
+ node: '>=8',
206
+ npm: '>=6'
207
+ },
208
+ hasBin: true,
209
+ os: ['darwin'],
210
+ cpu: ['arm64'],
211
+ resolution: {
212
+ integrity: 'sha512-000'
213
+ }
214
+ },
215
+ 'bar@1.0.0': {
216
+ resolution: {
217
+ integrity: 'sha512-111'
218
+ }
219
+ }
220
+ }
221
+ });
222
+ });
223
+ });
224
+
225
+ //# sourceMappingURL=lockfile-deps-graph-converter.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_path","data","_interopRequireDefault","require","_dependenciesGraph","_lockfileDepsGraphConverter","_chai","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","describe","lockfile","importers","dependencies","comp1","version","specifier","foo","lockfileVersion","snapshots","bar","packages","resolution","directory","type","engines","node","npm","hasBin","os","cpu","integrity","graph","convertLockfileToGraph","pkgName","componentRelativeDir","componentRootDir","componentIdByPkgName","Map","expected","schemaVersion","edges","id","neighbours","optional","attr","pkgId","name","lifecycle","it","expect","fromEntries","entries","to","eql","convertGraphToLockfile","DependenciesGraph","path","resolve","process","cwd","devDependencies","optionalDependencies"],"sources":["lockfile-deps-graph-converter.spec.ts"],"sourcesContent":["import path from 'path';\nimport { DependenciesGraph } from '@teambit/legacy/dist/scope/models/dependencies-graph';\nimport { type LockfileFileV9 } from '@pnpm/lockfile.types';\nimport { convertLockfileToGraph, convertGraphToLockfile } from './lockfile-deps-graph-converter';\nimport { expect } from 'chai';\n\ndescribe('convertLockfileToGraph simple case', () => {\n const lockfile: LockfileFileV9 = {\n importers: {\n '.': {},\n 'node_modules/.bit_roots/env': {\n dependencies: {\n comp1: {\n version: 'file:comps/comp1',\n specifier: '*',\n },\n },\n },\n 'comps/comp1': {\n dependencies: {\n foo: {\n version: '1.0.0(patch_hash=0000)',\n specifier: '^1.0.0',\n },\n },\n },\n },\n lockfileVersion: '9.0',\n snapshots: {\n 'foo@1.0.0(patch_hash=0000)': {\n dependencies: {\n bar: '1.0.0',\n },\n },\n 'bar@1.0.0': {},\n 'comp1@file:comps/comp1': {\n dependencies: {\n foo: '1.0.0(patch_hash=0000)',\n },\n },\n },\n packages: {\n 'comp1@file:comps/comp1': {\n resolution: {\n directory: 'comps/comp1',\n type: 'directory',\n },\n },\n 'foo@1.0.0': {\n engines: {\n node: '>=8',\n npm: '>=6',\n },\n hasBin: true,\n os: ['darwin'],\n cpu: ['arm64'],\n resolution: {\n integrity: 'sha512-000',\n },\n },\n 'bar@1.0.0': {\n resolution: {\n integrity: 'sha512-111',\n },\n },\n },\n };\n const graph = convertLockfileToGraph(lockfile, {\n pkgName: 'comp1',\n componentRelativeDir: 'comps/comp1',\n componentRootDir: 'node_modules/.bit_roots/env',\n componentIdByPkgName: new Map(),\n });\n const expected = {\n schemaVersion: '1.0',\n edges: [\n {\n id: 'foo@1.0.0(patch_hash=0000)',\n neighbours: [{ id: 'bar@1.0.0', optional: false }],\n attr: {\n pkgId: 'foo@1.0.0',\n },\n },\n {\n id: 'comp1@pending:',\n neighbours: [\n {\n id: 'foo@1.0.0(patch_hash=0000)',\n optional: false,\n },\n ],\n },\n {\n id: '.',\n neighbours: [\n {\n id: 'foo@1.0.0(patch_hash=0000)',\n name: 'foo',\n specifier: '^1.0.0',\n lifecycle: 'runtime',\n optional: false,\n },\n ],\n },\n ],\n packages: {\n 'foo@1.0.0': {\n engines: {\n node: '>=8',\n npm: '>=6',\n },\n hasBin: true,\n os: ['darwin'],\n cpu: ['arm64'],\n resolution: {\n integrity: 'sha512-000',\n },\n },\n 'bar@1.0.0': {\n resolution: {\n integrity: 'sha512-111',\n },\n },\n 'comp1@pending:': {\n resolution: {\n directory: 'comps/comp1',\n type: 'directory',\n },\n },\n },\n };\n it('should convert the lockfile object to the graph object', () => {\n expect({\n ...graph,\n packages: Object.fromEntries(graph.packages.entries()),\n }).to.eql(expected);\n });\n it('should convert the graph object to the lockfile object', () => {\n expect(\n convertGraphToLockfile(\n new DependenciesGraph(graph),\n {\n [path.resolve('comps/comp1')]: {\n dependencies: {\n foo: '^1.0.0',\n },\n },\n },\n process.cwd()\n )\n ).to.eql({\n importers: {\n 'comps/comp1': {\n dependencies: {\n foo: {\n version: '1.0.0(patch_hash=0000)',\n specifier: '^1.0.0',\n },\n },\n devDependencies: {},\n optionalDependencies: {},\n },\n },\n lockfileVersion: '9.0',\n snapshots: {\n 'foo@1.0.0(patch_hash=0000)': {\n dependencies: {\n bar: '1.0.0',\n },\n },\n 'bar@1.0.0': {},\n 'comp1@pending:': {\n dependencies: {\n foo: '1.0.0(patch_hash=0000)',\n },\n },\n },\n packages: {\n 'comp1@pending:': {\n resolution: {\n directory: 'comps/comp1',\n type: 'directory',\n },\n },\n 'foo@1.0.0': {\n engines: {\n node: '>=8',\n npm: '>=6',\n },\n hasBin: true,\n os: ['darwin'],\n cpu: ['arm64'],\n resolution: {\n integrity: 'sha512-000',\n },\n },\n 'bar@1.0.0': {\n resolution: {\n integrity: 'sha512-111',\n },\n },\n },\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,mBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAA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AO,CAACC,GAAG,CAAC,CACd,CACF,CAAC,CAACP,EAAE,CAACC,GAAG,CAAC;MACP1C,SAAS,EAAE;QACT,aAAa,EAAE;UACbC,YAAY,EAAE;YACZI,GAAG,EAAE;cACHF,OAAO,EAAE,wBAAwB;cACjCC,SAAS,EAAE;YACb;UACF,CAAC;UACD6C,eAAe,EAAE,CAAC,CAAC;UACnBC,oBAAoB,EAAE,CAAC;QACzB;MACF,CAAC;MACD5C,eAAe,EAAE,KAAK;MACtBC,SAAS,EAAE;QACT,4BAA4B,EAAE;UAC5BN,YAAY,EAAE;YACZO,GAAG,EAAE;UACP;QACF,CAAC;QACD,WAAW,EAAE,CAAC,CAAC;QACf,gBAAgB,EAAE;UAChBP,YAAY,EAAE;YACZI,GAAG,EAAE;UACP;QACF;MACF,CAAC;MACDI,QAAQ,EAAE;QACR,gBAAgB,EAAE;UAChBC,UAAU,EAAE;YACVC,SAAS,EAAE,aAAa;YACxBC,IAAI,EAAE;UACR;QACF,CAAC;QACD,WAAW,EAAE;UACXC,OAAO,EAAE;YACPC,IAAI,EAAE,KAAK;YACXC,GAAG,EAAE;UACP,CAAC;UACDC,MAAM,EAAE,IAAI;UACZC,EAAE,EAAE,CAAC,QAAQ,CAAC;UACdC,GAAG,EAAE,CAAC,OAAO,CAAC;UACdR,UAAU,EAAE;YACVS,SAAS,EAAE;UACb;QACF,CAAC;QACD,WAAW,EAAE;UACXT,UAAU,EAAE;YACVS,SAAS,EAAE;UACb;QACF;MACF;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
package/dist/lynx.js CHANGED
@@ -394,6 +394,7 @@ function initReporter(opts) {
394
394
  }, opts?.peerDependencyRules)
395
395
  },
396
396
  streamParser: _logger().streamParser,
397
+ // eslint-disable-line
397
398
  // Linked in core aspects are excluded from the output to reduce noise.
398
399
  // Other @teambit/ dependencies will be shown.
399
400
  // Only those that are symlinked from outside the workspace will be hidden.