@comet/upgrade 1.97.0 → 1.99.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.
|
@@ -37,10 +37,13 @@ async function updateDamConfiguration() {
|
|
|
37
37
|
moduleSpecifier: "@comet/cms-api",
|
|
38
38
|
});
|
|
39
39
|
// Add ImgproxyModule configuration
|
|
40
|
-
const importsArray = sourceFile
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
const importsArray = sourceFile
|
|
41
|
+
.getClass("AppModule")
|
|
42
|
+
?.getStaticMethod("forRoot")
|
|
43
|
+
?.getFirstDescendantByKind(ts_morph_1.SyntaxKind.ReturnStatement)
|
|
44
|
+
?.getFirstDescendantByKind(ts_morph_1.SyntaxKind.ObjectLiteralExpression)
|
|
45
|
+
?.getProperty("imports")
|
|
46
|
+
?.getFirstDescendantByKind(ts_morph_1.SyntaxKind.ArrayLiteralExpression);
|
|
44
47
|
if (importsArray) {
|
|
45
48
|
const imgproxyModuleCall = sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.CallExpression).find((call) => {
|
|
46
49
|
const expression = call.getExpression();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/upgrade",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.0",
|
|
4
4
|
"description": "Upgrade scripts for Comet DXP",
|
|
5
5
|
"homepage": "https://github.com/vivid-planet/comet-upgrade#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/semver": "^7.7.1",
|
|
42
42
|
"husky": "^8.0.3",
|
|
43
43
|
"lint-staged": "^13.3.0",
|
|
44
|
-
"npm-run-all2": "^
|
|
44
|
+
"npm-run-all2": "^8.0.4",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"typescript": "~5.1.0"
|
|
47
47
|
},
|