keycloakify 11.8.34 → 11.8.35-rc.1

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.id = 355;
3
- exports.ids = [355,786,656];
2
+ exports.id = 313;
3
+ exports.ids = [313,698];
4
4
  exports.modules = {
5
5
 
6
6
  /***/ 60355:
@@ -13,8 +13,6 @@ __webpack_require__.r(__webpack_exports__);
13
13
  /* harmony import */ var _shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72138);
14
14
  /* harmony import */ var _shared_initializeSpa__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98656);
15
15
  /* harmony import */ var _shared_exitIfUncommittedChanges__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22058);
16
- /* harmony import */ var _update_kc_gen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10786);
17
-
18
16
 
19
17
 
20
18
 
@@ -34,16 +32,63 @@ async function command(params) {
34
32
  themeType: "admin",
35
33
  buildContext
36
34
  });
37
- await (0,_update_kc_gen__WEBPACK_IMPORTED_MODULE_3__.command)({
38
- buildContext: Object.assign(Object.assign({}, buildContext), { implementedThemeTypes: Object.assign(Object.assign({}, buildContext.implementedThemeTypes), { admin: {
39
- isImplemented: true
40
- } }) })
41
- });
42
35
  }
43
36
  //# sourceMappingURL=initialize-admin-theme.js.map
44
37
 
45
38
  /***/ }),
46
39
 
40
+ /***/ 80339:
41
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
42
+
43
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44
+ /* harmony export */ "N": () => (/* binding */ addSyncExtensionsToPostinstallScript)
45
+ /* harmony export */ });
46
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71017);
47
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
48
+ /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29041);
49
+
50
+
51
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .h)();
52
+ function addSyncExtensionsToPostinstallScript(params) {
53
+ var _a;
54
+ const { parsedPackageJson, buildContext } = params;
55
+ const cmd_base = "keycloakify sync-extensions";
56
+ const projectCliOptionValue = (() => {
57
+ const packageJsonDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(buildContext.packageJsonFilePath);
58
+ const relativePath = (0,path__WEBPACK_IMPORTED_MODULE_0__.relative)(packageJsonDirPath, buildContext.projectDirPath);
59
+ if (relativePath === "") {
60
+ return undefined;
61
+ }
62
+ return relativePath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).join("/");
63
+ })();
64
+ const generateCmd = (params) => {
65
+ const { cmd_preexisting } = params;
66
+ let cmd = cmd_preexisting === undefined ? "" : `${cmd_preexisting} && `;
67
+ cmd += cmd_base;
68
+ if (projectCliOptionValue !== undefined) {
69
+ cmd += ` -p ${projectCliOptionValue}`;
70
+ }
71
+ return cmd;
72
+ };
73
+ {
74
+ const scripts = ((_a = parsedPackageJson.scripts) !== null && _a !== void 0 ? _a : (parsedPackageJson.scripts = {}));
75
+ for (const scriptName of ["postinstall", "prepare"]) {
76
+ const cmd_preexisting = scripts[scriptName];
77
+ if (cmd_preexisting === undefined) {
78
+ continue;
79
+ }
80
+ if (!cmd_preexisting.includes(cmd_base)) {
81
+ scripts[scriptName] = generateCmd({ cmd_preexisting });
82
+ return;
83
+ }
84
+ }
85
+ }
86
+ parsedPackageJson.scripts = Object.assign({ postinstall: generateCmd({ cmd_preexisting: undefined }) }, parsedPackageJson.scripts);
87
+ }
88
+ //# sourceMappingURL=addSyncExtensionsToPostinstallScript.js.map
89
+
90
+ /***/ }),
91
+
47
92
  /***/ 72138:
48
93
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
49
94
 
@@ -506,267 +551,112 @@ function getNodeModulesBinDirPath(params) {
506
551
 
507
552
  /***/ }),
508
553
 
509
- /***/ 48433:
510
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
511
-
512
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
513
- /* harmony export */ "LG": () => (/* binding */ getPrettier),
514
- /* harmony export */ "MT": () => (/* binding */ getIsPrettierAvailable),
515
- /* harmony export */ "eY": () => (/* binding */ runPrettier)
516
- /* harmony export */ });
517
- /* harmony import */ var _nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73776);
518
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
519
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
520
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73292);
521
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_2__);
522
- /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38469);
523
- /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29041);
524
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78818);
525
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_4__);
526
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6113);
527
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
528
- /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
529
- /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
530
- /* module decorator */ module = __webpack_require__.hmd(module);
531
-
532
-
533
-
534
-
535
-
554
+ /***/ 50689:
555
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
536
556
 
