@comet/upgrade 1.100.0 → 1.102.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/lib/index.js +17 -7
- package/lib/util/execute-command.util.js +1 -2
- package/lib/util/format-code.util.js +1 -2
- package/lib/util/get-latest-package-version.js +1 -2
- package/lib/util/update-dependency-version.util.js +1 -2
- package/lib/v4/remove-clear-types-script.js +1 -1
- package/lib/v6/rename-build-runtime.js +1 -1
- package/lib/v6/rename-job-status-enum.js +1 -1
- package/lib/v6/rename-subject-entity-decorator.js +1 -1
- package/lib/v7/add-site-preview-secret.js +18 -8
- package/lib/v7/hide-graphql-field-suggestions.js +1 -1
- package/lib/v7/import-admin-theme-types.js +1 -1
- package/lib/v7/rename-date-filter-to-date-time-filter.js +1 -1
- package/lib/v7/replace-exception-interceptor-with-exception-filter.js +1 -1
- package/lib/v7/replace-gridcoldef-import.js +1 -1
- package/lib/v7/replace-roboto-with-roboto-flex.js +1 -1
- package/lib/v7/use-graphql-scalars.js +1 -1
- package/lib/v8/admin/after-install/add-dialog-content-to-edit-dialog.js +1 -1
- package/lib/v8/admin/after-install/clipboard-helpers.js +1 -1
- package/lib/v8/admin/after-install/comet-config-provider.js +2 -2
- package/lib/v8/admin/after-install/merge-admin-theme-into-admin.js +1 -1
- package/lib/v8/admin/after-install/merge-blocks-admin-into-cms-admin.js +1 -1
- package/lib/v8/admin/after-install/mui-codemods.js +1 -1
- package/lib/v8/admin/after-install/mui-data-grid-remove-error-prop.js +1 -1
- package/lib/v8/admin/after-install/mui-grid-sort-to-gql.js +1 -1
- package/lib/v8/admin/after-install/mui-x-codemods.js +1 -1
- package/lib/v8/admin/after-install/rename-menu-components-in-admin.js +1 -1
- package/lib/v8/admin/after-install/replace-mui-button-with-comet-admin-button.js +1 -1
- package/lib/v8/admin/after-install/tooltip-1-update-import.js +1 -1
- package/lib/v8/admin/after-install/tooltip-2-remove-trigger-prop.js +1 -1
- package/lib/v8/admin/after-install/update-import-of-dialog.js +1 -1
- package/lib/v8/admin/before-install/remove-admin-theme-package.js +1 -1
- package/lib/v8/admin/before-install/remove-blocks-packages-admin.js +1 -1
- package/lib/v8/admin/before-install/remove-comet-admin-react-select-dependency.js +1 -1
- package/lib/v8/admin/before-install/remove-v8-eslint-disable-comments-admin.js +1 -1
- package/lib/v8/admin/before-install/update-mui-dependencies.js +1 -1
- package/lib/v8/admin/before-install/update-mui-x-dependencies.js +1 -1
- package/lib/v8/admin/before-install/update-react-dependencies.js +1 -1
- package/lib/v8/admin/before-install/update-swc-dependencies.js +1 -1
- package/lib/v8/admin/before-install/use-mui-date-picker-in-grid.js +1 -1
- package/lib/v8/api/after-install/merge-blocks-api-into-cms-api.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-base-entity-generic.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-create-request-context.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-custom-type.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-delete-rule.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-dotenv.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-imports.js +1 -1
- package/lib/v8/api/after-install/mikro-orm-ormconfig.js +1 -1
- package/lib/v8/api/after-install/move-maxSrcResolution-in-comet-config.js +1 -1
- package/lib/v8/api/after-install/replace-playground-with-graphiql.js +1 -1
- package/lib/v8/api/after-install/update-dam-configuration.js +1 -1
- package/lib/v8/api/after-install/update-graphql-format-error.js +1 -1
- package/lib/v8/api/after-install/update-s3-config.js +1 -1
- package/lib/v8/api/before-install/nest-peer-dependencies.js +1 -1
- package/lib/v8/api/before-install/remove-blocks-packages-api.js +1 -1
- package/lib/v8/api/before-install/remove-passport.js +1 -1
- package/lib/v8/api/before-install/replace-nestjs-console-with-nest-commander.js +1 -1
- package/lib/v8/api/before-install/update-class-validator.js +1 -1
- package/lib/v8/api/before-install/update-kubernetes-client-node.js +1 -1
- package/lib/v8/api/before-install/update-mikro-orm-dependencies.js +1 -1
- package/lib/v8/api/before-install/update-nest-dependencies.js +1 -1
- package/lib/v8/api/before-install/update-sentry.js +1 -1
- package/lib/v8/eslint-dev-dependencies.js +1 -1
- package/lib/v8/ignore-restricted-imports-admin.js +1 -1
- package/lib/v8/prettier-dev-dependencies.js +1 -1
- package/lib/v8/remove-graphql-fetch-from-site-preview-route.js +1 -1
- package/lib/v8/remove-react-barrel-imports-admin.js +1 -1
- package/lib/v8/remove-react-barrel-imports-site.js +1 -1
- package/lib/v8/replace-node-with-v22-in-gitlab-ci-files.js +18 -8
- package/lib/v8/replace-node-with-v22-locally.js +1 -1
- package/lib/v8/site/after-install/remove-graphql-client-from-site-preview-handlers.js +1 -1
- package/lib/v9/admin/after-install/tooltip-replace-variant-prop.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.executeCommand =
|
|
3
|
+
exports.executeCommand = executeCommand;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
// Inspired by https://github.com/facebook/create-react-app/blob/main/packages/create-react-app/createReactApp.js#L383
|
|
6
6
|
function executeCommand(command, args = [], options) {
|
|
@@ -19,4 +19,3 @@ function executeCommand(command, args = [], options) {
|
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
exports.executeCommand = executeCommand;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatCode =
|
|
3
|
+
exports.formatCode = formatCode;
|
|
4
4
|
const eslint_1 = require("eslint");
|
|
5
5
|
async function formatCode(code, filePath) {
|
|
6
6
|
const eslint = new eslint_1.ESLint({ cwd: process.cwd(), fix: true });
|
|
7
7
|
const lintResult = await eslint.lintText(code, { filePath });
|
|
8
8
|
return lintResult[0]?.output ?? lintResult[0]?.source ?? code;
|
|
9
9
|
}
|
|
10
|
-
exports.formatCode = formatCode;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getLatestPackageVersion =
|
|
6
|
+
exports.getLatestPackageVersion = getLatestPackageVersion;
|
|
7
7
|
const semver_1 = __importDefault(require("semver"));
|
|
8
8
|
async function getLatestPackageVersion(packageName, majorVersion) {
|
|
9
9
|
const url = `https://registry.npmjs.org/${packageName}`;
|
|
@@ -24,4 +24,3 @@ async function getLatestPackageVersion(packageName, majorVersion) {
|
|
|
24
24
|
throw new Error(`Failed to fetch package info for ${packageName}: ${error}`);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.getLatestPackageVersion = getLatestPackageVersion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateDependencyVersion =
|
|
3
|
+
exports.updateDependencyVersion = updateDependencyVersion;
|
|
4
4
|
const promises_1 = require("fs/promises");
|
|
5
5
|
const format_code_util_1 = require("./format-code.util");
|
|
6
6
|
async function updateDependencyVersion(packageJsonPath, packageName, newVersion) {
|
|
@@ -12,4 +12,3 @@ async function updateDependencyVersion(packageJsonPath, packageName, newVersion)
|
|
|
12
12
|
const updatedContent = JSON.stringify(packageJson, null, 4);
|
|
13
13
|
await (0, promises_1.writeFile)(packageJsonPath, await (0, format_code_util_1.formatCode)(updatedContent, packageJsonPath));
|
|
14
14
|
}
|
|
15
|
-
exports.updateDependencyVersion = updateDependencyVersion;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = removeClearTypesScript;
|
|
6
7
|
const fs_1 = __importDefault(require("fs"));
|
|
7
8
|
const prettier_1 = __importDefault(require("prettier"));
|
|
8
9
|
/**
|
|
@@ -25,4 +26,3 @@ async function removeClearTypesScript() {
|
|
|
25
26
|
const prettierConfig = await prettier_1.default.resolveConfig(process.cwd());
|
|
26
27
|
fs_1.default.writeFileSync("site/package.json", await prettier_1.default.format(JSON.stringify(sitePackageJson), { ...prettierConfig, parser: "json" }));
|
|
27
28
|
}
|
|
28
|
-
exports.default = removeClearTypesScript;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameBuildRuntime;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -17,4 +18,3 @@ async function renameBuildRuntime() {
|
|
|
17
18
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
exports.default = renameBuildRuntime;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameJobStatusEnum;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -18,4 +19,3 @@ async function renameJobStatusEnum() {
|
|
|
18
19
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
exports.default = renameJobStatusEnum;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameSubjectEntityDecorator;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -17,4 +18,3 @@ async function renameSubjectEntityDecorator() {
|
|
|
17
18
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
exports.default = renameSubjectEntityDecorator;
|
|
@@ -15,17 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.default = addSitePreviewSecret;
|
|
29
40
|
const crypto = __importStar(require("node:crypto"));
|
|
30
41
|
const fs_1 = __importDefault(require("fs"));
|
|
31
42
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -39,7 +50,6 @@ async function addSitePreviewSecret() {
|
|
|
39
50
|
updateChart();
|
|
40
51
|
await executeHelmDependencyUpdate();
|
|
41
52
|
}
|
|
42
|
-
exports.default = addSitePreviewSecret;
|
|
43
53
|
function updateApiFiles1() {
|
|
44
54
|
const project = new ts_morph_1.Project({ tsConfigFilePath: "./api/tsconfig.json" });
|
|
45
55
|
const sourceFile = project.getSourceFile("api/src/config/environment-variables.ts");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = hideGraphqlFieldSuggestions;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* Adds the `formatError` property to `GraphQLModule` options to hide `GraphQL` field suggestions for non dev environments.
|
|
@@ -61,4 +62,3 @@ async function hideGraphqlFieldSuggestions() {
|
|
|
61
62
|
});
|
|
62
63
|
sourceFile.saveSync();
|
|
63
64
|
}
|
|
64
|
-
exports.default = hideGraphqlFieldSuggestions;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = importAdminThemeTypes;
|
|
6
7
|
const fs_1 = __importDefault(require("fs"));
|
|
7
8
|
const promises_1 = require("fs/promises");
|
|
8
9
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -24,4 +25,3 @@ async function importAdminThemeTypes() {
|
|
|
24
25
|
${fileContent}`;
|
|
25
26
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
26
27
|
}
|
|
27
|
-
exports.default = importAdminThemeTypes;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameDateFilterToDateTimeFilter;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -15,4 +16,3 @@ async function renameDateFilterToDateTimeFilter() {
|
|
|
15
16
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
exports.default = renameDateFilterToDateTimeFilter;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceExceptionInterceptorWithExceptionFilter;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* Replaces the old ExceptionInterceptor with the new ExceptionFilter
|
|
@@ -42,4 +43,3 @@ async function replaceExceptionInterceptorWithExceptionFilter() {
|
|
|
42
43
|
cmsApiImport.addNamedImport("ExceptionFilter");
|
|
43
44
|
await sourceFile.save();
|
|
44
45
|
}
|
|
45
|
-
exports.default = replaceExceptionInterceptorWithExceptionFilter;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceGridColDefImport;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -36,4 +37,3 @@ async function replaceGridColDefImport() {
|
|
|
36
37
|
sourceFile.saveSync();
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
exports.default = replaceGridColDefImport;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceRobotoWithRobotoFlex;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const execute_command_util_1 = require("../util/execute-command.util");
|
|
5
6
|
const format_code_util_1 = require("../util/format-code.util");
|
|
@@ -12,7 +13,6 @@ async function replaceRobotoWithRobotoFlex() {
|
|
|
12
13
|
await addNewPackageImport();
|
|
13
14
|
await (0, execute_command_util_1.executeCommand)("npm", ["install", "--prefix", "admin", "--no-audit", "--loglevel", "error"]);
|
|
14
15
|
}
|
|
15
|
-
exports.default = replaceRobotoWithRobotoFlex;
|
|
16
16
|
const replacePackageInPackageJson = async () => {
|
|
17
17
|
const filePath = "admin/package.json";
|
|
18
18
|
let fileContent = (await (0, promises_1.readFile)(filePath)).toString();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = useGraphqlScalars;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const execute_command_util_1 = require("../util/execute-command.util");
|
|
@@ -36,4 +37,3 @@ async function useGraphqlScalars() {
|
|
|
36
37
|
await (0, promises_1.writeFile)(filePath, await (0, format_code_util_1.formatCode)(fileContent, filePath));
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
exports.default = useGraphqlScalars;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = addDialogContentToEditDialog;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function addDialogContentToEditDialog() {
|
|
5
6
|
const project = new ts_morph_1.Project({ tsConfigFilePath: "./admin/tsconfig.json" });
|
|
@@ -78,4 +79,3 @@ async function addDialogContentToEditDialog() {
|
|
|
78
79
|
});
|
|
79
80
|
await project.save();
|
|
80
81
|
}
|
|
81
|
-
exports.default = addDialogContentToEditDialog;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateClipboardHelpers;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
/**
|
|
@@ -65,4 +66,3 @@ async function updateClipboardHelpers() {
|
|
|
65
66
|
await sourceFile.save();
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
exports.default = updateClipboardHelpers;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = cometConfigProvider;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
async function cometConfigProvider() {
|
|
@@ -66,7 +67,7 @@ async function cometConfigProvider() {
|
|
|
66
67
|
if (cmsAdminImport.getNamedImports().some((namedImport) => namedImport.getName() === "PagesPage")) {
|
|
67
68
|
hasPageTree = true;
|
|
68
69
|
[
|
|
69
|
-
...sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.JsxOpeningElement),
|
|
70
|
+
...sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.JsxOpeningElement), // <PagesPage>...</PagesPage>
|
|
70
71
|
...sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.JsxSelfClosingElement), // <PagesPage />
|
|
71
72
|
].forEach((jsxElement) => {
|
|
72
73
|
const tagName = jsxElement.getTagNameNode().getText();
|
|
@@ -301,4 +302,3 @@ async function cometConfigProvider() {
|
|
|
301
302
|
}
|
|
302
303
|
await appTsxFile.save();
|
|
303
304
|
}
|
|
304
|
-
exports.default = cometConfigProvider;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mergeAdminThemeIntoAdmin;
|
|
3
4
|
const fs_1 = require("fs");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -50,4 +51,3 @@ async function mergeAdminThemeIntoAdmin() {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
exports.default = mergeAdminThemeIntoAdmin;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mergeBlocksAdminIntoCmsAdmin;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -53,4 +54,3 @@ async function mergeBlocksAdminIntoCmsAdmin() {
|
|
|
53
54
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
exports.default = mergeBlocksAdminIntoCmsAdmin;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = executeMuiCodemods;
|
|
3
4
|
const execute_command_util_1 = require("../../../util/execute-command.util");
|
|
4
5
|
async function executeMuiCodemods() {
|
|
5
6
|
await (0, execute_command_util_1.executeCommand)("npx", ["@mui/codemod@latest", "v6.0.0/list-item-button-prop", "admin/src"]);
|
|
@@ -10,4 +11,3 @@ async function executeMuiCodemods() {
|
|
|
10
11
|
await (0, execute_command_util_1.executeCommand)("npx", ["@mui/codemod@latest", "v7.0.0/input-label-size-normal-medium", "admin/src"]);
|
|
11
12
|
await (0, execute_command_util_1.executeCommand)("npx", ["@mui/codemod@latest", "v7.0.0/lab-removed-components", "admin/src"]);
|
|
12
13
|
}
|
|
13
|
-
exports.default = executeMuiCodemods;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeMuiDataGridErrorProp;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function removeMuiDataGridErrorProp() {
|
|
5
6
|
console.log("Remove error prop from DataGrid and DataGridPro components");
|
|
@@ -43,4 +44,3 @@ async function removeMuiDataGridErrorProp() {
|
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
exports.default = removeMuiDataGridErrorProp;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateMuiXVersion;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
/**
|
|
@@ -34,4 +35,3 @@ async function updateMuiXVersion() {
|
|
|
34
35
|
await sourceFile.save();
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
exports.default = updateMuiXVersion;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = executeMuiXCodemods;
|
|
3
4
|
const execute_command_util_1 = require("../../../util/execute-command.util");
|
|
4
5
|
async function executeMuiXCodemods() {
|
|
5
6
|
await (0, execute_command_util_1.executeCommand)("npx", ["@mui/x-codemod@latest", "v6.0.0/data-grid/preset-safe", "admin/src"]);
|
|
6
7
|
await (0, execute_command_util_1.executeCommand)("npx", ["@mui/x-codemod@latest", "v7.0.0/data-grid/preset-safe", "admin/src"]);
|
|
7
8
|
}
|
|
8
|
-
exports.default = executeMuiXCodemods;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameComponents;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
const renameMap = {
|
|
@@ -63,4 +64,3 @@ async function renameComponents() {
|
|
|
63
64
|
await sourceFile.save();
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
exports.default = renameComponents;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceMuiButtonWithCometAdminButton;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function replaceMuiButtonWithCometAdminButton() {
|
|
5
6
|
const project = new ts_morph_1.Project({ tsConfigFilePath: "./admin/tsconfig.json" });
|
|
@@ -45,4 +46,3 @@ async function replaceMuiButtonWithCometAdminButton() {
|
|
|
45
46
|
}
|
|
46
47
|
await project.save();
|
|
47
48
|
}
|
|
48
|
-
exports.default = replaceMuiButtonWithCometAdminButton;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateImportOfTooltip;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
async function updateImportOfTooltip() {
|
|
@@ -40,4 +41,3 @@ async function updateImportOfTooltip() {
|
|
|
40
41
|
await sourceFile.save();
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
exports.default = updateImportOfTooltip;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeTooltipTriggerProp;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function removeTooltipTriggerProp() {
|
|
5
6
|
const project = new ts_morph_1.Project({ tsConfigFilePath: "./admin/tsconfig.json" });
|
|
@@ -28,4 +29,3 @@ async function removeTooltipTriggerProp() {
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
exports.default = removeTooltipTriggerProp;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateImportOfDialog;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
async function updateImportOfDialog() {
|
|
@@ -40,4 +41,3 @@ async function updateImportOfDialog() {
|
|
|
40
41
|
await sourceFile.save();
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
exports.default = updateImportOfDialog;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removeAdminThemePackage;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -15,4 +16,3 @@ async function removeAdminThemePackage() {
|
|
|
15
16
|
packageJson.save();
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
exports.default = removeAdminThemePackage;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removeBlocksPackagesAdmin;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -11,4 +12,3 @@ async function removeBlocksPackagesAdmin() {
|
|
|
11
12
|
packageJson.save();
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
exports.default = removeBlocksPackagesAdmin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removeCometAdminReactSelectDependency;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -12,4 +13,3 @@ async function removeCometAdminReactSelectDependency() {
|
|
|
12
13
|
packageJson.removeDependency("@comet/admin-react-select");
|
|
13
14
|
packageJson.save();
|
|
14
15
|
}
|
|
15
|
-
exports.default = removeCometAdminReactSelectDependency;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removeV8EslintDisableCommentsAdmin;
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
exports.stage = "before-install";
|
|
6
7
|
async function removeV8EslintDisableCommentsAdmin() {
|
|
@@ -34,4 +35,3 @@ async function removeV8EslintDisableCommentsAdmin() {
|
|
|
34
35
|
}
|
|
35
36
|
await project.save();
|
|
36
37
|
}
|
|
37
|
-
exports.default = removeV8EslintDisableCommentsAdmin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateMuiDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -17,4 +18,3 @@ async function updateMuiDependencies() {
|
|
|
17
18
|
packageJson.updateDependency("@mui/lab", "^7.0.0-beta.9");
|
|
18
19
|
packageJson.save();
|
|
19
20
|
}
|
|
20
|
-
exports.default = updateMuiDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateMuiXDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -14,4 +15,3 @@ async function updateMuiXDependencies() {
|
|
|
14
15
|
packageJson.addDependency("@mui/x-data-grid-pro", "^7.0.0");
|
|
15
16
|
packageJson.save();
|
|
16
17
|
}
|
|
17
|
-
exports.default = updateMuiXDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateReactDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -15,4 +16,3 @@ async function updateReactDependencies() {
|
|
|
15
16
|
packageJson.updateDependency("@types/react-dom", "^18.3.5");
|
|
16
17
|
packageJson.save();
|
|
17
18
|
}
|
|
18
|
-
exports.default = updateReactDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateSwcDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -13,4 +14,3 @@ async function updateSwcDependencies() {
|
|
|
13
14
|
packageJson.updateDependency("@swc/plugin-emotion", "^8.7.2");
|
|
14
15
|
packageJson.save();
|
|
15
16
|
}
|
|
16
|
-
exports.default = updateSwcDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = UseMuiDatePickerInGrid;
|
|
4
5
|
const node_fs_1 = require("node:fs");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
6
7
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
@@ -85,4 +86,3 @@ async function UseMuiDatePickerInGrid() {
|
|
|
85
86
|
}
|
|
86
87
|
await appFile.save();
|
|
87
88
|
}
|
|
88
|
-
exports.default = UseMuiDatePickerInGrid;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mergeBlocksApiIntoCmsApi;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -49,4 +50,3 @@ async function mergeBlocksApiIntoCmsApi() {
|
|
|
49
50
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
exports.default = mergeBlocksApiIntoCmsApi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeGenericFromBaseEntity;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
/**
|
|
@@ -14,4 +15,3 @@ async function removeGenericFromBaseEntity() {
|
|
|
14
15
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.default = removeGenericFromBaseEntity;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mikroOrmCreateRequestContext;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
/**
|
|
@@ -31,4 +32,3 @@ async function mikroOrmCreateRequestContext() {
|
|
|
31
32
|
await sourceFile.save();
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
exports.default = mikroOrmCreateRequestContext;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceCustomType;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
/**
|
|
@@ -14,4 +15,3 @@ async function replaceCustomType() {
|
|
|
14
15
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.default = replaceCustomType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = renameOnDelete;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
/**
|
|
@@ -14,4 +15,3 @@ async function renameOnDelete() {
|
|
|
14
15
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.default = renameOnDelete;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = addDotenvCallToConfig;
|
|
3
4
|
const fs_1 = require("fs");
|
|
4
5
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
5
6
|
/**
|
|
@@ -14,4 +15,3 @@ async function addDotenvCallToConfig() {
|
|
|
14
15
|
packageJson.addScript("mikro-orm", "dotenv -e .env.secrets -e .env.local -e .env -e .env.site-configs -- mikro-orm");
|
|
15
16
|
packageJson.save();
|
|
16
17
|
}
|
|
17
|
-
exports.default = addDotenvCallToConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceImports;
|
|
3
4
|
const promises_1 = require("fs/promises");
|
|
4
5
|
const glob_1 = require("glob");
|
|
5
6
|
/**
|
|
@@ -14,4 +15,3 @@ async function replaceImports() {
|
|
|
14
15
|
await (0, promises_1.writeFile)(filePath, fileContent);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.default = replaceImports;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replaceCustomType;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* Wrap the config in createOrmConfig with defineConfig
|
|
@@ -30,4 +31,3 @@ async function replaceCustomType() {
|
|
|
30
31
|
config.replaceWithText(`defineConfig(${config.getText()})`);
|
|
31
32
|
await sourceFile.save();
|
|
32
33
|
}
|
|
33
|
-
exports.default = replaceCustomType;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = moveMaxSrcResolutionInCometConfig;
|
|
6
7
|
const fs_1 = require("fs");
|
|
7
8
|
const prettier_1 = __importDefault(require("prettier"));
|
|
8
9
|
/**
|
|
@@ -21,4 +22,3 @@ async function moveMaxSrcResolutionInCometConfig() {
|
|
|
21
22
|
(0, fs_1.writeFileSync)(cometConfigPath, await prettier_1.default.format(JSON.stringify(config), { ...prettierConfig, parser: "json" }));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
exports.default = moveMaxSrcResolutionInCometConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* From
|
|
@@ -61,4 +62,3 @@ function default_1() {
|
|
|
61
62
|
}
|
|
62
63
|
sourceFile.saveSync();
|
|
63
64
|
}
|
|
64
|
-
exports.default = default_1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateDamConfiguration;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* Update the configuration of the DamModule and BlobStorageModule and add ImgproxyModule to app.module.ts
|
|
@@ -87,4 +88,3 @@ async function updateDamConfiguration() {
|
|
|
87
88
|
}
|
|
88
89
|
await project.save();
|
|
89
90
|
}
|
|
90
|
-
exports.default = updateDamConfiguration;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateGraphQLFormatError;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* From
|
|
@@ -31,4 +32,3 @@ async function updateGraphQLFormatError() {
|
|
|
31
32
|
});
|
|
32
33
|
await sourceFile.save();
|
|
33
34
|
}
|
|
34
|
-
exports.default = updateGraphQLFormatError;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = updateS3Config;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function updateS3Config() {
|
|
5
6
|
console.log(`🚀 Update s3 config to new structure.`);
|
|
@@ -38,4 +39,3 @@ async function updateS3Config() {
|
|
|
38
39
|
console.log(`✅ Structure changed.`);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
exports.default = updateS3Config;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = addNestPeerDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -17,4 +18,3 @@ async function addNestPeerDependencies() {
|
|
|
17
18
|
packageJson.addDependency("rxjs", "^7.8.1");
|
|
18
19
|
packageJson.save();
|
|
19
20
|
}
|
|
20
|
-
exports.default = addNestPeerDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removeBlocksPackagesApi;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -11,4 +12,3 @@ async function removeBlocksPackagesApi() {
|
|
|
11
12
|
packageJson.save();
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
exports.default = removeBlocksPackagesApi;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = removePassport;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -19,4 +20,3 @@ async function removePassport() {
|
|
|
19
20
|
packageJson.removeDependency("@types/passport-http-bearer");
|
|
20
21
|
await packageJson.save();
|
|
21
22
|
}
|
|
22
|
-
exports.default = removePassport;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = ReplaceNestJsConsoleWithNestCommander;
|
|
4
5
|
const node_fs_1 = require("node:fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -17,4 +18,3 @@ async function ReplaceNestJsConsoleWithNestCommander() {
|
|
|
17
18
|
packageJson.addDependency("@types/inquirer", "^8.1.3", true);
|
|
18
19
|
packageJson.save();
|
|
19
20
|
}
|
|
20
|
-
exports.default = ReplaceNestJsConsoleWithNestCommander;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateClassValidator;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const promises_1 = require("fs/promises");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -14,4 +15,3 @@ async function updateClassValidator() {
|
|
|
14
15
|
}
|
|
15
16
|
await (0, promises_1.writeFile)("api/package.json", JSON.stringify(packageJson, null, 4));
|
|
16
17
|
}
|
|
17
|
-
exports.default = updateClassValidator;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateKubernetesClientNode;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -12,4 +13,3 @@ async function updateKubernetesClientNode() {
|
|
|
12
13
|
packageJson.updateDependency("@kubernetes/client-node", "^1.0.0");
|
|
13
14
|
packageJson.save();
|
|
14
15
|
}
|
|
15
|
-
exports.default = updateKubernetesClientNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateNestDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -16,4 +17,3 @@ async function updateNestDependencies() {
|
|
|
16
17
|
packageJson.updateDependency("@mikro-orm/postgresql", "^6.0.0");
|
|
17
18
|
packageJson.save();
|
|
18
19
|
}
|
|
19
|
-
exports.default = updateNestDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateNestDependencies;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -27,4 +28,3 @@ async function updateNestDependencies() {
|
|
|
27
28
|
packageJson.updateDependency("@golevelup/nestjs-discovery", "^4.0.0");
|
|
28
29
|
packageJson.save();
|
|
29
30
|
}
|
|
30
|
-
exports.default = updateNestDependencies;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateSentry;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
6
7
|
const package_json_util_1 = require("../../../util/package-json.util");
|
|
@@ -29,4 +30,3 @@ async function updateSentry() {
|
|
|
29
30
|
});
|
|
30
31
|
await sourceFile.save();
|
|
31
32
|
}
|
|
32
|
-
exports.default = updateSentry;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updateEslint;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const ts_morph_1 = require("ts-morph");
|
|
6
7
|
const package_json_util_1 = require("../util/package-json.util");
|
|
@@ -80,7 +81,6 @@ async function updateEslint() {
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
exports.default = updateEslint;
|
|
84
84
|
const updateDevDependenciesInPackageJsons = ({ packageJsonPath }) => {
|
|
85
85
|
console.log(`🚀 Update eslint to v9.18.0 in ${packageJsonPath}`);
|
|
86
86
|
const packageJson = new package_json_util_1.PackageJson(packageJsonPath);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = ignoreRestrictedImportsAdmin;
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
exports.stage = "never";
|
|
6
7
|
async function ignoreRestrictedImportsAdmin() {
|
|
@@ -25,4 +26,3 @@ async function ignoreRestrictedImportsAdmin() {
|
|
|
25
26
|
}
|
|
26
27
|
await project.save();
|
|
27
28
|
}
|
|
28
|
-
exports.default = ignoreRestrictedImportsAdmin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = updatePrettier;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const package_json_util_1 = require("../util/package-json.util");
|
|
6
7
|
exports.stage = "before-install";
|
|
@@ -33,4 +34,3 @@ async function updatePrettier() {
|
|
|
33
34
|
packageJson.save();
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
exports.default = updatePrettier;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeGraphQLFetchFromSitePreviewRoute;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
/**
|
|
@@ -53,4 +54,3 @@ async function removeGraphQLFetchFromSitePreviewRoute() {
|
|
|
53
54
|
sourceFile.saveSync();
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
exports.default = removeGraphQLFetchFromSitePreviewRoute;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeReactBarrelImportsAdmin;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
async function removeReactBarrelImportsAdmin() {
|
|
@@ -42,4 +43,3 @@ async function removeReactBarrelImportsAdmin() {
|
|
|
42
43
|
}
|
|
43
44
|
await project.save();
|
|
44
45
|
}
|
|
45
|
-
exports.default = removeReactBarrelImportsAdmin;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeReactBarrelImportsSite;
|
|
3
4
|
const glob_1 = require("glob");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
async function removeReactBarrelImportsSite() {
|
|
@@ -42,4 +43,3 @@ async function removeReactBarrelImportsSite() {
|
|
|
42
43
|
}
|
|
43
44
|
await project.save();
|
|
44
45
|
}
|
|
45
|
-
exports.default = removeReactBarrelImportsSite;
|
|
@@ -15,15 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.stage = void 0;
|
|
37
|
+
exports.default = replaceNodeWithV22InNvmrc;
|
|
27
38
|
const fs_1 = require("fs");
|
|
28
39
|
const glob = __importStar(require("glob"));
|
|
29
40
|
exports.stage = "before-install";
|
|
@@ -44,4 +55,3 @@ async function replaceNodeWithV22InNvmrc() {
|
|
|
44
55
|
}
|
|
45
56
|
console.log("Upgrade complete!");
|
|
46
57
|
}
|
|
47
|
-
exports.default = replaceNodeWithV22InNvmrc;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stage = void 0;
|
|
4
|
+
exports.default = replaceNodeWithV22Locally;
|
|
4
5
|
const node_fs_1 = require("node:fs");
|
|
5
6
|
const promises_1 = require("fs/promises");
|
|
6
7
|
const package_json_util_1 = require("../util/package-json.util");
|
|
@@ -19,7 +20,6 @@ async function replaceNodeWithV22Locally() {
|
|
|
19
20
|
updateTypesNode("admin");
|
|
20
21
|
updateTypesNode("site");
|
|
21
22
|
}
|
|
22
|
-
exports.default = replaceNodeWithV22Locally;
|
|
23
23
|
function updateTypesNode(microservice) {
|
|
24
24
|
const path = `${microservice}/package.json`;
|
|
25
25
|
if ((0, node_fs_1.existsSync)(path)) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeGraphQLClientFromSitePreviewHandlers;
|
|
3
4
|
const fs_1 = require("fs");
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
/**
|
|
@@ -46,4 +47,3 @@ async function removeGraphQLClientFromSitePreviewHandlers() {
|
|
|
46
47
|
await sourceFile.save();
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
exports.default = removeGraphQLClientFromSitePreviewHandlers;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = tooltipReplaceVariantProp;
|
|
3
4
|
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
async function tooltipReplaceVariantProp() {
|
|
5
6
|
const project = new ts_morph_1.Project({ tsConfigFilePath: "./admin/tsconfig.json" });
|
|
@@ -58,4 +59,3 @@ async function tooltipReplaceVariantProp() {
|
|
|
58
59
|
sourceFile.save();
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
|
-
exports.default = tooltipReplaceVariantProp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/upgrade",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.102.0",
|
|
4
4
|
"description": "Upgrade scripts for Comet DXP",
|
|
5
5
|
"homepage": "https://github.com/vivid-planet/comet-upgrade#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint-staged": "^13.3.0",
|
|
44
44
|
"npm-run-all2": "^8.0.4",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
|
-
"typescript": "
|
|
46
|
+
"typescript": "^5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": "22"
|