keycloakify 11.6.1 → 11.7.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.
Files changed (96) hide show
  1. package/bin/{653.index.js → 288.index.js} +221 -201
  2. package/bin/313.index.js +377 -0
  3. package/bin/{174.index.js → 33.index.js} +37 -2
  4. package/bin/{615.index.js → 355.index.js} +353 -102
  5. package/bin/363.index.js +1537 -0
  6. package/bin/453.index.js +6 -42
  7. package/bin/{503.index.js → 678.index.js} +577 -53
  8. package/bin/{921.index.js → 780.index.js} +54 -45
  9. package/bin/880.index.js +206 -21
  10. package/bin/9.index.js +850 -0
  11. package/bin/{525.index.js → 911.index.js} +1302 -2
  12. package/bin/930.index.js +164 -0
  13. package/bin/946.index.js +20 -0
  14. package/bin/{153.index.js → 947.index.js} +22 -797
  15. package/bin/main.js +61 -19
  16. package/bin/{eject-file.d.ts → own.d.ts} +2 -1
  17. package/bin/shared/{addPostinstallScriptIfNotPresent.d.ts → initializeSpa/addSyncExtensionsToPostinstallScript.d.ts} +1 -1
  18. package/bin/shared/initializeSpa/index.d.ts +1 -0
  19. package/bin/shared/initializeSpa/initializeSpa.d.ts +9 -0
  20. package/bin/{postinstall/uiModuleMeta.d.ts → sync-extensions/extensionModuleMeta.d.ts} +5 -5
  21. package/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.d.ts +12 -0
  22. package/bin/sync-extensions/index.d.ts +1 -0
  23. package/bin/{postinstall/installUiModulesPeerDependencies.d.ts → sync-extensions/installExtensionModulesPeerDependencies.d.ts} +3 -3
  24. package/bin/{postinstall → sync-extensions}/managedGitignoreFile.d.ts +4 -4
  25. package/bin/tools/getInstalledModuleDirPath.d.ts +0 -1
  26. package/bin/tools/isKnownByGit.d.ts +3 -0
  27. package/bin/tools/isRootPath.d.ts +1 -0
  28. package/bin/tools/listInstalledModules.d.ts +0 -1
  29. package/package.json +41 -63
  30. package/src/bin/eject-page.ts +8 -84
  31. package/src/bin/initialize-account-theme/initialize-account-theme.ts +15 -14
  32. package/src/bin/initialize-admin-theme.ts +17 -124
  33. package/src/bin/initialize-email-theme.ts +10 -34
  34. package/src/bin/keycloakify/generateResources/generateResources.ts +49 -21
  35. package/src/bin/main.ts +61 -16
  36. package/src/bin/own.ts +208 -0
  37. package/src/bin/shared/{addPostinstallScriptIfNotPresent.ts → initializeSpa/addSyncExtensionsToPostinstallScript.ts} +4 -4
  38. package/src/bin/shared/initializeSpa/index.ts +1 -0
  39. package/src/bin/shared/initializeSpa/initializeSpa.ts +149 -0
  40. package/src/bin/{postinstall/uiModuleMeta.ts → sync-extensions/extensionModuleMeta.ts} +48 -43
  41. package/src/bin/{postinstall/getUiModuleFileSourceCodeReadyToBeCopied.ts → sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts} +32 -21
  42. package/src/bin/sync-extensions/index.ts +1 -0
  43. package/src/bin/{postinstall/installUiModulesPeerDependencies.ts → sync-extensions/installExtensionModulesPeerDependencies.ts} +15 -13
  44. package/src/bin/{postinstall → sync-extensions}/managedGitignoreFile.ts +18 -18
  45. package/src/bin/{postinstall/postinstall.ts → sync-extensions/sync-extension.ts} +14 -26
  46. package/src/bin/tools/getInstalledModuleDirPath.ts +24 -22
  47. package/src/bin/tools/isKnownByGit.ts +45 -0
  48. package/src/bin/tools/isRootPath.ts +22 -0
  49. package/src/bin/tools/listInstalledModules.ts +4 -6
  50. package/src/bin/tools/npmInstall.ts +1 -1
  51. package/src/bin/tools/untrackFromGit.ts +19 -3
  52. package/src/bin/tsconfig.json +1 -1
  53. package/bin/300.index.js +0 -770
  54. package/bin/375.index.js +0 -4089
  55. package/bin/490.index.js +0 -1108
  56. package/bin/568.index.js +0 -1867
  57. package/bin/735.index.js +0 -907
  58. package/bin/743.index.js +0 -69
  59. package/bin/854.index.js +0 -68
  60. package/bin/initialize-account-theme/copyBoilerplate.d.ts +0 -4
  61. package/bin/initialize-account-theme/initializeAccountTheme_multiPage.d.ts +0 -3
  62. package/bin/initialize-account-theme/initializeAccountTheme_singlePage.d.ts +0 -11
  63. package/bin/postinstall/getUiModuleFileSourceCodeReadyToBeCopied.d.ts +0 -12
  64. package/bin/postinstall/index.d.ts +0 -1
  65. package/bin/shared/getLatestsSemVersionedTag.d.ts +0 -15
  66. package/bin/shared/promptKeycloakVersion.d.ts +0 -10
  67. package/bin/tools/OptionalIfCanBeUndefined.d.ts +0 -14
  68. package/bin/tools/crc32.d.ts +0 -9
  69. package/bin/tools/deflate.d.ts +0 -24
  70. package/bin/tools/isTrackedByGit.d.ts +0 -3
  71. package/bin/tools/octokit-addons/getLatestsSemVersionedTag.d.ts +0 -15
  72. package/bin/tools/octokit-addons/listTags.d.ts +0 -13
  73. package/bin/tools/tee.d.ts +0 -3
  74. package/bin/tools/trimIndent.d.ts +0 -5
  75. package/src/bin/eject-file.ts +0 -68
  76. package/src/bin/initialize-account-theme/copyBoilerplate.ts +0 -32
  77. package/src/bin/initialize-account-theme/initializeAccountTheme_multiPage.ts +0 -21
  78. package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +0 -142
  79. package/src/bin/initialize-account-theme/src/single-page/KcContext.ts +0 -7
  80. package/src/bin/initialize-account-theme/src/single-page/KcPage.tsx +0 -11
  81. package/src/bin/postinstall/index.ts +0 -1
  82. package/src/bin/shared/getLatestsSemVersionedTag.ts +0 -201
  83. package/src/bin/shared/promptKeycloakVersion.ts +0 -72
  84. package/src/bin/tools/OptionalIfCanBeUndefined.ts +0 -12
  85. package/src/bin/tools/crc32.ts +0 -73
  86. package/src/bin/tools/deflate.ts +0 -61
  87. package/src/bin/tools/isTrackedByGit.ts +0 -29
  88. package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +0 -47
  89. package/src/bin/tools/octokit-addons/listTags.ts +0 -60
  90. package/src/bin/tools/tee.ts +0 -39
  91. package/src/bin/tools/trimIndent.ts +0 -49
  92. /package/bin/{postinstall/postinstall.d.ts → sync-extensions/sync-extension.d.ts} +0 -0
  93. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcContext.ts +0 -0
  94. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcPage.tsx +0 -0
  95. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcPageStory.tsx +0 -0
  96. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/i18n.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- exports.id = 653;