537
557
 
538
-
539
-
540
- getIsPrettierAvailable.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
541
- async function getIsPrettierAvailable() {
542
- var _a;
543
- if (getIsPrettierAvailable.cache !== undefined) {
544
- return getIsPrettierAvailable.cache;
545
- }
546
- const nodeModulesBinDirPath = (0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({
547
- packageJsonFilePath: undefined
548
- });
549
- const prettierBinPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesBinDirPath, "prettier");
550
- const stats = await fs_promises__WEBPACK_IMPORTED_MODULE_2__.stat(prettierBinPath).catch(() => undefined);
551
- const isPrettierAvailable = (_a = stats === null || stats === void 0 ? void 0 : stats.isFile()) !== null && _a !== void 0 ? _a : false;
552
- getIsPrettierAvailable.cache = isPrettierAvailable;
553
- return isPrettierAvailable;
554
- }
555
- getPrettier.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
556
- async function getPrettier() {
557
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(getIsPrettierAvailable());
558
- if (getPrettier.cache !== undefined) {
559
- return getPrettier.cache;
560
- }
561
- let prettier = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_7__.id)(undefined);
562
- import_prettier: {
563
- // NOTE: When module is linked we want to make sure we import the correct version
564
- // of prettier, that is the one of the project, not the one of this repo.
565
- // So we do a sketchy eval to bypass ncc.
566
- // We make sure to only do that when linking, otherwise we import properly.
567
- if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
568
- const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
569
- const isCJS = true && module.exports;
570
- if (isCJS) {
571
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
572
- }
573
- else {
574
- prettier = await new Promise(_resolve => {
575
- eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
576
- });
577
- }
578
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
579
- break import_prettier;
580
- }
581
- prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
582
- }
583
- const configHash = await (async () => {
584
- const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
585
- if (configFilePath === null) {
586
- return "";
587
- }
588
- const data = await fs_promises__WEBPACK_IMPORTED_MODULE_2__.readFile(configFilePath);
589
- return crypto__WEBPACK_IMPORTED_MODULE_5__.createHash("sha256").update(data).digest("hex");
590
- })();
591
- const prettierAndConfig = {
592
- prettier,
593
- configHash
558
+ var __extends = (this && this.__extends) || (function () {
559
+ var extendStatics = function (d, b) {
560
+ extendStatics = Object.setPrototypeOf ||
561
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
562
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
563
+ return extendStatics(d, b);
594
564
  };
595
- getPrettier.cache = prettierAndConfig;
596
- return prettierAndConfig;
597
- }
598
- async function runPrettier(params) {
599
- const { sourceCode, filePath } = params;
600
- let formattedSourceCode;
601
- try {
602
- const { prettier } = await getPrettier();
603
- const { ignored, inferredParser } = await prettier.getFileInfo(filePath, {
604
- resolveConfig: true
565
+ return function (d, b) {
566
+ if (typeof b !== "function" && b !== null)
567
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
568
+ extendStatics(d, b);
569
+ function __() { this.constructor = d; }
570
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
571
+ };
572
+ })();
573
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
574
+ exports.VoidDeferred = exports.Deferred = void 0;
575
+ var overwriteReadonlyProp_1 = __webpack_require__(47803);
576
+ var Deferred = /** @class */ (function () {
577
+ function Deferred() {
578
+ var _this_1 = this;
579
+ this.isPending = true;
580
+ var resolve;
581
+ var reject;
582
+ this.pr = new Promise(function (resolve_, reject_) {
583
+ resolve = function (value) {
584
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
585
+ resolve_(value);
586
+ };
587
+ reject = function (error) {
588
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
589
+ reject_(error);
590
+ };
605
591
  });
606
- if (ignored || inferredParser === null) {
607
- return sourceCode;
608
- }
609
- const config = await prettier.resolveConfig(filePath);
610
- formattedSourceCode = await prettier.format(sourceCode, Object.assign(Object.assign({}, config), { filePath, parser: inferredParser }));
611
- }
612
- catch (error) {
613
- console.log(chalk__WEBPACK_IMPORTED_MODULE_4___default().red(`You probably need to upgrade the version of prettier in your project`));
614
- throw error;
615
- }
616
- return formattedSourceCode;
617
- }
618
- //# sourceMappingURL=runPrettier.js.map
592
+ this.resolve = resolve;
593
+ this.reject = reject;
594
+ }
595
+ return Deferred;
596
+ }());
597
+ exports.Deferred = Deferred;
598
+ var VoidDeferred = /** @class */ (function (_super) {
599
+ __extends(VoidDeferred, _super);
600
+ function VoidDeferred() {
601
+ return _super !== null && _super.apply(this, arguments) || this;
602
+ }
603
+ return VoidDeferred;
604
+ }(Deferred));
605
+ exports.VoidDeferred = VoidDeferred;
606
+ //# sourceMappingURL=Deferred.js.map
619
607
 
620
608
  /***/ }),
