@webiny/cli-core 6.5.0-beta.0 → 6.5.0-beta.10

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.
@@ -102,7 +102,7 @@ class DependencyTree {
102
102
  file: ref.file,
103
103
  types
104
104
  });
105
- if (existingFile.types.includes(ref.type)) return;
105
+ else if (existingFile.types.includes(ref.type)) return;
106
106
  existingFile.types.push(ref.type);
107
107
  }
108
108
  constructor(){
@@ -1 +1 @@
1
- {"version":3,"file":"features/DepsSync/DependencyTree.js","sources":["../../../src/features/DepsSync/DependencyTree.ts"],"sourcesContent":["import semver from \"semver\";\nimport type {\n IDependency,\n IDependencyTree,\n IDependencyTreePushParams,\n IReference\n} from \"./types.js\";\nimport { PackageType } from \"./types.js\";\n\nconst keys = [\n PackageType.dependencies,\n PackageType.devDependencies,\n PackageType.peerDependencies,\n PackageType.resolutions\n];\n\ninterface IAddReferenceParams {\n name: string;\n version: string;\n file: string;\n type: PackageType;\n}\n\ninterface ISortItem {\n name: string;\n}\n\nconst sortByName = (a: ISortItem, b: ISortItem) => {\n return a.name.localeCompare(b.name);\n};\n\nexport class DependencyTree implements IDependencyTree {\n private readonly packages: Record<(typeof keys)[number], IDependency[]> = {\n resolutions: [],\n dependencies: [],\n devDependencies: [],\n peerDependencies: []\n };\n public readonly references: IReference[] = [];\n\n public get dependencies(): IDependency[] {\n return this.packages.dependencies.sort(sortByName);\n }\n\n public get devDependencies(): IDependency[] {\n return this.packages.devDependencies.sort(sortByName);\n }\n\n public get peerDependencies(): IDependency[] {\n return this.packages.peerDependencies.sort(sortByName);\n }\n\n public get resolutions(): IDependency[] {\n return this.packages.resolutions.sort(sortByName);\n }\n\n public get duplicates(): IReference[] {\n return this.references\n .filter(reference => {\n return reference.versions.length > 1;\n })\n .sort(sortByName);\n }\n\n public push(params: IDependencyTreePushParams): void {\n const { file, json, ignore } = params;\n for (const key of keys) {\n const dependencies = json[key];\n if (!dependencies) {\n continue;\n }\n\n for (const name in dependencies) {\n if (ignore && name.match(ignore) !== null) {\n continue;\n }\n let version = dependencies[name];\n if (!version) {\n continue;\n }\n\n const semverVersion =\n semver.validRange(version) || version === \"beta\" ? version : null;\n if (!semverVersion) {\n process.env.DEBUG === \"true\" &&\n console.debug(\n `${version} is not a valid SemVer value in ${file}, package ${name}.`\n );\n continue;\n }\n /**\n * Let's skip if version starts with >= or <=, as those are not exact versions and we can't be sure which version is actually used.\n */\n if (version.startsWith(\">=\") || version.startsWith(\"<=\")) {\n process.env.DEBUG === \"true\" &&\n console.debug(\n `${version} is not an exact version in ${file}, package ${name}. Skipping.`\n );\n continue;\n }\n\n version = version\n .replace(/\\^/g, \"\")\n .replace(/~/g, \"\")\n .replace(/>/g, \"\")\n .replace(/</g, \"\")\n .replace(/=/g, \"\");\n const existing = this.packages[key].find(item => {\n return item.name === name && item.version === version;\n });\n if (existing) {\n existing.files.push(file);\n this.addReference({\n name,\n version,\n file,\n type: key\n });\n continue;\n }\n\n this.packages[key].push({\n name,\n version,\n files: [file]\n });\n this.addReference({\n name,\n version,\n file,\n type: key\n });\n }\n }\n }\n\n private addReference(ref: IAddReferenceParams): void {\n const existing = this.references.find(item => {\n return item.name === ref.name;\n });\n const types = [ref.type];\n if (!existing) {\n this.references.push({\n name: ref.name,\n versions: [\n {\n version: ref.version,\n files: [\n {\n file: ref.file,\n types\n }\n ]\n }\n ]\n });\n return;\n }\n const existingVersion = existing.versions.find(item => {\n return item.version === ref.version;\n });\n if (!existingVersion) {\n existing.versions.push({\n version: ref.version,\n files: [\n {\n file: ref.file,\n types\n }\n ]\n });\n return;\n }\n const existingFile = existingVersion.files.find(item => {\n return item.file === ref.file;\n });\n if (!existingFile) {\n existingVersion.files.push({\n file: ref.file,\n types\n });\n return;\n } else if (existingFile.types.includes(ref.type)) {\n return;\n }\n existingFile.types.push(ref.type);\n }\n}\n"],"names":["keys","PackageType","sortByName","a","b","DependencyTree","reference","params","file","json","ignore","key","dependencies","name","version","semverVersion","semver","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I,MAAMA,IAAI,IAAI;4BACdC;wBACJ;qBACH;gBACL;aACH;QACL;QAGJ,MAAMC,kBAAkBJ,SAAS,QAAQ,CAAC,IAAI,CAACC,CAAAA,OACpCA,KAAK,OAAO,KAAKC,IAAI,OAAO;QAEvC,IAAI,CAACE,iBAAiB,YAClBJ,SAAS,QAAQ,CAAC,IAAI,CAAC;YACnB,SAASE,IAAI,OAAO;YACpB,OAAO;gBACH;oBACI,MAAMA,IAAI,IAAI;oBACdC;gBACJ;aACH;QACL;QAGJ,MAAME,eAAeD,gBAAgB,KAAK,CAAC,IAAI,CAACH,CAAAA,OACrCA,KAAK,IAAI,KAAKC,IAAI,IAAI;QAEjC,IAAI,CAACG,cAAc,YACfD,gBAAgB,KAAK,CAAC,IAAI,CAAC;YACvB,MAAMF,IAAI,IAAI;YACdC;QACJ;QAEG,IAAIE,aAAa,KAAK,CAAC,QAAQ,CAACH,IAAI,IAAI,GAC3C;QAEJG,aAAa,KAAK,CAAC,IAAI,CAACH,IAAI,IAAI;IACpC;;aA1JiB,QAAQ,GAAiD;YACtE,aAAa,EAAE;YACf,cAAc,EAAE;YAChB,iBAAiB,EAAE;YACnB,kBAAkB,EAAE;QACxB;aACgB,UAAU,GAAiB,EAAE;;AAqJjD"}
1
+ {"version":3,"file":"features/DepsSync/DependencyTree.js","sources":["../../../src/features/DepsSync/DependencyTree.ts"],"sourcesContent":["import semver from \"semver\";\nimport type {\n IDependency,\n IDependencyTree,\n IDependencyTreePushParams,\n IReference\n} from \"./types.js\";\nimport { PackageType } from \"./types.js\";\n\nconst keys = [\n PackageType.dependencies,\n PackageType.devDependencies,\n PackageType.peerDependencies,\n PackageType.resolutions\n];\n\ninterface IAddReferenceParams {\n name: string;\n version: string;\n file: string;\n type: PackageType;\n}\n\ninterface ISortItem {\n name: string;\n}\n\nconst sortByName = (a: ISortItem, b: ISortItem) => {\n return a.name.localeCompare(b.name);\n};\n\nexport class DependencyTree implements IDependencyTree {\n private readonly packages: Record<(typeof keys)[number], IDependency[]> = {\n resolutions: [],\n dependencies: [],\n devDependencies: [],\n peerDependencies: []\n };\n public readonly references: IReference[] = [];\n\n public get dependencies(): IDependency[] {\n return this.packages.dependencies.sort(sortByName);\n }\n\n public get devDependencies(): IDependency[] {\n return this.packages.devDependencies.sort(sortByName);\n }\n\n public get peerDependencies(): IDependency[] {\n return this.packages.peerDependencies.sort(sortByName);\n }\n\n public get resolutions(): IDependency[] {\n return this.packages.resolutions.sort(sortByName);\n }\n\n public get duplicates(): IReference[] {\n return this.references\n .filter(reference => {\n return reference.versions.length > 1;\n })\n .sort(sortByName);\n }\n\n public push(params: IDependencyTreePushParams): void {\n const { file, json, ignore } = params;\n for (const key of keys) {\n const dependencies = json[key];\n if (!dependencies) {\n continue;\n }\n\n for (const name in dependencies) {\n if (ignore && name.match(ignore) !== null) {\n continue;\n }\n let version = dependencies[name];\n if (!version) {\n continue;\n }\n\n const semverVersion =\n semver.validRange(version) || version === \"beta\" ? version : null;\n if (!semverVersion) {\n process.env.DEBUG === \"true\" &&\n console.debug(\n `${version} is not a valid SemVer value in ${file}, package ${name}.`\n );\n continue;\n }\n /**\n * Let's skip if version starts with >= or <=, as those are not exact versions and we can't be sure which version is actually used.\n */\n if (version.startsWith(\">=\") || version.startsWith(\"<=\")) {\n process.env.DEBUG === \"true\" &&\n console.debug(\n `${version} is not an exact version in ${file}, package ${name}. Skipping.`\n );\n continue;\n }\n\n version = version\n .replace(/\\^/g, \"\")\n .replace(/~/g, \"\")\n .replace(/>/g, \"\")\n .replace(/</g, \"\")\n .replace(/=/g, \"\");\n const existing = this.packages[key].find(item => {\n return item.name === name && item.version === version;\n });\n if (existing) {\n existing.files.push(file);\n this.addReference({\n name,\n version,\n file,\n type: key\n });\n continue;\n }\n\n this.packages[key].push({\n name,\n version,\n files: [file]\n });\n this.addReference({\n name,\n version,\n file,\n type: key\n });\n }\n }\n }\n\n private addReference(ref: IAddReferenceParams): void {\n const existing = this.references.find(item => {\n return item.name === ref.name;\n });\n const types = [ref.type];\n if (!existing) {\n this.references.push({\n name: ref.name,\n versions: [\n {\n version: ref.version,\n files: [\n {\n file: ref.file,\n types\n }\n ]\n }\n ]\n });\n return;\n }\n const existingVersion = existing.versions.find(item => {\n return item.version === ref.version;\n });\n if (!existingVersion) {\n existing.versions.push({\n version: ref.version,\n files: [\n {\n file: ref.file,\n types\n }\n ]\n });\n return;\n }\n const existingFile = existingVersion.files.find(item => {\n return item.file === ref.file;\n });\n if (!existingFile) {\n existingVersion.files.push({\n file: ref.file,\n types\n });\n return;\n } else if (existingFile.types.includes(ref.type)) {\n return;\n }\n existingFile.types.push(ref.type);\n }\n}\n"],"names":["keys","PackageType","sortByName","a","b","DependencyTree","reference","params","file","json","ignore","key","dependencies","name","version","semverVersion","semver","process","console","existing","item","ref","types","existingVersion","existingFile"],"mappings":";;AASA,MAAMA,OAAO;IACTC,YAAY,YAAY;IACxBA,YAAY,eAAe;IAC3BA,YAAY,gBAAgB;IAC5BA,YAAY,WAAW;CAC1B;AAaD,MAAMC,aAAa,CAACC,GAAcC,IACvBD,EAAE,IAAI,CAAC,aAAa,CAACC,EAAE,IAAI;AAG/B,MAAMC;IAST,IAAW,eAA8B;QACrC,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAACH;IAC3C;IAEA,IAAW,kBAAiC;QACxC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAACA;IAC9C;IAEA,IAAW,mBAAkC;QACzC,OAAO,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAACA;IAC/C;IAEA,IAAW,cAA6B;QACpC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAACA;IAC1C;IAEA,IAAW,aAA2B;QAClC,OAAO,IAAI,CAAC,UAAU,CACjB,MAAM,CAACI,CAAAA,YACGA,UAAU,QAAQ,CAAC,MAAM,GAAG,GAEtC,IAAI,CAACJ;IACd;IAEO,KAAKK,MAAiC,EA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AAiB,EAAE;;AAqJjD"}
@@ -4,6 +4,23 @@ import { loadJsonFileSync } from "load-json-file";
4
4
  import { getDuplicatesFilePath, getReferencesFilePath } from "../paths.js";
5
5
  import fs from "fs";
6
6
  import { createDependencyTree } from "../createDependencyTree.js";
7
+ const MAX_LISTED = 5;
8
+ const describeReference = (reference)=>{
9
+ const versions = reference.versions.map((version)=>{
10
+ const files = version.files.map((file)=>`${file.file} (${file.types.join(", ")})`).join(", ");
11
+ return ` ${version.version} in ${files}`;
12
+ });
13
+ return [
14
+ ` ${reference.name}`,
15
+ ...versions
16
+ ].join("\n");
17
+ };
18
+ const describeReferences = (references)=>{
19
+ const listed = references.slice(0, MAX_LISTED).map(describeReference);
20
+ const remaining = references.length - listed.length;
21
+ if (remaining > 0) listed.push(` ...and ${remaining} more.`);
22
+ return listed.join("\n");
23
+ };
7
24
  class VerifyDepsCommand {
8
25
  constructor(getProjectSdkService, uiService){
9
26
  this.getProjectSdkService = getProjectSdkService;
@@ -59,8 +76,28 @@ class VerifyDepsCommand {
59
76
  ui.info("Checking duplicates file...");
60
77
  if (fs.existsSync(duplicatesFile)) {
61
78
  const json = loadJsonFileSync(duplicatesFile);
62
- if (JSON.stringify(tree.duplicates) !== JSON.stringify(json)) throw new Error("Duplicates are not in sync. Please run `yarn webiny sync-dependencies` command.");
63
- if (Array.isArray(json) && json.length > 0) throw new Error("There are still duplicates in the project. Please sort them out and run `yarn webiny sync-dependencies` command to regenerate files.");
79
+ if (JSON.stringify(tree.duplicates) !== JSON.stringify(json)) {
80
+ const fileNames = new Set(json.map((reference)=>reference.name));
81
+ const treeNames = new Set(tree.duplicates.map((reference)=>reference.name));
82
+ const added = tree.duplicates.filter((reference)=>!fileNames.has(reference.name));
83
+ const removed = json.filter((reference)=>!treeNames.has(reference.name));
84
+ const changed = tree.duplicates.filter((reference)=>{
85
+ const fileReference = json.find((item)=>item.name === reference.name);
86
+ return fileReference && JSON.stringify(reference) !== JSON.stringify(fileReference);
87
+ });
88
+ const details = [
89
+ added.length ? `New duplicates (${added.length}):\n${describeReferences(added)}` : null,
90
+ removed.length ? `Resolved duplicates (${removed.length}):\n${describeReferences(removed)}` : null,
91
+ changed.length ? `Changed duplicates (${changed.length}):\n${describeReferences(changed)}` : null
92
+ ].filter(Boolean);
93
+ throw new Error([
94
+ "Duplicates are not in sync. Please run `yarn webiny sync-dependencies` command.",
95
+ ...details
96
+ ].join("\n\n"));
97
+ } else if (Array.isArray(json) && json.length > 0) throw new Error([
98
+ "There are still duplicates in the project. Please sort them out and run `yarn webiny sync-dependencies` command to regenerate files.",
99
+ `Duplicate dependencies (${json.length}):\n${describeReferences(json)}`
100
+ ].join("\n\n"));
64
101
  } else throw new Error("Duplicates file does not exist. Please run `yarn webiny sync-dependencies` command.");
65
102
  ui.info("✅ All package reference files are in sync.");
66
103
  }
@@ -1 +1 @@
1
- {"version":3,"file":"features/DepsSync/commands/VerifyDepsCommand.js","sources":["../../../../src/features/DepsSync/commands/VerifyDepsCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { CliCommandFactory, GetProjectSdkService, UiService } from \"~/abstractions/index.js\";\nimport { loadJsonFileSync } from \"load-json-file\";\nimport { getDuplicatesFilePath, getReferencesFilePath } from \"../paths.js\";\nimport fs from \"fs\";\nimport { createDependencyTree } from \"../createDependencyTree.js\";\nimport type { IDependencyCollection } from \"~/features/DepsSync/types.js\";\n\nexport class VerifyDepsCommand implements CliCommandFactory.Interface<unknown> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface\n ) {}\n\n async execute() {\n return {\n name: \"verify-dependencies\",\n description: \"Verify dependencies for all packages.\",\n examples: [\"$0 verify-dependencies\"],\n handler: async () => {\n const ui = this.uiService;\n const projectSdk = await this.getProjectSdkService.execute();\n const project = projectSdk.getProject();\n const referencesFile = getReferencesFilePath(project);\n const duplicatesFile = getDuplicatesFilePath(project);\n\n const tree = createDependencyTree(project);\n\n const references: IDependencyCollection = {\n dependencies: tree.dependencies,\n devDependencies: tree.devDependencies,\n peerDependencies: tree.peerDependencies,\n resolutions: tree.resolutions,\n references: tree.references\n };\n\n ui.info(\"Checking references file...\");\n\n if (fs.existsSync(referencesFile)) {\n const json = loadJsonFileSync<IDependencyCollection>(referencesFile)!;\n if (JSON.stringify(references) !== JSON.stringify(json)) {\n for (const type in references) {\n const refDependencies = references[type as keyof typeof references];\n const fileDependencies = json[type as keyof typeof json];\n for (const dep in refDependencies) {\n const refDep = refDependencies[dep];\n const fileDep = fileDependencies[dep];\n if (!fileDep) {\n console.log(\"Missing dependency:\", refDep.name, \"in\", type);\n continue;\n }\n if (JSON.stringify(refDep) !== JSON.stringify(fileDep)) {\n console.log(\"Mismatch in dependency:\", refDep.name, \"in\", type);\n console.log({\n refDep: JSON.stringify(refDep),\n fileDep: JSON.stringify(fileDep)\n });\n }\n }\n }\n throw new Error(\n \"References are not in sync. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n } else {\n throw new Error(\n \"References file does not exist. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n\n ui.info(\"Checking duplicates file...\");\n\n if (fs.existsSync(duplicatesFile)) {\n const json = loadJsonFileSync(duplicatesFile);\n if (JSON.stringify(tree.duplicates) !== JSON.stringify(json)) {\n throw new Error(\n \"Duplicates are not in sync. Please run `yarn webiny sync-dependencies` command.\"\n );\n } else if (Array.isArray(json) && json.length > 0) {\n throw new Error(\n \"There are still duplicates in the project. Please sort them out and run `yarn webiny sync-dependencies` command to regenerate files.\"\n );\n }\n } else {\n throw new Error(\n \"Duplicates file does not exist. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n\n ui.info(\"✅ All package reference files are in sync.\");\n }\n };\n }\n}\n\nexport const verifyDepsCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: VerifyDepsCommand,\n dependencies: [GetProjectSdkService, UiService]\n});\n"],"names":["VerifyDepsCommand","getProjectSdkService","uiService","ui","projectSdk","project","referencesFile","getReferencesFilePath","duplicatesFile","getDuplicatesFilePath","tree","createDependencyTree","references","fs","json","loadJsonFileSync","JSON","type","refDependencies","fileDependencies","dep","refDep","fileDep","console","Error","Array","verifyDepsCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService"],"mappings":";;;;;;AAQO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,CACxC;aAFUD,oBAAoB,GAApBA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,UAAU;QACZ,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBAAC;aAAyB;YACpC,SAAS;gBACL,MAAMC,KAAK,IAAI,CAAC,SAAS;gBACzB,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;gBAC1D,MAAMC,UAAUD,WAAW,UAAU;gBACrC,MAAME,iBAAiBC,sBAAsBF;gBAC7C,MAAMG,iBAAiBC,sBAAsBJ;gBAE7C,MAAMK,OAAOC,qBAAqBN;gBAElC,MAAMO,aAAoC;oBACtC,cAAcF,KAAK,YAAY;oBAC/B,iBAAiBA,KAAK,eAAe;oBACrC,kBAAkBA,KAAK,gBAAgB;oBACvC,aAAaA,KAAK,WAAW;oBAC7B,YAAYA,KAAK,UAAU;gBAC/B;gBAEAP,GAAG,IAAI,CAAC;gBAER,IAAIU,GAAG,UAAU,CAACP,iBAAiB;oBAC/B,MAAMQ,OAAOC,iBAAwCT;oBACrD,IAAIU,KAAK,SAAS,CAACJ,gBAAgBI,KAAK,SAAS,CAACF,OAAO;wBACrD,IAAK,MAAMG,QAAQL,WAAY;4BAC3B,MAAMM,kBAAkBN,UAAU,CAACK,KAAgC;4BACnE,MAAME,mBAAmBL,IAAI,CAACG,KAA0B;4BACxD,IAAK,MAAMG,OAAOF,gBAAiB;gCAC/B,MAAMG,SAASH,eAAe,CAACE,IAAI;gCACnC,MAAME,UAAUH,gBAAgB,CAACC,IAAI;gCACrC,IAAI,CAACE,SAAS;oCACVC,QAAQ,GAAG,CAAC,uBAAuBF,OAAO,IAAI,EAAE,MAAMJ;oCACtD;gCACJ;gCACA,IAAID,KAAK,SAAS,CAACK,YAAYL,KAAK,SAAS,CAACM,UAAU;oCACpDC,QAAQ,GAAG,CAAC,2BAA2BF,OAAO,IAAI,EAAE,MAAMJ;oCAC1DM,QAAQ,GAAG,CAAC;wCACR,QAAQP,KAAK,SAAS,CAACK;wCACvB,SAASL,KAAK,SAAS,CAACM;oCAC5B;gCACJ;4BACJ;wBACJ;wBACA,MAAM,IAAIE,MACN;oBAER;gBACJ,OACI,MAAM,IAAIA,MACN;gBAIRrB,GAAG,IAAI,CAAC;gBAER,IAAIU,GAAG,UAAU,CAACL,iBAAiB;oBAC/B,MAAMM,OAAOC,iBAAiBP;oBAC9B,IAAIQ,KAAK,SAAS,CAACN,KAAK,UAAU,MAAMM,KAAK,SAAS,CAACF,OACnD,MAAM,IAAIU,MACN;oBAED,IAAIC,MAAM,OAAO,CAACX,SAASA,KAAK,MAAM,GAAG,GAC5C,MAAM,IAAIU,MACN;gBAGZ,OACI,MAAM,IAAIA,MACN;gBAIRrB,GAAG,IAAI,CAAC;YACZ;QACJ;IACJ;AACJ;AAEO,MAAMuB,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgB5B;IAChB,cAAc;QAAC6B;QAAsBC;KAAU;AACnD"}
1
+ {"version":3,"file":"features/DepsSync/commands/VerifyDepsCommand.js","sources":["../../../../src/features/DepsSync/commands/VerifyDepsCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { CliCommandFactory, GetProjectSdkService, UiService } from \"~/abstractions/index.js\";\nimport { loadJsonFileSync } from \"load-json-file\";\nimport { getDuplicatesFilePath, getReferencesFilePath } from \"../paths.js\";\nimport fs from \"fs\";\nimport { createDependencyTree } from \"../createDependencyTree.js\";\nimport type { IDependencyCollection, IReference } from \"~/features/DepsSync/types.js\";\n\n/**\n * Number of offending dependencies to list in an error before summarizing the rest.\n */\nconst MAX_LISTED = 5;\n\nconst describeReference = (reference: IReference) => {\n const versions = reference.versions.map(version => {\n const files = version.files\n .map(file => `${file.file} (${file.types.join(\", \")})`)\n .join(\", \");\n return ` ${version.version} in ${files}`;\n });\n\n return [` ${reference.name}`, ...versions].join(\"\\n\");\n};\n\nconst describeReferences = (references: IReference[]) => {\n const listed = references.slice(0, MAX_LISTED).map(describeReference);\n const remaining = references.length - listed.length;\n\n if (remaining > 0) {\n listed.push(` ...and ${remaining} more.`);\n }\n\n return listed.join(\"\\n\");\n};\n\nexport class VerifyDepsCommand implements CliCommandFactory.Interface<unknown> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface\n ) {}\n\n async execute() {\n return {\n name: \"verify-dependencies\",\n description: \"Verify dependencies for all packages.\",\n examples: [\"$0 verify-dependencies\"],\n handler: async () => {\n const ui = this.uiService;\n const projectSdk = await this.getProjectSdkService.execute();\n const project = projectSdk.getProject();\n const referencesFile = getReferencesFilePath(project);\n const duplicatesFile = getDuplicatesFilePath(project);\n\n const tree = createDependencyTree(project);\n\n const references: IDependencyCollection = {\n dependencies: tree.dependencies,\n devDependencies: tree.devDependencies,\n peerDependencies: tree.peerDependencies,\n resolutions: tree.resolutions,\n references: tree.references\n };\n\n ui.info(\"Checking references file...\");\n\n if (fs.existsSync(referencesFile)) {\n const json = loadJsonFileSync<IDependencyCollection>(referencesFile)!;\n if (JSON.stringify(references) !== JSON.stringify(json)) {\n for (const type in references) {\n const refDependencies = references[type as keyof typeof references];\n const fileDependencies = json[type as keyof typeof json];\n for (const dep in refDependencies) {\n const refDep = refDependencies[dep];\n const fileDep = fileDependencies[dep];\n if (!fileDep) {\n console.log(\"Missing dependency:\", refDep.name, \"in\", type);\n continue;\n }\n if (JSON.stringify(refDep) !== JSON.stringify(fileDep)) {\n console.log(\"Mismatch in dependency:\", refDep.name, \"in\", type);\n console.log({\n refDep: JSON.stringify(refDep),\n fileDep: JSON.stringify(fileDep)\n });\n }\n }\n }\n throw new Error(\n \"References are not in sync. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n } else {\n throw new Error(\n \"References file does not exist. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n\n ui.info(\"Checking duplicates file...\");\n\n if (fs.existsSync(duplicatesFile)) {\n const json = loadJsonFileSync<IReference[]>(duplicatesFile)!;\n if (JSON.stringify(tree.duplicates) !== JSON.stringify(json)) {\n const fileNames = new Set(json.map(reference => reference.name));\n const treeNames = new Set(tree.duplicates.map(reference => reference.name));\n\n const added = tree.duplicates.filter(\n reference => !fileNames.has(reference.name)\n );\n const removed = json.filter(reference => !treeNames.has(reference.name));\n const changed = tree.duplicates.filter(reference => {\n const fileReference = json.find(item => item.name === reference.name);\n return (\n fileReference &&\n JSON.stringify(reference) !== JSON.stringify(fileReference)\n );\n });\n\n const details = [\n added.length\n ? `New duplicates (${added.length}):\\n${describeReferences(added)}`\n : null,\n removed.length\n ? `Resolved duplicates (${removed.length}):\\n${describeReferences(removed)}`\n : null,\n changed.length\n ? `Changed duplicates (${changed.length}):\\n${describeReferences(changed)}`\n : null\n ].filter(Boolean);\n\n throw new Error(\n [\n \"Duplicates are not in sync. Please run `yarn webiny sync-dependencies` command.\",\n ...details\n ].join(\"\\n\\n\")\n );\n } else if (Array.isArray(json) && json.length > 0) {\n throw new Error(\n [\n \"There are still duplicates in the project. Please sort them out and run `yarn webiny sync-dependencies` command to regenerate files.\",\n `Duplicate dependencies (${json.length}):\\n${describeReferences(json)}`\n ].join(\"\\n\\n\")\n );\n }\n } else {\n throw new Error(\n \"Duplicates file does not exist. Please run `yarn webiny sync-dependencies` command.\"\n );\n }\n\n ui.info(\"✅ All package reference files are in sync.\");\n }\n };\n }\n}\n\nexport const verifyDepsCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: VerifyDepsCommand,\n dependencies: [GetProjectSdkService, UiService]\n});\n"],"names":["MAX_LISTED","describeReference","reference","versions","version","files","file","describeReferences","references","listed","remaining","VerifyDepsCommand","getProjectSdkService","uiService","ui","projectSdk","project","referencesFile","getReferencesFilePath","duplicatesFile","getDuplicatesFilePath","tree","createDependencyTree","fs","json","loadJsonFileSync","JSON","type","refDependencies","fileDependencies","dep","refDep","fileDep","console","Error","fileNames","Set","treeNames","added","removed","changed","fileReference","item","details","Boolean","Array","verifyDepsCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService"],"mappings":";;;;;;AAWA,MAAMA,aAAa;AAEnB,MAAMC,oBAAoB,CAACC;IACvB,MAAMC,WAAWD,UAAU,QAAQ,CAAC,GAAG,CAACE,CAAAA;QACpC,MAAMC,QAAQD,QAAQ,KAAK,CACtB,GAAG,CAACE,CAAAA,OAAQ,GAAGA,KAAK,IAAI,CAAC,EAAE,EAAEA,KAAK,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EACrD,IAAI,CAAC;QACV,OAAO,CAAC,IAAI,EAAEF,QAAQ,OAAO,CAAC,IAAI,EAAEC,OAAO;IAC/C;IAEA,OAAO;QAAC,CAAC,EAAE,EAAEH,UAAU,IAAI,EAAE;WAAKC;KAAS,CAAC,IAAI,CAAC;AACrD;AAEA,MAAMI,qBAAqB,CAACC;IACxB,MAAMC,SAASD,WAAW,KAAK,CAAC,GAAGR,YAAY,GAAG,CAACC;IACnD,MAAMS,YAAYF,WAAW,MAAM,GAAGC,OAAO,MAAM;IAEnD,IAAIC,YAAY,GACZD,OAAO,IAAI,CAAC,CAAC,SAAS,EAAEC,UAAU,MAAM,CAAC;IAG7C,OAAOD,OAAO,IAAI,CAAC;AACvB;AAEO,MAAME;IACT,YACYC,oBAAoD,EACpDC,SAA8B,CACxC;aAFUD,oBAAoB,GAApBA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,UAAU;QACZ,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBAAC;aAAyB;YACpC,SAAS;gBACL,MAAMC,KAAK,IAAI,CAAC,SAAS;gBACzB,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;gBAC1D,MAAMC,UAAUD,WAAW,UAAU;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;qBAC1E,CAAC,IAAI,CAAC;gBAGnB,OACI,MAAM,IAAIU,MACN;gBAIRpB,GAAG,IAAI,CAAC;YACZ;QACJ;IACJ;AACJ;AAEO,MAAMgC,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgBrC;IAChB,cAAc;QAACsC;QAAsBC;KAAU;AACnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/cli-core",
3
- "version": "6.5.0-beta.0",
3
+ "version": "6.5.0-beta.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -13,33 +13,33 @@
13
13
  "description": "A command line interface (CLI) for managing Webiny projects.",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@webiny/di": "1.0.2",
17
- "@webiny/feature": "6.5.0-beta.0",
18
- "@webiny/project": "6.5.0-beta.0",
19
- "@webiny/pulumi-sdk": "6.5.0-beta.0",
20
- "@webiny/telemetry": "6.5.0-beta.0",
21
- "chalk": "5.6.2",
16
+ "@webiny/di": "1.1.0",
17
+ "@webiny/feature": "6.5.0-beta.10",
18
+ "@webiny/project": "6.5.0-beta.10",
19
+ "@webiny/pulumi-sdk": "6.5.0-beta.10",
20
+ "@webiny/telemetry": "6.5.0-beta.10",
21
+ "chalk": "6.0.1",
22
22
  "ci-info": "4.4.0",
23
23
  "execa": "5.1.1",
24
24
  "fast-glob": "3.3.3",
25
25
  "find-up": "8.0.0",
26
26
  "get-yarn-workspaces": "1.0.2",
27
- "humanize-duration": "3.34.0",
28
- "inquirer": "14.0.2",
27
+ "humanize-duration": "3.35.0",
28
+ "inquirer": "14.2.2",
29
29
  "load-json-file": "7.0.1",
30
- "open": "11.0.0",
30
+ "open": "11.0.4",
31
31
  "ora": "9.4.1",
32
- "pino": "10.3.1",
32
+ "pino": "10.4.0",
33
33
  "pino-pretty": "13.1.3",
34
34
  "semver": "7.8.5",
35
- "type-fest": "5.8.0",
35
+ "type-fest": "5.10.0",
36
36
  "write-json-file": "7.0.0",
37
- "yargs": "18.0.0",
38
- "zod": "4.4.3"
37
+ "yargs": "18.2.0",
38
+ "zod": "4.6.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/lodash": "4.17.24",
42
- "@webiny/build-tools": "6.5.0-beta.0",
41
+ "@types/lodash": "4.17.25",
42
+ "@webiny/build-tools": "6.5.0-beta.10",
43
43
  "rimraf": "6.1.3",
44
44
  "typescript": "7.0.2"
45
45
  },