@ziacik/upgrade-verify 3.0.0 → 3.2.0
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.
- package/CHANGELOG.md +15 -1
- package/package.json +6 -5
- package/src/executors/check-issues/executor.js.map +1 -1
- package/src/executors/check-issues/schema.d.js.map +1 -1
- package/src/executors/verify-build/dist-stat-comparer.js.map +1 -1
- package/src/executors/verify-build/dist-stats.js +3 -3
- package/src/executors/verify-build/dist-stats.js.map +1 -1
- package/src/executors/verify-build/executor.js +3 -2
- package/src/executors/verify-build/executor.js.map +1 -1
- package/src/executors/verify-build/schema.d.js.map +1 -1
- package/src/executors/verify-build/with-hash-removed.js.map +1 -1
- package/src/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.2.0] - 2024-09-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Upgraded nx to 19.6.6.
|
|
15
|
+
|
|
16
|
+
## [3.1.0] - 2024-06-24
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Upgraded nx to 19.3.1.
|
|
21
|
+
|
|
10
22
|
## [3.0.0] - 2024-05-12
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -101,7 +113,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
101
113
|
- READMEs updated and props added to package.json.
|
|
102
114
|
- A _Package subpath './package.json' is not defined by "exports"_ error hopefully fixed.
|
|
103
115
|
|
|
104
|
-
[unreleased]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-3.
|
|
116
|
+
[unreleased]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-3.2.0...HEAD
|
|
117
|
+
[3.2.0]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-3.1.0...upgrade-verify-3.2.0
|
|
118
|
+
[3.1.0]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-3.0.0...upgrade-verify-3.1.0
|
|
105
119
|
[3.0.0]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-2.1.0...upgrade-verify-3.0.0
|
|
106
120
|
[2.1.0]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-2.0.0...upgrade-verify-2.1.0
|
|
107
121
|
[2.0.0]: https://github.com/ziacik/nx-tools/compare/upgrade-verify-1.3.0...upgrade-verify-2.0.0
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziacik/upgrade-verify",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@nx/devkit": "19.
|
|
6
|
-
"@swc/helpers": "0.5.
|
|
5
|
+
"@nx/devkit": "19.6.5",
|
|
6
|
+
"@swc/helpers": "0.5.11"
|
|
7
7
|
},
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"main": "./src/index.js",
|
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
"directory": "packages/upgrade-verify"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
|
-
"executors": "./executors.json"
|
|
28
|
-
|
|
27
|
+
"executors": "./executors.json",
|
|
28
|
+
"types": "./src/index.d.ts"
|
|
29
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/check-issues/executor.ts"],"sourcesContent":["import { ExecutorContext, logger } from '@nx/devkit';\nimport { readFile } from 'fs/promises';\nimport { join } from 'path';\nimport { CheckIssuesExecutorSchema } from './schema';\n\nconst GITHUB_ISSUE_REGEX = /https:\\/\\/github.com\\/(?<owner>[^/]+)\\/(?<repo>[^/]+)\\/issues\\/(?<issueNumber>\\d+)/;\n\nexport default async function runExecutor(options: CheckIssuesExecutorSchema, context: ExecutorContext) {\n\tconst issuesMd = await tryLoadIssuesMd(context.root);\n\n\tif (issuesMd != null) {\n\t\tconst issueMdLines = issuesMd.split('\\n');\n\t\tawait printClosedIssueLines(issueMdLines);\n\t} else {\n\t\tlogger.info(\"There is no 'ISSUES.md' file in the workspace root.\");\n\t}\n\n\treturn {\n\t\tsuccess: true,\n\t};\n}\n\nasync function printClosedIssueLines(issueMdLines: string[]) {\n\tconst resolvedLines = await Promise.all(issueMdLines.map(resolveIssueMdLine));\n\tconst closedLines = resolvedLines.filter((resolvedLine) => resolvedLine.result === 'closed');\n\n\tif (closedLines.length > 0) {\n\t\tlogger.info('Issues which are closed now:');\n\n\t\tfor (const closedLine of closedLines) {\n\t\t\tlogger.info(`- ${closedLine.issueMdLine}`);\n\t\t}\n\t} else {\n\t\tlogger.info('No issues have been closed.');\n\t}\n}\n\nasync function resolveIssueMdLine(issueMdLine: string): Promise<{ issueMdLine: string; result: 'noissue' | 'active' | 'closed' }> {\n\tconst githubLink = issueMdLine.match(GITHUB_ISSUE_REGEX);\n\n\tif (!githubLink) {\n\t\treturn { issueMdLine, result: 'noissue' };\n\t}\n\n\tconst [, owner, repo, issueNumber] = githubLink;\n\n\tconst response = await fetch(`https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`);\n\tconst { state } = await response.json();\n\n\treturn {\n\t\tissueMdLine,\n\t\tresult: state === 'closed' ? 'closed' : 'active',\n\t};\n}\n\nasync function tryLoadIssuesMd(root: string): Promise<string | undefined> {\n\ttry {\n\t\treturn await readFile(join(root, 'ISSUES.md'), 'utf8');\n\t} catch (e) {\n\t\tif (isNodeError(e) && e.code === 'ENOENT') {\n\t\t\treturn undefined;\n\t\t} else {\n\t\t\tthrow e;\n\t\t}\n\t}\n}\n\nfunction isNodeError(error: unknown): error is NodeJS.ErrnoException {\n\treturn error instanceof Error && 'code' in error;\n}\n"],"names":["runExecutor","GITHUB_ISSUE_REGEX","options","context","issuesMd","tryLoadIssuesMd","root","issueMdLines","split","printClosedIssueLines","logger","info","success","resolvedLines","Promise","all","map","resolveIssueMdLine","closedLines","filter","resolvedLine","result","length","closedLine","issueMdLine","githubLink","match","owner","repo","issueNumber","response","fetch","state","json","readFile","join","e","isNodeError","code","undefined","error","Error"],"mappings":";+BAOA;;;eAA8BA;;;wBAPU;0BACf;sBACJ;AAGrB,MAAMC,qBAAqB;AAEZ,eAAeD,YAAYE,OAAkC,EAAEC,OAAwB;IACrG,MAAMC,WAAW,MAAMC,gBAAgBF,QAAQG,IAAI;IAEnD,IAAIF,YAAY,MAAM;QACrB,MAAMG,eAAeH,SAASI,KAAK,CAAC;QACpC,MAAMC,sBAAsBF;IAC7B,OAAO;QACNG,cAAM,CAACC,IAAI,CAAC;IACb;IAEA,OAAO;QACNC,SAAS;IACV;AACD;AAEA,eAAeH,sBAAsBF,YAAsB;IAC1D,MAAMM,gBAAgB,MAAMC,QAAQC,GAAG,CAACR,aAAaS,GAAG,CAACC;IACzD,MAAMC,cAAcL,cAAcM,MAAM,CAAC,CAACC,eAAiBA,aAAaC,MAAM,KAAK;IAEnF,IAAIH,YAAYI,MAAM,GAAG,GAAG;QAC3BZ,cAAM,CAACC,IAAI,CAAC;QAEZ,KAAK,MAAMY,cAAcL,YAAa;YACrCR,cAAM,CAACC,IAAI,CAAC,CAAC,EAAE,EAAEY,WAAWC,WAAW,CAAC,CAAC;QAC1C;IACD,OAAO;QACNd,cAAM,CAACC,IAAI,CAAC;IACb;AACD;AAEA,eAAeM,mBAAmBO,WAAmB;IACpD,MAAMC,aAAaD,YAAYE,KAAK,CAACzB;IAErC,IAAI,CAACwB,YAAY;QAChB,OAAO;YAAED;YAAaH,QAAQ;QAAU;IACzC;IAEA,MAAM,GAAGM,OAAOC,MAAMC,YAAY,GAAGJ;IAErC,MAAMK,WAAW,MAAMC,MAAM,CAAC,6BAA6B,EAAEJ,MAAM,CAAC,EAAEC,KAAK,QAAQ,EAAEC,YAAY,CAAC;IAClG,MAAM,EAAEG,KAAK,EAAE,GAAG,MAAMF,SAASG,IAAI;IAErC,OAAO;QACNT;QACAH,QAAQW,UAAU,WAAW,WAAW;IACzC;AACD;AAEA,eAAe3B,gBAAgBC,IAAY;IAC1C,IAAI;QACH,OAAO,MAAM4B,IAAAA,kBAAQ,EAACC,IAAAA,UAAI,EAAC7B,MAAM,cAAc;IAChD,EAAE,OAAO8B,GAAG;QACX,IAAIC,YAAYD,MAAMA,EAAEE,IAAI,KAAK,UAAU;YAC1C,OAAOC;QACR,OAAO;YACN,MAAMH;QACP;IACD;AACD;AAEA,SAASC,YAAYG,KAAc;IAClC,OAAOA,iBAAiBC,SAAS,UAAUD;AAC5C"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/check-issues/executor.ts"],"sourcesContent":["import { ExecutorContext, logger } from '@nx/devkit';\nimport { readFile } from 'fs/promises';\nimport { join } from 'path';\nimport { CheckIssuesExecutorSchema } from './schema';\n\nconst GITHUB_ISSUE_REGEX = /https:\\/\\/github.com\\/(?<owner>[^/]+)\\/(?<repo>[^/]+)\\/issues\\/(?<issueNumber>\\d+)/;\n\nexport default async function runExecutor(options: CheckIssuesExecutorSchema, context: ExecutorContext) {\n\tconst issuesMd = await tryLoadIssuesMd(context.root);\n\n\tif (issuesMd != null) {\n\t\tconst issueMdLines = issuesMd.split('\\n');\n\t\tawait printClosedIssueLines(issueMdLines);\n\t} else {\n\t\tlogger.info(\"There is no 'ISSUES.md' file in the workspace root.\");\n\t}\n\n\treturn {\n\t\tsuccess: true,\n\t};\n}\n\nasync function printClosedIssueLines(issueMdLines: string[]) {\n\tconst resolvedLines = await Promise.all(issueMdLines.map(resolveIssueMdLine));\n\tconst closedLines = resolvedLines.filter((resolvedLine) => resolvedLine.result === 'closed');\n\n\tif (closedLines.length > 0) {\n\t\tlogger.info('Issues which are closed now:');\n\n\t\tfor (const closedLine of closedLines) {\n\t\t\tlogger.info(`- ${closedLine.issueMdLine}`);\n\t\t}\n\t} else {\n\t\tlogger.info('No issues have been closed.');\n\t}\n}\n\nasync function resolveIssueMdLine(issueMdLine: string): Promise<{ issueMdLine: string; result: 'noissue' | 'active' | 'closed' }> {\n\tconst githubLink = issueMdLine.match(GITHUB_ISSUE_REGEX);\n\n\tif (!githubLink) {\n\t\treturn { issueMdLine, result: 'noissue' };\n\t}\n\n\tconst [, owner, repo, issueNumber] = githubLink;\n\n\tconst response = await fetch(`https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`);\n\tconst { state } = await response.json();\n\n\treturn {\n\t\tissueMdLine,\n\t\tresult: state === 'closed' ? 'closed' : 'active',\n\t};\n}\n\nasync function tryLoadIssuesMd(root: string): Promise<string | undefined> {\n\ttry {\n\t\treturn await readFile(join(root, 'ISSUES.md'), 'utf8');\n\t} catch (e) {\n\t\tif (isNodeError(e) && e.code === 'ENOENT') {\n\t\t\treturn undefined;\n\t\t} else {\n\t\t\tthrow e;\n\t\t}\n\t}\n}\n\nfunction isNodeError(error: unknown): error is NodeJS.ErrnoException {\n\treturn error instanceof Error && 'code' in error;\n}\n"],"names":["runExecutor","GITHUB_ISSUE_REGEX","options","context","issuesMd","tryLoadIssuesMd","root","issueMdLines","split","printClosedIssueLines","logger","info","success","resolvedLines","Promise","all","map","resolveIssueMdLine","closedLines","filter","resolvedLine","result","length","closedLine","issueMdLine","githubLink","match","owner","repo","issueNumber","response","fetch","state","json","readFile","join","e","isNodeError","code","undefined","error","Error"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";+BAOA;;;eAA8BA;;;wBAPU;0BACf;sBACJ;AAGrB,MAAMC,qBAAqB;AAEZ,eAAeD,YAAYE,OAAkC,EAAEC,OAAwB;IACrG,MAAMC,WAAW,MAAMC,gBAAgBF,QAAQG,IAAI;IAEnD,IAAIF,YAAY,MAAM;QACrB,MAAMG,eAAeH,SAASI,KAAK,CAAC;QACpC,MAAMC,sBAAsBF;IAC7B,OAAO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
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/check-issues/schema.d.ts"],"sourcesContent":["export interface CheckIssuesExecutorSchema {} // eslint-disable-line\n"],"names":[],"mappings":";CAA8C,sBAAsB"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/check-issues/schema.d.ts"],"sourcesContent":["export interface CheckIssuesExecutorSchema {} // eslint-disable-line\n"],"names":[],"rangeMappings":";","mappings":";CAA8C,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/dist-stat-comparer.ts"],"sourcesContent":["import { Stat } from './dist-stats';\n\nexport type ComparisonResult = {\n\treadonly totalSizeDifferencePercentage: number;\n\treadonly fileCountDifferencePercentage: number;\n\treadonly newFilesPercentage: number;\n\treadonly deletedFilesPercentage: number;\n};\n\nexport function compareStats(existingStats: Stat, newStats: Stat): ComparisonResult {\n\tconst totalSizeDifferencePercentage = countDiffPercentage(existingStats.size, newStats.size);\n\tconst fileCountDifferencePercentage = countDiffPercentage(countFiles(existingStats), countFiles(newStats));\n\tconst newFilesPercentage = countPercentage(countNewFiles(existingStats, newStats), countFiles(newStats));\n\tconst deletedFilesPercentage = countPercentage(countDeletedFiles(existingStats, newStats), countFiles(existingStats));\n\treturn {\n\t\ttotalSizeDifferencePercentage,\n\t\tfileCountDifferencePercentage,\n\t\tnewFilesPercentage,\n\t\tdeletedFilesPercentage,\n\t};\n}\n\nfunction countDiffPercentage(existingNumber: number, newNumber: number): number {\n\treturn countPercentage(newNumber - existingNumber, existingNumber);\n}\n\nfunction countPercentage(partNumber: number, totalNumber: number): number {\n\treturn Math.round((partNumber * 100) / totalNumber);\n}\n\nfunction countFiles(stats: Stat): number {\n\treturn stats.items.length + stats.items.reduce((result, item) => result + countFiles(item), 0);\n}\n\nfunction countNewFiles(existingStats: Stat, newStats: Stat): number {\n\tconst existingNames = flatFileNamesSet(existingStats);\n\tconst newNames = flatFileNamesList(newStats);\n\treturn newNames.filter((name) => !existingNames.has(name)).length;\n}\n\nfunction countDeletedFiles(existingStats: Stat, newStats: Stat): number {\n\tconst existingNames = flatFileNamesList(existingStats);\n\tconst newNames = flatFileNamesSet(newStats);\n\treturn existingNames.filter((name) => !newNames.has(name)).length;\n}\n\nfunction flatFileNamesSet(stats: Stat): Set<string> {\n\treturn new Set(flatFileNamesList(stats));\n}\n\nfunction flatFileNamesList(stats: Stat, prefix = ''): string[] {\n\treturn stats.items.map((item) => `${prefix}/${item.name}`).concat(stats.items.flatMap((item) => flatFileNamesList(item, item.name)));\n}\n"],"names":["compareStats","existingStats","newStats","totalSizeDifferencePercentage","countDiffPercentage","size","fileCountDifferencePercentage","countFiles","newFilesPercentage","countPercentage","countNewFiles","deletedFilesPercentage","countDeletedFiles","existingNumber","newNumber","partNumber","totalNumber","Math","round","stats","items","length","reduce","result","item","existingNames","flatFileNamesSet","newNames","flatFileNamesList","filter","name","has","Set","prefix","map","concat","flatMap"],"mappings":";+BASgBA;;;eAAAA;;;AAAT,SAASA,aAAaC,aAAmB,EAAEC,QAAc;IAC/D,MAAMC,gCAAgCC,oBAAoBH,cAAcI,IAAI,EAAEH,SAASG,IAAI;IAC3F,MAAMC,gCAAgCF,oBAAoBG,WAAWN,gBAAgBM,WAAWL;IAChG,MAAMM,qBAAqBC,gBAAgBC,cAAcT,eAAeC,WAAWK,WAAWL;IAC9F,MAAMS,yBAAyBF,gBAAgBG,kBAAkBX,eAAeC,WAAWK,WAAWN;IACtG,OAAO;QACNE;QACAG;QACAE;QACAG;IACD;AACD;AAEA,SAASP,oBAAoBS,cAAsB,EAAEC,SAAiB;IACrE,OAAOL,gBAAgBK,YAAYD,gBAAgBA;AACpD;AAEA,SAASJ,gBAAgBM,UAAkB,EAAEC,WAAmB;IAC/D,OAAOC,KAAKC,KAAK,CAAC,AAACH,aAAa,MAAOC;AACxC;AAEA,SAAST,WAAWY,KAAW;IAC9B,OAAOA,MAAMC,KAAK,CAACC,MAAM,GAAGF,MAAMC,KAAK,CAACE,MAAM,CAAC,CAACC,QAAQC,OAASD,SAAShB,WAAWiB,OAAO;AAC7F;AAEA,SAASd,cAAcT,aAAmB,EAAEC,QAAc;IACzD,MAAMuB,gBAAgBC,iBAAiBzB;IACvC,MAAM0B,WAAWC,kBAAkB1B;IACnC,OAAOyB,SAASE,MAAM,CAAC,CAACC,OAAS,CAACL,cAAcM,GAAG,CAACD,OAAOT,MAAM;AAClE;AAEA,SAAST,kBAAkBX,aAAmB,EAAEC,QAAc;IAC7D,MAAMuB,gBAAgBG,kBAAkB3B;IACxC,MAAM0B,WAAWD,iBAAiBxB;IAClC,OAAOuB,cAAcI,MAAM,CAAC,CAACC,OAAS,CAACH,SAASI,GAAG,CAACD,OAAOT,MAAM;AAClE;AAEA,SAASK,iBAAiBP,KAAW;IACpC,OAAO,IAAIa,IAAIJ,kBAAkBT;AAClC;AAEA,SAASS,kBAAkBT,KAAW,EAAEc,SAAS,EAAE;IAClD,OAAOd,MAAMC,KAAK,CAACc,GAAG,CAAC,CAACV,OAAS,CAAC,EAAES,OAAO,CAAC,EAAET,KAAKM,IAAI,CAAC,CAAC,EAAEK,MAAM,CAAChB,MAAMC,KAAK,CAACgB,OAAO,CAAC,CAACZ,OAASI,kBAAkBJ,MAAMA,KAAKM,IAAI;AAClI"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/dist-stat-comparer.ts"],"sourcesContent":["import { Stat } from './dist-stats';\n\nexport type ComparisonResult = {\n\treadonly totalSizeDifferencePercentage: number;\n\treadonly fileCountDifferencePercentage: number;\n\treadonly newFilesPercentage: number;\n\treadonly deletedFilesPercentage: number;\n};\n\nexport function compareStats(existingStats: Stat, newStats: Stat): ComparisonResult {\n\tconst totalSizeDifferencePercentage = countDiffPercentage(existingStats.size, newStats.size);\n\tconst fileCountDifferencePercentage = countDiffPercentage(countFiles(existingStats), countFiles(newStats));\n\tconst newFilesPercentage = countPercentage(countNewFiles(existingStats, newStats), countFiles(newStats));\n\tconst deletedFilesPercentage = countPercentage(countDeletedFiles(existingStats, newStats), countFiles(existingStats));\n\treturn {\n\t\ttotalSizeDifferencePercentage,\n\t\tfileCountDifferencePercentage,\n\t\tnewFilesPercentage,\n\t\tdeletedFilesPercentage,\n\t};\n}\n\nfunction countDiffPercentage(existingNumber: number, newNumber: number): number {\n\treturn countPercentage(newNumber - existingNumber, existingNumber);\n}\n\nfunction countPercentage(partNumber: number, totalNumber: number): number {\n\treturn Math.round((partNumber * 100) / totalNumber);\n}\n\nfunction countFiles(stats: Stat): number {\n\treturn stats.items.length + stats.items.reduce((result, item) => result + countFiles(item), 0);\n}\n\nfunction countNewFiles(existingStats: Stat, newStats: Stat): number {\n\tconst existingNames = flatFileNamesSet(existingStats);\n\tconst newNames = flatFileNamesList(newStats);\n\treturn newNames.filter((name) => !existingNames.has(name)).length;\n}\n\nfunction countDeletedFiles(existingStats: Stat, newStats: Stat): number {\n\tconst existingNames = flatFileNamesList(existingStats);\n\tconst newNames = flatFileNamesSet(newStats);\n\treturn existingNames.filter((name) => !newNames.has(name)).length;\n}\n\nfunction flatFileNamesSet(stats: Stat): Set<string> {\n\treturn new Set(flatFileNamesList(stats));\n}\n\nfunction flatFileNamesList(stats: Stat, prefix = ''): string[] {\n\treturn stats.items.map((item) => `${prefix}/${item.name}`).concat(stats.items.flatMap((item) => flatFileNamesList(item, item.name)));\n}\n"],"names":["compareStats","existingStats","newStats","totalSizeDifferencePercentage","countDiffPercentage","size","fileCountDifferencePercentage","countFiles","newFilesPercentage","countPercentage","countNewFiles","deletedFilesPercentage","countDeletedFiles","existingNumber","newNumber","partNumber","totalNumber","Math","round","stats","items","length","reduce","result","item","existingNames","flatFileNamesSet","newNames","flatFileNamesList","filter","name","has","Set","prefix","map","concat","flatMap"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";+BASgBA;;;eAAAA;;;AAAT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,CAACV,OAAS,CAAC,EAAES,OAAO,CAAC,EAAET,KAAKM,IAAI,CAAC,CAAC,EAAEK,MAAM,CAAChB,MAAMC,KAAK,CAACgB,OAAO,CAAC,CAACZ,OAASI,kBAAkBJ,MAAMA,KAAKM,IAAI;AAClI"}
|
|
@@ -6,11 +6,11 @@ function _export(target, all) {
|
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
8
|
_export(exports, {
|
|
9
|
-
loadExistingDistStats: function() {
|
|
10
|
-
return loadExistingDistStats;
|
|
11
|
-
},
|
|
12
9
|
calculateDistStats: function() {
|
|
13
10
|
return calculateDistStats;
|
|
11
|
+
},
|
|
12
|
+
loadExistingDistStats: function() {
|
|
13
|
+
return loadExistingDistStats;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
const _promises = require("fs/promises");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/dist-stats.ts"],"sourcesContent":["import { readFile, readdir, stat } from 'fs/promises';\nimport { join } from 'path';\nimport { withHashRemoved } from './with-hash-removed';\n\nexport type Stat = {\n\treadonly name: string;\n\treadonly size: number;\n\treadonly items: Stat[];\n};\n\nexport async function loadExistingDistStats(statsPath: string): Promise<Stat | undefined> {\n\ttry {\n\t\tconst statsStr = await readFile(statsPath, 'utf-8');\n\t\treturn JSON.parse(statsStr);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\nexport async function calculateDistStats(distDir: string, removeHashes: boolean): Promise<Stat> {\n\treturn getFolderStats(distDir, '', removeHashes);\n}\n\nasync function getFolderStats(root: string, relative: string, removeHashes: boolean): Promise<Stat> {\n\treturn calculateStats(root, relative, removeHashes);\n}\n\nasync function calculateStats(root: string, relative: string, removeHashes: boolean): Promise<Stat> {\n\tconst path = join(root, relative);\n\tconst stats = await stat(path);\n\n\tif (stats.isFile()) {\n\t\treturn {\n\t\t\tname: removeHashes ? withHashRemoved(relative) : relative,\n\t\t\tsize: stats.size,\n\t\t\titems: [],\n\t\t};\n\t} else if (stats.isDirectory()) {\n\t\tconst nestedFiles = await readdir(path);\n\t\tconst nestedStats = await Promise.all(nestedFiles.map((nestedFile) => calculateStats(join(root, relative), nestedFile, removeHashes)));\n\t\treturn {\n\t\t\tname: relative,\n\t\t\tsize: nestedStats.reduce((result, stat) => result + stat.size, 0),\n\t\t\titems: nestedStats.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t};\n\t} else {\n\t\tthrow new Error('What: ' + path);\n\t}\n}\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/dist-stats.ts"],"sourcesContent":["import { readFile, readdir, stat } from 'fs/promises';\nimport { join } from 'path';\nimport { withHashRemoved } from './with-hash-removed';\n\nexport type Stat = {\n\treadonly name: string;\n\treadonly size: number;\n\treadonly items: Stat[];\n};\n\nexport async function loadExistingDistStats(statsPath: string): Promise<Stat | undefined> {\n\ttry {\n\t\tconst statsStr = await readFile(statsPath, 'utf-8');\n\t\treturn JSON.parse(statsStr);\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n\nexport async function calculateDistStats(distDir: string, removeHashes: boolean): Promise<Stat> {\n\treturn getFolderStats(distDir, '', removeHashes);\n}\n\nasync function getFolderStats(root: string, relative: string, removeHashes: boolean): Promise<Stat> {\n\treturn calculateStats(root, relative, removeHashes);\n}\n\nasync function calculateStats(root: string, relative: string, removeHashes: boolean): Promise<Stat> {\n\tconst path = join(root, relative);\n\tconst stats = await stat(path);\n\n\tif (stats.isFile()) {\n\t\treturn {\n\t\t\tname: removeHashes ? withHashRemoved(relative) : relative,\n\t\t\tsize: stats.size,\n\t\t\titems: [],\n\t\t};\n\t} else if (stats.isDirectory()) {\n\t\tconst nestedFiles = await readdir(path);\n\t\tconst nestedStats = await Promise.all(nestedFiles.map((nestedFile) => calculateStats(join(root, relative), nestedFile, removeHashes)));\n\t\treturn {\n\t\t\tname: relative,\n\t\t\tsize: nestedStats.reduce((result, stat) => result + stat.size, 0),\n\t\t\titems: nestedStats.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t};\n\t} else {\n\t\tthrow new Error('What: ' + path);\n\t}\n}\n"],"names":["calculateDistStats","loadExistingDistStats","statsPath","statsStr","readFile","JSON","parse","undefined","distDir","removeHashes","getFolderStats","root","relative","calculateStats","path","join","stats","stat","isFile","name","withHashRemoved","size","items","isDirectory","nestedFiles","readdir","nestedStats","Promise","all","map","nestedFile","reduce","result","sort","a","b","localeCompare","Error"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;IAmBsBA,kBAAkB;eAAlBA;;IATAC,qBAAqB;eAArBA;;;0BAVkB;sBACnB;iCACW;AAQzB,eAAeA,sBAAsBC,SAAiB;IAC5D,IAAI;QACH,MAAMC,WAAW,MAAMC,IAAAA,kBAAQ,EAACF,WAAW;QAC3C,OAAOG,KAAKC,KAAK,CAACH;IACnB,EAAE,UAAM;QACP,OAAOI;IACR;AACD;AAEO,eAAeP,mBAAmBQ,OAAe,EAAEC,YAAqB;IAC9E,OAAOC,eAAeF,SAAS,IAAIC;AACpC;AAEA,eAAeC,eAAeC,IAAY,EAAEC,QAAgB,EAAEH,YAAqB;IAClF,OAAOI,eAAeF,MAAMC,UAAUH;AACvC;AAEA,eAAeI,eAAeF,IAAY,EAAEC,QAAgB,EAAEH,YAAqB;IAClF,MAAMK,OAAOC,IAAAA,UAAI,EAACJ,MAAMC;IACxB,MAAMI,QAAQ,MAAMC,IAAAA,cAAI,EAACH;IAEzB,IAAIE,MAAME,MAAM,IAAI;QACnB,OAAO;YACNC,MAAMV,eAAeW,IAAAA,gCAAe,EAACR,YAAYA;YACjDS,MAAML,MAAMK,IAAI;YAChBC,OAAO,EAAE;QACV;IACD,OAAO,IAAIN,MAAMO,WAAW,IAAI;QAC/B,MAAMC,cAAc,MAAMC,IAAAA,iBAAO,EAACX;QAClC,MAAMY,cAAc,MAAMC,QAAQC,GAAG,CAACJ,YAAYK,GAAG,CAAC,CAACC,aAAejB,eAAeE,IAAAA,UAAI,EAACJ,MAAMC,WAAWkB,YAAYrB;QACvH,OAAO;YACNU,MAAMP;YACNS,MAAMK,YAAYK,MAAM,CAAC,CAACC,QAAQf,OAASe,SAASf,KAAKI,IAAI,EAAE;YAC/DC,OAAOI,YAAYO,IAAI,CAAC,CAACC,GAAGC,IAAMD,EAAEf,IAAI,CAACiB,aAAa,CAACD,EAAEhB,IAAI;QAC9D;IACD,OAAO;QACN,MAAM,IAAIkB,MAAM,WAAWvB;IAC5B;AACD"}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "default", {
|
|
|
5
5
|
return verifyBuild;
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
|
-
const _extends = require("@swc/helpers/_/_extends");
|
|
9
8
|
const _devkit = require("@nx/devkit");
|
|
10
9
|
const _promises = require("fs/promises");
|
|
11
10
|
const _path = require("path");
|
|
@@ -29,7 +28,9 @@ async function verifyBuild(options, context) {
|
|
|
29
28
|
throw new Error('Configurations info not available for the project, target "build", in context info.');
|
|
30
29
|
}
|
|
31
30
|
let success = true;
|
|
32
|
-
const envBackup =
|
|
31
|
+
const envBackup = {
|
|
32
|
+
...process.env
|
|
33
|
+
};
|
|
33
34
|
for (const configurationName of Object.keys(projectConfig.targets['build'].configurations)){
|
|
34
35
|
retainEnv(envBackup);
|
|
35
36
|
const runContext = JSON.parse(JSON.stringify(context));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/executor.ts"],"sourcesContent":["import { ExecutorContext, logger, runExecutor } from '@nx/devkit';\nimport { mkdir, writeFile } from 'fs/promises';\nimport { join } from 'path';\nimport { compareStats } from './dist-stat-comparer';\nimport { calculateDistStats, loadExistingDistStats } from './dist-stats';\nimport { VerifyBuildExecutorSchema } from './schema';\n\nexport default async function verifyBuild(options: VerifyBuildExecutorSchema, context: ExecutorContext) {\n\tif (context.workspace == null) {\n\t\tthrow new Error('Workspace context info not available.');\n\t}\n\n\tif (context.projectName == null) {\n\t\tthrow new Error('Project name not specified in context info.');\n\t}\n\n\tconst projectConfig = context.workspace.projects[context.projectName];\n\n\tif (projectConfig.targets == null) {\n\t\tthrow new Error('Target info not available for the project in context info.');\n\t}\n\n\tconst distDir = join(context.root, projectConfig.targets['build'].options.outputPath);\n\tconst statsDir = join(context.root, projectConfig.root, '.stats');\n\tawait tryMkdir(statsDir);\n\n\tif (projectConfig.targets['build'].configurations == null) {\n\t\tthrow new Error('Configurations info not available for the project, target \"build\", in context info.');\n\t}\n\n\tlet success = true;\n\tconst envBackup = { ...process.env };\n\n\tfor (const configurationName of Object.keys(projectConfig.targets['build'].configurations)) {\n\t\tretainEnv(envBackup);\n\t\tconst runContext: ExecutorContext = JSON.parse(JSON.stringify(context));\n\n\t\tconst results = await runExecutor(\n\t\t\t{\n\t\t\t\tproject: runContext.projectName ?? '',\n\t\t\t\ttarget: 'build',\n\t\t\t\tconfiguration: configurationName,\n\t\t\t},\n\t\t\t{},\n\t\t\trunContext\n\t\t);\n\n\t\tfor await (const result of results) {\n\t\t\tif (!result.success) {\n\t\t\t\treturn { success: false };\n\t\t\t}\n\t\t}\n\n\t\tconst statsPath = join(statsDir, configurationName + '.json');\n\t\tconst existingStats = await loadExistingDistStats(statsPath);\n\t\tconst newStats = await calculateDistStats(distDir, options.removeHashes ?? true);\n\n\t\tawait writeFile(statsPath, JSON.stringify(newStats, null, '\\t'));\n\n\t\tif (existingStats != null) {\n\t\t\tconst comparison = compareStats(existingStats, newStats);\n\t\t\tlogger.info(\n\t\t\t\t`Stats for ${runContext.projectName}/${configurationName}: ${comparison.totalSizeDifferencePercentage}% total size difference, ${comparison.fileCountDifferencePercentage}% file count difference, ${comparison.newFilesPercentage}% new files, ${comparison.deletedFilesPercentage}% deleted files`\n\t\t\t);\n\n\t\t\tif (\n\t\t\t\tMath.abs(comparison.deletedFilesPercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.fileCountDifferencePercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.newFilesPercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.totalSizeDifferencePercentage) > 10\n\t\t\t) {\n\t\t\t\tsuccess = false;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { success };\n}\n\nasync function tryMkdir(statsDir: string) {\n\ttry {\n\t\tawait mkdir(statsDir);\n\t} catch {\n\t\t// ignore\n\t}\n}\n\nfunction retainEnv(envBackup: Record<string, unknown>): void {\n\tfor (const key of Object.keys(process.env)) {\n\t\tdelete process.env[key];\n\t}\n\tObject.assign(process.env, envBackup);\n}\n"],"names":["verifyBuild","options","context","workspace","Error","projectName","projectConfig","projects","targets","distDir","join","root","outputPath","statsDir","tryMkdir","configurations","success","envBackup","process","env","configurationName","Object","keys","retainEnv","runContext","JSON","parse","stringify","results","runExecutor","project","target","configuration","result","statsPath","existingStats","loadExistingDistStats","newStats","calculateDistStats","removeHashes","writeFile","comparison","compareStats","logger","info","totalSizeDifferencePercentage","fileCountDifferencePercentage","newFilesPercentage","deletedFilesPercentage","Math","abs","mkdir","key","assign"],"mappings":";+BAOA;;;eAA8BA
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/executor.ts"],"sourcesContent":["import { ExecutorContext, logger, runExecutor } from '@nx/devkit';\nimport { mkdir, writeFile } from 'fs/promises';\nimport { join } from 'path';\nimport { compareStats } from './dist-stat-comparer';\nimport { calculateDistStats, loadExistingDistStats } from './dist-stats';\nimport { VerifyBuildExecutorSchema } from './schema';\n\nexport default async function verifyBuild(options: VerifyBuildExecutorSchema, context: ExecutorContext) {\n\tif (context.workspace == null) {\n\t\tthrow new Error('Workspace context info not available.');\n\t}\n\n\tif (context.projectName == null) {\n\t\tthrow new Error('Project name not specified in context info.');\n\t}\n\n\tconst projectConfig = context.workspace.projects[context.projectName];\n\n\tif (projectConfig.targets == null) {\n\t\tthrow new Error('Target info not available for the project in context info.');\n\t}\n\n\tconst distDir = join(context.root, projectConfig.targets['build'].options.outputPath);\n\tconst statsDir = join(context.root, projectConfig.root, '.stats');\n\tawait tryMkdir(statsDir);\n\n\tif (projectConfig.targets['build'].configurations == null) {\n\t\tthrow new Error('Configurations info not available for the project, target \"build\", in context info.');\n\t}\n\n\tlet success = true;\n\tconst envBackup = { ...process.env };\n\n\tfor (const configurationName of Object.keys(projectConfig.targets['build'].configurations)) {\n\t\tretainEnv(envBackup);\n\t\tconst runContext: ExecutorContext = JSON.parse(JSON.stringify(context));\n\n\t\tconst results = await runExecutor(\n\t\t\t{\n\t\t\t\tproject: runContext.projectName ?? '',\n\t\t\t\ttarget: 'build',\n\t\t\t\tconfiguration: configurationName,\n\t\t\t},\n\t\t\t{},\n\t\t\trunContext\n\t\t);\n\n\t\tfor await (const result of results) {\n\t\t\tif (!result.success) {\n\t\t\t\treturn { success: false };\n\t\t\t}\n\t\t}\n\n\t\tconst statsPath = join(statsDir, configurationName + '.json');\n\t\tconst existingStats = await loadExistingDistStats(statsPath);\n\t\tconst newStats = await calculateDistStats(distDir, options.removeHashes ?? true);\n\n\t\tawait writeFile(statsPath, JSON.stringify(newStats, null, '\\t'));\n\n\t\tif (existingStats != null) {\n\t\t\tconst comparison = compareStats(existingStats, newStats);\n\t\t\tlogger.info(\n\t\t\t\t`Stats for ${runContext.projectName}/${configurationName}: ${comparison.totalSizeDifferencePercentage}% total size difference, ${comparison.fileCountDifferencePercentage}% file count difference, ${comparison.newFilesPercentage}% new files, ${comparison.deletedFilesPercentage}% deleted files`\n\t\t\t);\n\n\t\t\tif (\n\t\t\t\tMath.abs(comparison.deletedFilesPercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.fileCountDifferencePercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.newFilesPercentage) > 10 ||\n\t\t\t\tMath.abs(comparison.totalSizeDifferencePercentage) > 10\n\t\t\t) {\n\t\t\t\tsuccess = false;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { success };\n}\n\nasync function tryMkdir(statsDir: string) {\n\ttry {\n\t\tawait mkdir(statsDir);\n\t} catch {\n\t\t// ignore\n\t}\n}\n\nfunction retainEnv(envBackup: Record<string, unknown>): void {\n\tfor (const key of Object.keys(process.env)) {\n\t\tdelete process.env[key];\n\t}\n\tObject.assign(process.env, envBackup);\n}\n"],"names":["verifyBuild","options","context","workspace","Error","projectName","projectConfig","projects","targets","distDir","join","root","outputPath","statsDir","tryMkdir","configurations","success","envBackup","process","env","configurationName","Object","keys","retainEnv","runContext","JSON","parse","stringify","results","runExecutor","project","target","configuration","result","statsPath","existingStats","loadExistingDistStats","newStats","calculateDistStats","removeHashes","writeFile","comparison","compareStats","logger","info","totalSizeDifferencePercentage","fileCountDifferencePercentage","newFilesPercentage","deletedFilesPercentage","Math","abs","mkdir","key","assign"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";+BAOA;;;eAA8BA;;;wBAPuB;0BACpB;sBACZ;kCACQ;2BAC6B;AAG3C,eAAeA,YAAYC,OAAkC,EAAEC,OAAwB;IACrG,IAAIA,QAAQC,SAAS,IAAI,MAAM;QAC9B,MAAM,IAAIC,MAAM;IACjB;IAEA,IAAIF,QAAQG,WAAW,IAAI,MAAM;QAChC,MAAM,IAAID,MAAM;IACjB;IAEA,MAAME,gBAAgBJ,QAAQC,SAAS,CAACI,QAAQ,CAACL,QAAQG,WAAW,CAAC;IAErE,IAAIC,cAAcE,OAAO,IAAI,MAAM;QAClC,MAAM,IAAIJ,MAAM;IACjB;IAEA,MAAMK,UAAUC,IAAAA,UAAI,EAACR,QAAQS,IAAI,EAAEL,cAAcE,OAAO,CAAC,QAAQ,CAACP,OAAO,CAACW,UAAU;IACpF,MAAMC,WAAWH,IAAAA,UAAI,EAACR,QAAQS,IAAI,EAAEL,cAAcK,IAAI,EAAE;IACxD,MAAMG,SAASD;IAEf,IAAI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CAAC;YAGrS,IACCC,KAAKC,GAAG,CAACT,WAAWO,sBAAsB,IAAI,MAC9CC,KAAKC,GAAG,CAACT,WAAWK,6BAA6B,IAAI,MACrDG,KAAKC,GAAG,CAACT,WAAWM,kBAAkB,IAAI,MAC1CE,KAAKC,GAAG,CAACT,WAAWI,6BAA6B,IAAI,IACpD;gBACD7B,UAAU;YACX;QACD;IACD;IAEA,OAAO;QAAEA;IAAQ;AAClB;AAEA,eAAeF,SAASD,QAAgB;IACvC,IAAI;QACH,MAAMsC,IAAAA,eAAK,EAACtC;IACb,EAAE,UAAM;IACP,SAAS;IACV;AACD;AAEA,SAASU,UAAUN,SAAkC;IACpD,KAAK,MAAMmC,OAAO/B,OAAOC,IAAI,CAACJ,QAAQC,GAAG,EAAG;QAC3C,OAAOD,QAAQC,GAAG,CAACiC,IAAI;IACxB;IACA/B,OAAOgC,MAAM,CAACnC,QAAQC,GAAG,EAAEF;AAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/schema.d.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/schema.d.ts"],"names":[],"rangeMappings":"","mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/with-hash-removed.ts"],"sourcesContent":["const HASH_REGEX = /\\.[a-f0-9]{16}\\./g;\n\nexport function withHashRemoved(fileName: string): string {\n\treturn fileName.replace(HASH_REGEX, '.');\n}\n"],"names":["withHashRemoved","HASH_REGEX","fileName","replace"],"mappings":";+BAEgBA;;;eAAAA;;;AAFhB,MAAMC,aAAa;AAEZ,SAASD,gBAAgBE,QAAgB;IAC/C,OAAOA,SAASC,OAAO,CAACF,YAAY;AACrC"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../packages/upgrade-verify/src/executors/verify-build/with-hash-removed.ts"],"sourcesContent":["const HASH_REGEX = /\\.[a-f0-9]{16}\\./g;\n\nexport function withHashRemoved(fileName: string): string {\n\treturn fileName.replace(HASH_REGEX, '.');\n}\n"],"names":["withHashRemoved","HASH_REGEX","fileName","replace"],"rangeMappings":";;;;;;;;;;","mappings":";+BAEgBA;;;eAAAA;;;AAFhB,MAAMC,aAAa;AAEZ,SAASD,gBAAgBE,QAAgB;IAC/C,OAAOA,SAASC,OAAO,CAACF,YAAY;AACrC"}
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../packages/upgrade-verify/src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["../../../../packages/upgrade-verify/src/index.ts"],"names":[],"rangeMappings":"","mappings":""}
|