3
- exports.ids = [653];
2
+ exports.id = 288;
3
+ exports.ids = [288];
4
4
  exports.modules = {
5
5
 
6
- /***/ 2653:
6
+ /***/ 27288:
7
7
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
8
 
9
9
  // ESM COMPAT FLAG
@@ -11,30 +11,71 @@ __webpack_require__.r(__webpack_exports__);
11
11
 
12
12
  // EXPORTS
13
13
  __webpack_require__.d(__webpack_exports__, {
14
- "command": () => (/* reexport */ command)
14
+ "initializeSpa": () => (/* reexport */ initializeSpa)
15
15
  });
16
16
 
17
- // EXTERNAL MODULE: ./dist/bin/postinstall/uiModuleMeta.js + 3 modules
18
- var postinstall_uiModuleMeta = __webpack_require__(58644);
17
+ // EXTERNAL MODULE: external "path"
18
+ var external_path_ = __webpack_require__(71017);
19
+ // EXTERNAL MODULE: external "fs"
20
+ var external_fs_ = __webpack_require__(57147);
19
21
  // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
20
22
  var assert = __webpack_require__(29041);
21
- // EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs
22
- var lib = __webpack_require__(52300);
23
23
  // EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
24
24
  var id = __webpack_require__(38469);
25
- // EXTERNAL MODULE: external "fs/promises"
26
- var promises_ = __webpack_require__(73292);
27
- // EXTERNAL MODULE: ./dist/bin/tools/SemVer.js
28
- var SemVer = __webpack_require__(12171);
29
- // EXTERNAL MODULE: ./node_modules/evt/tools/inDepth/same.js
30
- var same = __webpack_require__(33805);
25
+ ;// CONCATENATED MODULE: ./dist/bin/shared/initializeSpa/addSyncExtensionsToPostinstallScript.js
26
+
27
+
28
+ (0,assert/* assert */.h)();
29
+ function addSyncExtensionsToPostinstallScript(params) {
30
+ var _a;
31
+ const { parsedPackageJson, buildContext } = params;
32
+ const cmd_base = "keycloakify sync-extensions";
33
+ const projectCliOptionValue = (() => {
34
+ const packageJsonDirPath = (0,external_path_.dirname)(buildContext.packageJsonFilePath);
35
+ const relativePath = (0,external_path_.relative)(packageJsonDirPath, buildContext.projectDirPath);
36
+ if (relativePath === "") {
37
+ return undefined;
38
+ }
39
+ return relativePath.split(external_path_.sep).join("/");
40
+ })();
41
+ const generateCmd = (params) => {
42
+ const { cmd_preexisting } = params;
43
+ let cmd = cmd_preexisting === undefined ? "" : `${cmd_preexisting} && `;
44
+ cmd += cmd_base;
45
+ if (projectCliOptionValue !== undefined) {
46
+ cmd += ` -p ${projectCliOptionValue}`;
47
+ }
48
+ return cmd;
49
+ };
50
+ {
51
+ const scripts = ((_a = parsedPackageJson.scripts) !== null && _a !== void 0 ? _a : (parsedPackageJson.scripts = {}));
52
+ for (const scriptName of ["postinstall", "prepare"]) {
53
+ const cmd_preexisting = scripts[scriptName];
54
+ if (cmd_preexisting === undefined) {
55
+ continue;
56
+ }
57
+ if (!cmd_preexisting.includes(cmd_base)) {
58
+ scripts[scriptName] = generateCmd({ cmd_preexisting });
59
+ return;
60
+ }
61
+ }
62
+ }
63
+ parsedPackageJson.scripts = Object.assign({ postinstall: generateCmd({ cmd_preexisting: undefined }) }, parsedPackageJson.scripts);
64
+ }
65
+ //# sourceMappingURL=addSyncExtensionsToPostinstallScript.js.map
31
66
  // EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js
32
67
  var runPrettier = __webpack_require__(48433);
33
68
  // EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js
34
69
  var npmInstall = __webpack_require__(50030);
35
- // EXTERNAL MODULE: external "path"
36
- var external_path_ = __webpack_require__(71017);
37
- ;// CONCATENATED MODULE: ./dist/bin/postinstall/installUiModulesPeerDependencies.js
70
+ // EXTERNAL MODULE: external "child_process"
71
+ var external_child_process_ = __webpack_require__(32081);
72
+ // EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs
73
+ var lib = __webpack_require__(52300);
74
+ // EXTERNAL MODULE: ./node_modules/chalk/source/index.js
75
+ var source = __webpack_require__(78818);
76
+ var source_default = /*#__PURE__*/__webpack_require__.n(source);
77
+ ;// CONCATENATED MODULE: ./dist/bin/shared/initializeSpa/initializeSpa.js
78
+
38
79
 
39
80
 
40
81
 
@@ -45,206 +86,76 @@ var external_path_ = __webpack_require__(71017);
45
86
 
46
87
 
47
88
  (0,assert/* assert */.h)();
48
- (0,assert/* assert */.h)();
49
- async function installUiModulesPeerDependencies(params) {
50
- var _a, _b;
51
- const { buildContext, uiModuleMetas } = params;
52
- const { uiModulesPerDependencies } = (() => {
53
- const uiModulesPerDependencies = {};
54
- for (const { peerDependencies } of uiModuleMetas) {
55
- for (const [peerDependencyName, versionRange_candidate] of Object.entries(peerDependencies)) {
56
- const versionRange = (() => {
57
- const versionRange_current = uiModulesPerDependencies[peerDependencyName];
58
- if (versionRange_current === undefined) {
59
- return versionRange_candidate;
60
- }
61
- if (versionRange_current === "*") {
62
- return versionRange_candidate;
63
- }
64
- if (versionRange_candidate === "*") {
65
- return versionRange_current;
66
- }
67
- const { versionRange } = [
68
- versionRange_current,
69
- versionRange_candidate
70
- ]
71
- .map(versionRange => ({
72
- versionRange,
73
- semVer: SemVer/* SemVer.parse */.h.parse((() => {
74
- if (versionRange.startsWith("^") ||
75
- versionRange.startsWith("~")) {
76
- return versionRange.slice(1);
77
- }
78
- return versionRange;
79
- })())
80
- }))
81
- .sort((a, b) => SemVer/* SemVer.compare */.h.compare(b.semVer, a.semVer))[0];
82
- return versionRange;
83
- })();
84
- uiModulesPerDependencies[peerDependencyName] = versionRange;
85
- }
89
+ async function initializeSpa(params) {
90
+ var _a;
91
+ const { themeType, buildContext } = params;
92
+ {
93
+ const themeTypeSrcDirPath = (0,external_path_.join)(buildContext.themeSrcDirPath, themeType);
94
+ if (external_fs_.existsSync(themeTypeSrcDirPath) &&
95
+ external_fs_.readdirSync(themeTypeSrcDirPath).length > 0) {
96
+ console.warn(source_default().red(`There is already a ${(0,external_path_.relative)(process.cwd(), themeTypeSrcDirPath)} directory in your project. Aborting.`));
97
+ process.exit(-1);
86
98
  }
87
- return { uiModulesPerDependencies };
88
- })();
89
- const parsedPackageJson = await (async () => {
99
+ }
100
+ const parsedPackageJson = (() => {
90
101
  const zParsedPackageJson = (() => {
91
- const zParsedPackageJson = lib.z.object({
92
- dependencies: lib.z.record(lib.z.string()).optional(),
93
- devDependencies: lib.z.record(lib.z.string()).optional()
102
+ const zTargetType = lib.z.object({
103
+ scripts: lib.z.record(lib.z.union([lib.z.string(), lib.z.undefined()])).optional(),
104
+ dependencies: lib.z.record(lib.z.union([lib.z.string(), lib.z.undefined()])).optional(),
105
+ devDependencies: lib.z.record(lib.z.union([lib.z.string(), lib.z.undefined()])).optional()
94
106
  });
95
- (0,assert/* assert */.h)();
96
- return (0,id.id)(zParsedPackageJson);
107
+ assert/* assert */.h;
108
+ return (0,id.id)(zTargetType);
97
109
  })();
98
- const parsedPackageJson = JSON.parse((await promises_.readFile(buildContext.packageJsonFilePath)).toString("utf8"));
110
+ const parsedPackageJson = JSON.parse(external_fs_.readFileSync(buildContext.packageJsonFilePath).toString("utf8"));
99
111
  zParsedPackageJson.parse(parsedPackageJson);
100
112
  (0,assert/* assert */.h)((0,assert.is)(parsedPackageJson));
101
113
  return parsedPackageJson;
102
114
  })();
103
- const parsedPackageJson_before = JSON.parse(JSON.stringify(parsedPackageJson));
104
- for (const [moduleName, versionRange] of Object.entries(uiModulesPerDependencies)) {
105
- if (moduleName.startsWith("@types/")) {
106
- ((_a = parsedPackageJson.devDependencies) !== null && _a !== void 0 ? _a : (parsedPackageJson.devDependencies = {}))[moduleName] = versionRange;
107
- continue;
115
+ addSyncExtensionsToPostinstallScript({
116
+ parsedPackageJson,
117
+ buildContext
118
+ });
119
+ const uiSharedMajor = (() => {
120
+ const dependencies = Object.assign(Object.assign({}, parsedPackageJson.devDependencies), parsedPackageJson.dependencies);
121
+ const version = dependencies["@keycloakify/keycloak-ui-shared"];
122
+ if (version === undefined) {
123
+ return undefined;
108
124
  }
109
- if (parsedPackageJson.devDependencies !== undefined) {
110
- delete parsedPackageJson.devDependencies[moduleName];
125
+ const match = version.match(/^[^~]?(\d+)\./);
126
+ if (match === null) {
127
+ return undefined;
111
128
  }
112
- ((_b = parsedPackageJson.dependencies) !== null && _b !== void 0 ? _b : (parsedPackageJson.dependencies = {}))[moduleName] = versionRange;
113
- }
114
- if ((0,same.same)(parsedPackageJson, parsedPackageJson_before)) {
115
- return;
129
+ return match[1];
130
+ })();
131
+ const moduleName = `@keycloakify/keycloak-${themeType}-ui`;
132
+ const version = JSON.parse(external_child_process_.execSync(`npm show ${moduleName} versions --json`)
133
+ .toString("utf8")
134
+ .trim())
135
+ .reverse()
136
+ .filter(version => !version.includes("-"))
137
+ .find(version => uiSharedMajor === undefined ? true : version.startsWith(`${uiSharedMajor}.`));
138
+ (0,assert/* assert */.h)(version !== undefined);
139
+ ((_a = parsedPackageJson.dependencies) !== null && _a !== void 0 ? _a : (parsedPackageJson.dependencies = {}))[moduleName] = `~${version}`;
140
+ if (parsedPackageJson.devDependencies !== undefined) {
141
+ delete parsedPackageJson.devDependencies[moduleName];
116
142
  }
117
- let packageJsonContentStr = JSON.stringify(parsedPackageJson, null, 2);
118
- format: {
119
- if (!(await (0,runPrettier/* getIsPrettierAvailable */.MT)())) {
120
- break format;
143
+ {
144
+ let sourceCode = JSON.stringify(parsedPackageJson, undefined, 2);
145
+ if (await (0,runPrettier/* getIsPrettierAvailable */.MT)()) {
146
+ sourceCode = await (0,runPrettier/* runPrettier */.eY)({
147
+ sourceCode,
148
+ filePath: buildContext.packageJsonFilePath
149
+ });
121
150
  }
122
- packageJsonContentStr = await (0,runPrettier/* runPrettier */.eY)({
123
- sourceCode: packageJsonContentStr,
124
- filePath: buildContext.packageJsonFilePath
125
- });
151
+ external_fs_.writeFileSync(buildContext.packageJsonFilePath, Buffer.from(sourceCode, "utf8"));
126
152
  }
127
- await promises_.writeFile(buildContext.packageJsonFilePath, packageJsonContentStr);
128
153
  await (0,npmInstall/* npmInstall */.c)({
129
154
  packageJsonDirPath: (0,external_path_.dirname)(buildContext.packageJsonFilePath)
130
155
  });
131
- process.exit(0);
132
156
  }
133
- //# sourceMappingURL=installUiModulesPeerDependencies.js.map
134
- // EXTERNAL MODULE: ./dist/bin/postinstall/managedGitignoreFile.js
135
- var managedGitignoreFile = __webpack_require__(36843);
136
- // EXTERNAL MODULE: ./dist/bin/tools/fs.existsAsync.js
137
- var fs_existsAsync = __webpack_require__(43765);
138
- // EXTERNAL MODULE: external "child_process"
139
- var external_child_process_ = __webpack_require__(32081);
140
- // EXTERNAL MODULE: ./node_modules/evt/tools/Deferred.js
141
- var Deferred = __webpack_require__(50689);
142
- ;// CONCATENATED MODULE: ./dist/bin/tools/isTrackedByGit.js
143
-
144
-
145
-
146
- function getIsTrackedByGit(params) {
147
- const { filePath } = params;
148
- const dIsTracked = new Deferred.Deferred();
149
- external_child_process_.exec(`git ls-files --error-unmatch ${(0,external_path_.basename)(filePath)}`, { cwd: (0,external_path_.dirname)(filePath) }, error => {
150
- if (error === null) {
151
- dIsTracked.resolve(true);
152
- return;
153
- }
154
- if (error.code === 1) {
155
- dIsTracked.resolve(false);
156
- return;
157
- }
158
- dIsTracked.reject(error);
159
- });
160
- return dIsTracked.pr;
161
- }
162
- //# sourceMappingURL=isTrackedByGit.js.map
163
- ;// CONCATENATED MODULE: ./dist/bin/tools/untrackFromGit.js
164
-
165
-
166
-
167
- async function untrackFromGit(params) {
168
- const { filePath } = params;
169
- const dDone = new Deferred.Deferred();
170
- external_child_process_.exec(`git rm --cached ${(0,external_path_.basename)(filePath)}`, { cwd: (0,external_path_.dirname)(filePath) }, error => {
171
- if (error !== null) {
172
- dDone.reject(error);
173
- return;
174
- }
175
- dDone.resolve();
176
- });
177
- await dDone.pr;
178
- }
179
- //# sourceMappingURL=untrackFromGit.js.map
180
- ;// CONCATENATED MODULE: ./dist/bin/postinstall/postinstall.js
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- async function command(params) {
191
- const { buildContext } = params;
192
- const uiModuleMetas = await (0,postinstall_uiModuleMeta/* getUiModuleMetas */.j)({ buildContext });
193
- await installUiModulesPeerDependencies({
194
- buildContext,
195
- uiModuleMetas
196
- });
197
- const { ejectedFilesRelativePaths } = await (0,managedGitignoreFile/* readManagedGitignoreFile */.w)({
198
- buildContext
199
- });
200
- await (0,managedGitignoreFile/* writeManagedGitignoreFile */.Y)({
201
- buildContext,
202
- ejectedFilesRelativePaths,
203
- uiModuleMetas
204
- });
205
- await Promise.all(uiModuleMetas
206
- .map(uiModuleMeta => Promise.all(uiModuleMeta.files.map(async ({ fileRelativePath, copyableFilePath, hash }) => {
207
- if (ejectedFilesRelativePaths.includes(fileRelativePath)) {
208
- return;
209
- }
210
- const destFilePath = (0,external_path_.join)(buildContext.themeSrcDirPath, fileRelativePath);
211
- const doesFileExist = await (0,fs_existsAsync/* existsAsync */.o)(destFilePath);
212
- skip_condition: {
213
- if (!doesFileExist) {
214
- break skip_condition;
215
- }
216
- const destFileHash = (0,postinstall_uiModuleMeta/* computeHash */.x)(await promises_.readFile(destFilePath));
217
- if (destFileHash !== hash) {
218
- break skip_condition;
219
- }
220
- return;
221
- }
222
- git_untrack: {
223
- if (!doesFileExist) {
224
- break git_untrack;
225
- }
226
- const isTracked = await getIsTrackedByGit({
227
- filePath: destFilePath
228
- });
229
- if (!isTracked) {
230
- break git_untrack;
231
- }
232
- await untrackFromGit({
233
- filePath: destFilePath
234
- });
235
- }
236
- {
237
- const dirName = (0,external_path_.dirname)(destFilePath);
238
- if (!(await (0,fs_existsAsync/* existsAsync */.o)(dirName))) {
239
- await promises_.mkdir(dirName, { recursive: true });
240
- }
241
- }
242
- await promises_.copyFile(copyableFilePath, destFilePath);
243
- })))
244
- .flat());
245
- }
246
- //# sourceMappingURL=postinstall.js.map
247
- ;// CONCATENATED MODULE: ./dist/bin/postinstall/index.js
157
+ //# sourceMappingURL=initializeSpa.js.map
158
+ ;// CONCATENATED MODULE: ./dist/bin/shared/initializeSpa/index.js
248
159
 
249
160
  //# sourceMappingURL=index.js.map
250
161
 
@@ -482,7 +393,7 @@ async function runPackageManagerInstall(params) {
482
393
  });
483
394
  child.stdout.on("data", data => process.stdout.write(data));
484
395
  child.stderr.on("data", data => {
485
- if (data.toString("utf8").includes("has unmet peer dependency")) {
396
+ if (data.toString("utf8").includes("peer dependency")) {
486
397
  return;
487
398
  }
488
399
  process.stderr.write(data);
@@ -732,6 +643,115 @@ async function installWithoutBreakingLinks(params) {
732
643
 
733
644
  /***/ }),
734
645
 
646
+ /***/ 50689:
647
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
648
+
649
+
650
+ var __extends = (this && this.__extends) || (function () {
651
+ var extendStatics = function (d, b) {
652
+ extendStatics = Object.setPrototypeOf ||
653
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
654
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
655
+ return extendStatics(d, b);
656
+ };
657
+ return function (d, b) {
658
+ if (typeof b !== "function" && b !== null)
659
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
660
+ extendStatics(d, b);
661
+ function __() { this.constructor = d; }
662
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
663
+ };
664
+ })();
665
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
666
+ exports.VoidDeferred = exports.Deferred = void 0;
667
+ var overwriteReadonlyProp_1 = __webpack_require__(47803);
668
+ var Deferred = /** @class */ (function () {
669
+ function Deferred() {
670
+ var _this_1 = this;
671
+ this.isPending = true;
672
+ var resolve;
673
+ var reject;
674
+ this.pr = new Promise(function (resolve_, reject_) {
675
+ resolve = function (value) {
676
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
677
+ resolve_(value);
678
+ };
679
+ reject = function (error) {
680
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
681
+ reject_(error);
682
+ };
683
+ });
684
+ this.resolve = resolve;
685
+ this.reject = reject;
686
+ }
687
+ return Deferred;
688
+ }());
689
+ exports.Deferred = Deferred;
690
+ var VoidDeferred = /** @class */ (function (_super) {
691
+ __extends(VoidDeferred, _super);
692
+ function VoidDeferred() {
693
+ return _super !== null && _super.apply(this, arguments) || this;
694
+ }
695
+ return VoidDeferred;
696
+ }(Deferred));
697
+ exports.VoidDeferred = VoidDeferred;
698
+ //# sourceMappingURL=Deferred.js.map
699
+
700
+ /***/ }),
701
+
702
+ /***/ 47803:
703
+ /***/ (function(__unused_webpack_module, exports) {
704
+
705
+
706
+ var __assign = (this && this.__assign) || function () {
707
+ __assign = Object.assign || function(t) {
708
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
709
+ s = arguments[i];
710
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
711
+ t[p] = s[p];
712
+ }
713
+ return t;
714
+ };
715
+ return __assign.apply(this, arguments);
716
+ };
717
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
718
+ exports.overwriteReadonlyProp = void 0;
719
+ /**
720
+ * Assign a value to a property even if the object is freezed or if the property is not writable
721
+ * Throw if the assignation fail ( for example if the property is non configurable write: false )
722
+ * */
723
+ var overwriteReadonlyProp = function (obj, propertyName, value) {
724
+ try {
725
+ obj[propertyName] = value;
726
+ }
727
+ catch (_a) { }
728
+ if (obj[propertyName] === value) {
729
+ return value;
730
+ }
731
+ var errorDefineProperty = undefined;
732
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(obj, propertyName) || {
733
+ "enumerable": true,
734
+ "configurable": true,
735
+ };
736
+ if (!!propertyDescriptor.get) {
737
+ throw new Error("Probably a wrong ides to overwrite ".concat(String(propertyName), " getter"));
738
+ }
739
+ try {
740
+ Object.defineProperty(obj, propertyName, __assign(__assign({}, propertyDescriptor), { value: value }));
741
+ }
742
+ catch (error) {
743
+ errorDefineProperty = error;
744
+ }
745
+ if (obj[propertyName] !== value) {
746
+ throw errorDefineProperty || new Error("Can't assign");
747
+ }
748
+ return value;
749
+ };
750
+ exports.overwriteReadonlyProp = overwriteReadonlyProp;
751
+ //# sourceMappingURL=overwriteReadonlyProp.js.map
752
+
753
+ /***/ }),
754
+
735
755
  /***/ 23483:
736
756
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
737
757