621
609
 
622
- /***/ 10786:
623
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
624
-
625
- __webpack_require__.r(__webpack_exports__);
626
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
627
- /* harmony export */ "command": () => (/* binding */ command)
628
- /* harmony export */ });
629
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73292);
630
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_0__);
631
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
632
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
633
- /* harmony import */ var _tools_fs_existsAsync__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43765);
634
- /* harmony import */ var _shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72138);
635
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6113);
636
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_4__);
637
- /* harmony import */ var _tools_runPrettier__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48433);
638
-
639
-
640
-
610
+ /***/ 47803:
611
+ /***/ (function(__unused_webpack_module, exports) {
641
612
 
642
613
 
643
-
644
- async function command(params) {
645
- const { buildContext } = params;
646
- run_copy_assets_to_public: {
647
- if (buildContext.bundler !== "webpack") {
648
- break run_copy_assets_to_public;
614
+ var __assign = (this && this.__assign) || function () {
615
+ __assign = Object.assign || function(t) {
616
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
617
+ s = arguments[i];
618
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
619
+ t[p] = s[p];
649
620
  }
650
- const { command } = await __webpack_require__.e(/* import() */ 658).then(__webpack_require__.bind(__webpack_require__, 18040));
651
- await command({ buildContext });
621
+ return t;
622
+ };
623
+ return __assign.apply(this, arguments);
624
+ };
625
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
626
+ exports.overwriteReadonlyProp = void 0;
627
+ /**
628
+ * Assign a value to a property even if the object is freezed or if the property is not writable
629
+ * Throw if the assignation fail ( for example if the property is non configurable write: false )
630
+ * */
631
+ var overwriteReadonlyProp = function (obj, propertyName, value) {
632
+ try {
633
+ obj[propertyName] = value;
652
634
  }
653
- const { hasBeenHandled } = await (0,_shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_3__/* .maybeDelegateCommandToCustomHandler */ .q)({
654
- commandName: "update-kc-gen",
655
- buildContext
656
- });
657
- if (hasBeenHandled) {
658
- return;
635
+ catch (_a) { }
636
+ if (obj[propertyName] === value) {
637
+ return value;
659
638
  }
660
- const filePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(buildContext.themeSrcDirPath, "kc.gen.tsx");
661
- const hasLoginTheme = buildContext.implementedThemeTypes.login.isImplemented;
662
- const hasAccountTheme = buildContext.implementedThemeTypes.account.isImplemented;
663
- const hasAdminTheme = buildContext.implementedThemeTypes.admin.isImplemented;
664
- let newContent = [
665
- ``,
666
- `/* eslint-disable */`,
667
- ``,
668
- `// @ts-nocheck`,
669
- ``,
670
- `// noinspection JSUnusedGlobalSymbols`,
671
- ``,
672
- `import { lazy, Suspense, type ReactNode } from "react";`,
673
- ``,
674
- `export type ThemeName = ${buildContext.themeNames.map(themeName => `"${themeName}"`).join(" | ")};`,
675
- ``,
676
- `export const themeNames: ThemeName[] = [${buildContext.themeNames.map(themeName => `"${themeName}"`).join(", ")}];`,
677
- ``,
678
- `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? "never" : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(" | ")};`,
679
- ``,
680
- `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
681
- ``,
682
- `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(Object.fromEntries(buildContext.environmentVariables.map(({ name, default: defaultValue }) => [name, defaultValue])), null, 2)};`,
683
- ``,
684
- `/**`,
685
- ` * NOTE: Do not import this type except maybe in your entrypoint. `,
686
- ` * If you need to import the KcContext import it either from src/login/KcContext.ts or src/account/KcContext.ts.`,
687
- ` * Depending on the theme type you are working on.`,
688
- ` */`,
689
- `export type KcContext =`,
690
- hasLoginTheme && ` | import("./login/KcContext").KcContext`,
691
- hasAccountTheme && ` | import("./account/KcContext").KcContext`,
692
- hasAdminTheme && ` | import("./admin/KcContext").KcContext`,
693
- ` ;`,
694
- ``,
695
- `declare global {`,
696
- ` interface Window {`,
697
- ` kcContext?: KcContext;`,
698
- ` }`,
699
- `}`,
700
- ``,
701
- hasLoginTheme &&
702
- `export const KcLoginPage = lazy(() => import("./login/KcPage"));`,
703
- hasAccountTheme &&
704
- `export const KcAccountPage = lazy(() => import("./account/KcPage"));`,
705
- hasAdminTheme &&
706
- `export const KcAdminPage = lazy(() => import("./admin/KcPage"));`,
707
- ``,
708
- `export function KcPage(`,
709
- ` props: {`,
710
- ` kcContext: KcContext;`,
711
- ` fallback?: ReactNode;`,
712
- ` }`,
713
- `) {`,
714
- ` const { kcContext, fallback } = props;`,
715
- ` return (`,
716
- ` <Suspense fallback={fallback}>`,
717
- ` {(() => {`,
718
- ` switch (kcContext.themeType) {`,
719
- hasLoginTheme &&
720
- ` case "login": return <KcLoginPage kcContext={kcContext} />;`,
721
- hasAccountTheme &&
722
- ` case "account": return <KcAccountPage kcContext={kcContext} />;`,
723
- hasAdminTheme &&
724
- ` case "admin": return <KcAdminPage kcContext={kcContext} />;`,
725
- ` }`,
726
- ` })()}`,
727
- ` </Suspense>`,
728
- ` );`,
729
- `}`,
730
- ``
731
- ]
732
- .filter(item => typeof item === "string")
733
- .join("\n");
734
- const hash = crypto__WEBPACK_IMPORTED_MODULE_4__.createHash("sha256").update(newContent).digest("hex");
735
- skip_if_no_changes: {
736
- if (!(await (0,_tools_fs_existsAsync__WEBPACK_IMPORTED_MODULE_2__/* .existsAsync */ .o)(filePath))) {
737
- break skip_if_no_changes;
738
- }
739
- const currentContent = (await fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(filePath)).toString("utf8");
740
- if (!currentContent.includes(hash)) {
741
- break skip_if_no_changes;
742
- }
743
- return;
639
+ var errorDefineProperty = undefined;
640
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(obj, propertyName) || {
641
+ "enumerable": true,
642
+ "configurable": true,
643
+ };
644
+ if (!!propertyDescriptor.get) {
645
+ throw new Error("Probably a wrong ides to overwrite ".concat(String(propertyName), " getter"));
744
646
  }
745
- newContent = [
746
- `// This file is auto-generated by the \`update-kc-gen\` command. Do not edit it manually.`,
747
- `// Hash: ${hash}`,
748
- ``,
749
- newContent
750
- ].join("\n");
751
- format: {
752
- if (!(await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_5__/* .getIsPrettierAvailable */ .MT)())) {
753
- break format;
754
- }
755
- newContent = await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_5__/* .runPrettier */ .eY)({
756
- filePath,
757
- sourceCode: newContent
758
- });
647
+ try {
648
+ Object.defineProperty(obj, propertyName, __assign(__assign({}, propertyDescriptor), { value: value }));
759
649
  }
760
- await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(filePath, Buffer.from(newContent, "utf8"));
761
- delete_legacy_file: {
762
- const legacyFilePath = filePath.replace(/tsx$/, "ts");
763
- if (!(await (0,_tools_fs_existsAsync__WEBPACK_IMPORTED_MODULE_2__/* .existsAsync */ .o)(legacyFilePath))) {
764
- break delete_legacy_file;
765
- }
766
- await fs_promises__WEBPACK_IMPORTED_MODULE_0__.unlink(legacyFilePath);
650
+ catch (error) {
651
+ errorDefineProperty = error;
767
652
  }
768
- }
769
- //# sourceMappingURL=update-kc-gen.js.map
653
+ if (obj[propertyName] !== value) {
654
+ throw errorDefineProperty || new Error("Can't assign");
655
+ }
656
+ return value;
657
+ };
658
+ exports.overwriteReadonlyProp = overwriteReadonlyProp;
659
+ //# sourceMappingURL=overwriteReadonlyProp.js.map
770
660
 
771
661
  /***/ }),
772
662