keycloakify 10.0.0-rc.38 → 10.0.0-rc.39

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 (81) hide show
  1. package/bin/193.index.js +13 -13
  2. package/bin/3.index.js +86 -86
  3. package/bin/322.index.js +595 -0
  4. package/bin/453.index.js +3 -3
  5. package/bin/526.index.js +42 -633
  6. package/bin/538.index.js +68 -57
  7. package/bin/932.index.js +7 -7
  8. package/bin/944.index.js +621 -0
  9. package/bin/961.index.js +5 -5
  10. package/bin/97.index.js +3 -3
  11. package/bin/{21.index.js → 98.index.js} +59 -48
  12. package/bin/main.js +8 -8
  13. package/lib/getKcClsx.js +12 -1
  14. package/lib/getKcClsx.js.map +1 -1
  15. package/login/Fallback.d.ts +1 -0
  16. package/login/Fallback.js.map +1 -1
  17. package/login/UserProfileFormFields.d.ts +1 -0
  18. package/login/UserProfileFormFields.js +1 -3
  19. package/login/UserProfileFormFields.js.map +1 -1
  20. package/login/i18n/i18n.js +1 -1
  21. package/login/pages/IdpReviewUserProfile.d.ts +1 -0
  22. package/login/pages/IdpReviewUserProfile.js +2 -2
  23. package/login/pages/IdpReviewUserProfile.js.map +1 -1
  24. package/login/pages/LoginUpdateProfile.d.ts +1 -0
  25. package/login/pages/LoginUpdateProfile.js +2 -2
  26. package/login/pages/LoginUpdateProfile.js.map +1 -1
  27. package/login/pages/Register.d.ts +1 -0
  28. package/login/pages/Register.js +2 -2
  29. package/login/pages/Register.js.map +1 -1
  30. package/login/pages/UpdateEmail.d.ts +1 -0
  31. package/login/pages/UpdateEmail.js +2 -2
  32. package/login/pages/UpdateEmail.js.map +1 -1
  33. package/package.json +5 -8
  34. package/src/bin/add-story.ts +3 -3
  35. package/src/bin/copy-keycloak-resources-to-public.ts +3 -3
  36. package/src/bin/download-keycloak-default-theme.ts +5 -5
  37. package/src/bin/eject-page.ts +3 -3
  38. package/src/bin/initialize-email-theme.ts +5 -5
  39. package/src/bin/keycloakify/buildJars/buildJar.ts +14 -14
  40. package/src/bin/keycloakify/buildJars/buildJars.ts +8 -8
  41. package/src/bin/keycloakify/buildJars/generatePom.ts +9 -9
  42. package/src/bin/keycloakify/generateFtl/generateFtl.ts +12 -12
  43. package/src/bin/keycloakify/generateSrcMainResources/bringInAccountV1.ts +7 -7
  44. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResources.ts +9 -9
  45. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts +25 -25
  46. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForThemeVariant.ts +8 -8
  47. package/src/bin/keycloakify/generateStartKeycloakTestingContainer.ts +9 -9
  48. package/src/bin/keycloakify/keycloakify.ts +11 -11
  49. package/src/bin/keycloakify/replacers/replaceImportsInCssCode.ts +6 -6
  50. package/src/bin/keycloakify/replacers/replaceImportsInInlineCssCode.ts +7 -7
  51. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +10 -10
  52. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/vite.ts +13 -13
  53. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts +11 -11
  54. package/src/bin/main.ts +2 -2
  55. package/src/bin/shared/{buildOptions.ts → buildContext.ts} +62 -51
  56. package/src/bin/shared/copyKeycloakResourcesToPublic.ts +12 -12
  57. package/src/bin/shared/downloadKeycloakDefaultTheme.ts +7 -7
  58. package/src/bin/shared/downloadKeycloakStaticResources.ts +7 -7
  59. package/src/bin/shared/generateKcGenTs.ts +12 -12
  60. package/src/bin/shared/getThemeSrcDirPath.ts +3 -3
  61. package/src/bin/start-keycloak/appBuild.ts +11 -11
  62. package/src/bin/start-keycloak/keycloakifyBuild.ts +7 -7
  63. package/src/bin/start-keycloak/start-keycloak.ts +34 -22
  64. package/src/bin/tools/getNpmWorkspaceRootDirPath.ts +3 -3
  65. package/src/bin/update-kc-gen.ts +3 -3
  66. package/src/lib/getKcClsx.ts +15 -1
  67. package/src/login/Fallback.tsx +1 -0
  68. package/src/login/UserProfileFormFields.tsx +2 -4
  69. package/src/login/i18n/i18n.tsx +1 -1
  70. package/src/login/pages/IdpReviewUserProfile.tsx +8 -2
  71. package/src/login/pages/LoginUpdateProfile.tsx +8 -2
  72. package/src/login/pages/Register.tsx +8 -2
  73. package/src/login/pages/UpdateEmail.tsx +8 -2
  74. package/src/vite-plugin/vite-plugin.ts +19 -19
  75. package/vite-plugin/index.js +91 -80
  76. package/vite-plugin/vite-plugin.d.ts +3 -3
  77. package/bin/795.index.js +0 -1198
  78. package/lib/isStorybook.d.ts +0 -1
  79. package/lib/isStorybook.js +0 -3
  80. package/lib/isStorybook.js.map +0 -1
  81. package/src/lib/isStorybook.ts +0 -3
package/bin/526.index.js CHANGED
@@ -3,354 +3,6 @@ exports.id = 526;
3
3
  exports.ids = [526];
4
4
  exports.modules = {
5
5
 
6
- /***/ 54659:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
-
10
- // EXPORTS
11
- __webpack_require__.d(__webpack_exports__, {
12
- "d": () => (/* binding */ readBuildOptions)
13
- });
14
-
15
- // EXTERNAL MODULE: external "url"
16
- var external_url_ = __webpack_require__(57310);
17
- // EXTERNAL MODULE: external "path"
18
- var external_path_ = __webpack_require__(71017);
19
- // EXTERNAL MODULE: ./dist/bin/tools/getAbsoluteAndInOsFormatPath.js
20
- var getAbsoluteAndInOsFormatPath = __webpack_require__(86644);
21
- // EXTERNAL MODULE: external "child_process"
22
- var external_child_process_ = __webpack_require__(32081);
23
- // EXTERNAL MODULE: ./node_modules/tsafe/assert.js
24
- var assert = __webpack_require__(88078);
25
- // EXTERNAL MODULE: external "fs"
26
- var external_fs_ = __webpack_require__(57147);
27
- ;// CONCATENATED MODULE: ./dist/bin/tools/getNpmWorkspaceRootDirPath.js
28
-
29
-
30
-
31
-
32
- function getNpmWorkspaceRootDirPath(params) {
33
- const { reactAppRootDirPath, dependencyExpected } = params;
34
- const npmWorkspaceRootDirPath = (function callee(depth) {
35
- const cwd = (0,external_path_.resolve)((0,external_path_.join)(...[reactAppRootDirPath, ...Array(depth).fill("..")]));
36
- (0,assert.assert)(cwd !== external_path_.sep, "NPM workspace not found");
37
- try {
38
- external_child_process_.execSync("npm config get", {
39
- cwd,
40
- stdio: "ignore"
41
- });
42
- }
43
- catch (error) {
44
- if (String(error).includes("ENOWORKSPACES")) {
45
- return callee(depth + 1);
46
- }
47
- throw error;
48
- }
49
- const packageJsonFilePath = (0,external_path_.join)(cwd, "package.json");
50
- if (!external_fs_.existsSync(packageJsonFilePath)) {
51
- return callee(depth + 1);
52
- }
53
- (0,assert.assert)(external_fs_.existsSync(packageJsonFilePath));
54
- const parsedPackageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
55
- let isExpectedDependencyFound = false;
56
- for (const dependenciesOrDevDependencies of [
57
- "dependencies",
58
- "devDependencies"
59
- ]) {
60
- const dependencies = parsedPackageJson[dependenciesOrDevDependencies];
61
- if (dependencies === undefined) {
62
- continue;
63
- }
64
- (0,assert.assert)(dependencies instanceof Object);
65
- if (dependencies[dependencyExpected] === undefined) {
66
- continue;
67
- }
68
- isExpectedDependencyFound = true;
69
- }
70
- if (!isExpectedDependencyFound && parsedPackageJson.name !== dependencyExpected) {
71
- return callee(depth + 1);
72
- }
73
- return cwd;
74
- })(0);
75
- return { npmWorkspaceRootDirPath };
76
- }
77
- //# sourceMappingURL=getNpmWorkspaceRootDirPath.js.map
78
- // EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs
79
- var lib = __webpack_require__(52300);
80
- // EXTERNAL MODULE: ./node_modules/tsafe/index.js
81
- var tsafe = __webpack_require__(1666);
82
- // EXTERNAL MODULE: ./dist/bin/shared/constants.js
83
- var constants = __webpack_require__(173);
84
- ;// CONCATENATED MODULE: ./dist/bin/shared/buildOptions.js
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- function readBuildOptions(params) {
95
- var _a, _b, _c, _d, _e, _f;
96
- const { cliCommandOptions } = params;
97
- const reactAppRootDirPath = (() => {
98
- if (cliCommandOptions.reactAppRootDirPath === undefined) {
99
- return process.cwd();
100
- }
101
- return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
102
- pathIsh: cliCommandOptions.reactAppRootDirPath,
103
- cwd: process.cwd()
104
- });
105
- })();
106
- const { resolvedViteConfig } = (() => {
107
- if (external_fs_.readdirSync(reactAppRootDirPath)
108
- .find(fileBasename => fileBasename.startsWith("vite.config")) ===
109
- undefined) {
110
- return { resolvedViteConfig: undefined };
111
- }
112
- const output = external_child_process_.execSync("npx vite", {
113
- cwd: reactAppRootDirPath,
114
- env: Object.assign(Object.assign({}, process.env), { [constants/* vitePluginSubScriptEnvNames.resolveViteConfig */.fe.resolveViteConfig]: "true" })
115
- })
116
- .toString("utf8");
117
- (0,tsafe.assert)(output.includes(constants/* vitePluginSubScriptEnvNames.resolveViteConfig */.fe.resolveViteConfig), "Seems like the Keycloakify's Vite plugin is not installed.");
118
- const resolvedViteConfigStr = output
119
- .split(constants/* vitePluginSubScriptEnvNames.resolveViteConfig */.fe.resolveViteConfig)
120
- .reverse()[0];
121
- const resolvedViteConfig = JSON.parse(resolvedViteConfigStr);
122
- return { resolvedViteConfig };
123
- })();
124
- const parsedPackageJson = (() => {
125
- const zParsedPackageJson = lib.z.object({
126
- name: lib.z.string(),
127
- version: lib.z.string().optional(),
128
- homepage: lib.z.string().optional(),
129
- keycloakify: lib.z.object({
130
- extraThemeProperties: lib.z.array(lib.z.string()).optional(),
131
- artifactId: lib.z.string().optional(),
132
- groupId: lib.z.string().optional(),
133
- loginThemeResourcesFromKeycloakVersion: lib.z.string().optional(),
134
- reactAppBuildDirPath: lib.z.string().optional(),
135
- keycloakifyBuildDirPath: lib.z.string().optional(),
136
- themeName: lib.z.union([lib.z.string(), lib.z.array(lib.z.string())]).optional()
137
- })
138
- .optional()
139
- });
140
- {
141
- (0,tsafe.assert)();
142
- (0,tsafe.assert)();
143
- }
144
- return zParsedPackageJson.parse(JSON.parse(external_fs_.readFileSync((0,external_path_.join)(reactAppRootDirPath, "package.json"))
145
- .toString("utf8")));
146
- })();
147
- const userProvidedBuildOptions = Object.assign(Object.assign({}, parsedPackageJson.keycloakify), resolvedViteConfig === null || resolvedViteConfig === void 0 ? void 0 : resolvedViteConfig.userProvidedBuildOptions);
148
- const themeNames = (() => {
149
- if (userProvidedBuildOptions.themeName === undefined) {
150
- return [
151
- parsedPackageJson.name
152
- .replace(/^@(.*)/, "$1")
153
- .split("/")
154
- .join("-")
155
- ];
156
- }
157
- if (typeof userProvidedBuildOptions.themeName === "string") {
158
- return [userProvidedBuildOptions.themeName];
159
- }
160
- return userProvidedBuildOptions.themeName;
161
- })();
162
- const reactAppBuildDirPath = (() => {
163
- var _a;
164
- webpack: {
165
- if (resolvedViteConfig !== undefined) {
166
- break webpack;
167
- }
168
- if (((_a = parsedPackageJson.keycloakify) === null || _a === void 0 ? void 0 : _a.reactAppBuildDirPath) !== undefined) {
169
- return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
170
- pathIsh: parsedPackageJson.keycloakify.reactAppBuildDirPath,
171
- cwd: reactAppRootDirPath
172
- });
173
- }
174
- return (0,external_path_.join)(reactAppRootDirPath, "build");
175
- }
176
- return (0,external_path_.join)(reactAppRootDirPath, resolvedViteConfig.buildDir);
177
- })();
178
- const { npmWorkspaceRootDirPath } = getNpmWorkspaceRootDirPath({
179
- reactAppRootDirPath,
180
- dependencyExpected: "keycloakify"
181
- });
182
- return {
183
- bundler: resolvedViteConfig !== undefined ? "vite" : "webpack",
184
- themeVersion: (_b = (_a = process.env.KEYCLOAKIFY_THEME_VERSION) !== null && _a !== void 0 ? _a : parsedPackageJson.version) !== null && _b !== void 0 ? _b : "0.0.0",
185
- themeNames,
186
- extraThemeProperties: userProvidedBuildOptions.extraThemeProperties,
187
- groupId: (() => {
188
- var _a, _b, _c, _d, _e;
189
- const fallbackGroupId = `${themeNames[0]}.keycloak`;
190
- return ((_b = (_a = process.env.KEYCLOAKIFY_GROUP_ID) !== null && _a !== void 0 ? _a : userProvidedBuildOptions.groupId) !== null && _b !== void 0 ? _b : (parsedPackageJson.homepage === undefined
191
- ? fallbackGroupId
192
- : (_e = (_d = (_c = (0,external_url_.parse)(parsedPackageJson.homepage)
193
- .host) === null || _c === void 0 ? void 0 : _c.replace(/:[0-9]+$/, "")) === null || _d === void 0 ? void 0 : _d.split(".").reverse().join(".")) !== null && _e !== void 0 ? _e : fallbackGroupId) + ".keycloak");
194
- })(),
195
- artifactId: (_d = (_c = process.env.KEYCLOAKIFY_ARTIFACT_ID) !== null && _c !== void 0 ? _c : userProvidedBuildOptions.artifactId) !== null && _d !== void 0 ? _d : `${themeNames[0]}-keycloak-theme`,
196
- loginThemeResourcesFromKeycloakVersion: (_e = userProvidedBuildOptions.loginThemeResourcesFromKeycloakVersion) !== null && _e !== void 0 ? _e : "24.0.4",
197
- reactAppRootDirPath,
198
- reactAppBuildDirPath,
199
- keycloakifyBuildDirPath: (() => {
200
- if (userProvidedBuildOptions.keycloakifyBuildDirPath !== undefined) {
201
- return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
202
- pathIsh: userProvidedBuildOptions.keycloakifyBuildDirPath,
203
- cwd: reactAppRootDirPath
204
- });
205
- }
206
- return (0,external_path_.join)(reactAppRootDirPath, (resolvedViteConfig === null || resolvedViteConfig === void 0 ? void 0 : resolvedViteConfig.buildDir) === undefined
207
- ? "build_keycloak"
208
- : `${resolvedViteConfig.buildDir}_keycloak`);
209
- })(),
210
- publicDirPath: (() => {
211
- webpack: {
212
- if (resolvedViteConfig !== undefined) {
213
- break webpack;
214
- }
215
- if (process.env.PUBLIC_DIR_PATH !== undefined) {
216
- return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
217
- pathIsh: process.env.PUBLIC_DIR_PATH,
218
- cwd: reactAppRootDirPath
219
- });
220
- }
221
- return (0,external_path_.join)(reactAppRootDirPath, "public");
222
- }
223
- return (0,external_path_.join)(reactAppRootDirPath, resolvedViteConfig.publicDir);
224
- })(),
225
- cacheDirPath: (() => {
226
- const cacheDirPath = (0,external_path_.join)((() => {
227
- if (process.env.XDG_CACHE_HOME !== undefined) {
228
- return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
229
- pathIsh: process.env.XDG_CACHE_HOME,
230
- cwd: process.cwd()
231
- });
232
- }
233
- return (0,external_path_.join)(npmWorkspaceRootDirPath, "node_modules", ".cache");
234
- })(), "keycloakify");
235
- return cacheDirPath;
236
- })(),
237
- urlPathname: (() => {
238
- webpack: {
239
- if (resolvedViteConfig !== undefined) {
240
- break webpack;
241
- }
242
- const { homepage } = parsedPackageJson;
243
- let url = undefined;
244
- if (homepage !== undefined) {
245
- url = new URL(homepage);
246
- }
247
- if (url === undefined) {
248
- return undefined;
249
- }
250
- const out = url.pathname.replace(/([^/])$/, "$1/");
251
- return out === "/" ? undefined : out;
252
- }
253
- return resolvedViteConfig.urlPathname;
254
- })(),
255
- assetsDirPath: (() => {
256
- webpack: {
257
- if (resolvedViteConfig !== undefined) {
258
- break webpack;
259
- }
260
- return (0,external_path_.join)(reactAppBuildDirPath, "static");
261
- }
262
- return (0,external_path_.join)(reactAppBuildDirPath, resolvedViteConfig.assetsDir);
263
- })(),
264
- npmWorkspaceRootDirPath,
265
- kcContextExclusionsFtlCode: userProvidedBuildOptions.kcContextExclusionsFtlCode,
266
- environmentVariables: (_f = userProvidedBuildOptions.environmentVariables) !== null && _f !== void 0 ? _f : []
267
- };
268
- }
269
- //# sourceMappingURL=buildOptions.js.map
270
-
271
- /***/ }),
272
-
273
- /***/ 173:
274
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
275
-
276
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
277
- /* harmony export */ "M": () => (/* binding */ basenameOfTheKeycloakifyResourcesDir),
278
- /* harmony export */ "N$": () => (/* binding */ keycloak_resources),
279
- /* harmony export */ "UX": () => (/* binding */ accountThemePageIds),
280
- /* harmony export */ "X4": () => (/* binding */ nameOfTheGlobal),
281
- /* harmony export */ "fe": () => (/* binding */ vitePluginSubScriptEnvNames),
282
- /* harmony export */ "h6": () => (/* binding */ containerName),
283
- /* harmony export */ "lg": () => (/* binding */ nameOfTheLocalizationRealmOverridesUserProfileProperty),
284
- /* harmony export */ "rO": () => (/* binding */ themeTypes),
285
- /* harmony export */ "sj": () => (/* binding */ loginThemePageIds),
286
- /* harmony export */ "uo": () => (/* binding */ skipBuildJarsEnvName),
287
- /* harmony export */ "v$": () => (/* binding */ lastKeycloakVersionWithAccountV1),
288
- /* harmony export */ "y_": () => (/* binding */ accountV1ThemeName),
289
- /* harmony export */ "z0": () => (/* binding */ resources_common)
290
- /* harmony export */ });
291
- const nameOfTheGlobal = "kcContext";
292
- const nameOfTheLocalizationRealmOverridesUserProfileProperty = "__localizationRealmOverridesUserProfile";
293
- const keycloak_resources = "keycloak-resources";
294
- const resources_common = "resources-common";
295
- const lastKeycloakVersionWithAccountV1 = "21.1.2";
296
- const basenameOfTheKeycloakifyResourcesDir = "build";
297
- const themeTypes = ["login", "account"];
298
- const accountV1ThemeName = "account-v1";
299
- const vitePluginSubScriptEnvNames = {
300
- runPostBuildScript: "KEYCLOAKIFY_RUN_POST_BUILD_SCRIPT",
301
- resolveViteConfig: "KEYCLOAKIFY_RESOLVE_VITE_CONFIG"
302
- };
303
- const skipBuildJarsEnvName = "KEYCLOAKIFY_SKIP_BUILD_JAR";
304
- const loginThemePageIds = [
305
- "login.ftl",
306
- "login-username.ftl",
307
- "login-password.ftl",
308
- "webauthn-authenticate.ftl",
309
- "webauthn-register.ftl",
310
- "register.ftl",
311
- "info.ftl",
312
- "error.ftl",
313
- "login-reset-password.ftl",
314
- "login-verify-email.ftl",
315
- "terms.ftl",
316
- "login-oauth2-device-verify-user-code.ftl",
317
- "login-oauth-grant.ftl",
318
- "login-otp.ftl",
319
- "login-update-profile.ftl",
320
- "login-update-password.ftl",
321
- "login-idp-link-confirm.ftl",
322
- "login-idp-link-email.ftl",
323
- "login-page-expired.ftl",
324
- "login-config-totp.ftl",
325
- "logout-confirm.ftl",
326
- "idp-review-user-profile.ftl",
327
- "update-email.ftl",
328
- "select-authenticator.ftl",
329
- "saml-post-form.ftl",
330
- "delete-credential.ftl",
331
- "code.ftl",
332
- "delete-account-confirm.ftl",
333
- "frontchannel-logout.ftl",
334
- "login-recovery-authn-code-config.ftl",
335
- "login-recovery-authn-code-input.ftl",
336
- "login-reset-otp.ftl",
337
- "login-x509-info.ftl",
338
- "webauthn-error.ftl"
339
- ];
340
- const accountThemePageIds = [
341
- "password.ftl",
342
- "account.ftl",
343
- "sessions.ftl",
344
- "totp.ftl",
345
- "applications.ftl",
346
- "log.ftl",
347
- "federatedIdentity.ftl"
348
- ];
349
- const containerName = "keycloak-keycloakify";
350
- //# sourceMappingURL=constants.js.map
351
-
352
- /***/ }),
353
-
354
6
  /***/ 2323:
355
7
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
356
8
 
@@ -623,8 +275,10 @@ __webpack_require__.d(__webpack_exports__, {
623
275
  "command": () => (/* reexport */ command)
624
276
  });
625
277
 
626
- // EXTERNAL MODULE: ./dist/bin/shared/buildOptions.js + 1 modules
627
- var shared_buildOptions = __webpack_require__(54659);
278
+ // EXTERNAL MODULE: ./dist/bin/shared/buildContext.js + 1 modules
279
+ var shared_buildContext = __webpack_require__(87751);
280
+ // EXTERNAL MODULE: ./node_modules/tsafe/exclude.js
281
+ var exclude = __webpack_require__(41370);
628
282
  // EXTERNAL MODULE: ./dist/bin/shared/promptKeycloakVersion.js + 2 modules
629
283
  var promptKeycloakVersion = __webpack_require__(95781);
630
284
  // EXTERNAL MODULE: ./dist/bin/shared/metaInfKeycloakThemes.js
@@ -674,8 +328,8 @@ var is = __webpack_require__(94655);
674
328
 
675
329
  (0,assert.assert)();
676
330
  async function appBuild(params) {
677
- const { buildOptions } = params;
678
- const { bundler } = buildOptions;
331
+ const { buildContext } = params;
332
+ const { bundler } = buildContext;
679
333
  const { command, args, cwd } = (() => {
680
334
  var _a;
681
335
  switch (bundler) {
@@ -683,12 +337,12 @@ async function appBuild(params) {
683
337
  return {
684
338
  command: "npx",
685
339
  args: ["vite", "build"],
686
- cwd: buildOptions.reactAppRootDirPath
340
+ cwd: buildContext.projectDirPath
687
341
  };
688
342
  case "webpack": {
689
343
  for (const dirPath of [
690
- buildOptions.reactAppRootDirPath,
691
- buildOptions.npmWorkspaceRootDirPath
344
+ buildContext.projectDirPath,
345
+ buildContext.npmWorkspaceRootDirPath
692
346
  ]) {
693
347
  try {
694
348
  const parsedPackageJson = JSON.parse(external_fs_.readFileSync((0,external_path_.join)(dirPath, "package.json"))
@@ -755,10 +409,10 @@ async function appBuild(params) {
755
409
 
756
410
  (0,assert.assert)();
757
411
  async function keycloakifyBuild(params) {
758
- const { buildOptions, doSkipBuildJars } = params;
412
+ const { buildContext, doSkipBuildJars } = params;
759
413
  const dResult = new Deferred.Deferred();
760
414
  const child = external_child_process_.spawn("npx", ["keycloakify", "build"], {
761
- cwd: buildOptions.reactAppRootDirPath,
415
+ cwd: buildContext.projectDirPath,
762
416
  env: Object.assign(Object.assign({}, process.env), (doSkipBuildJars ? { [constants/* skipBuildJarsEnvName */.uo]: "true" } : {}))
763
417
  });
764
418
  child.stdout.on("data", data => process.stdout.write(data));
@@ -788,6 +442,7 @@ async function keycloakifyBuild(params) {
788
442
 
789
443
 
790
444
 
445
+
791
446
 
792
447
  async function command(params) {
793
448
  exit_if_docker_not_installed: {
@@ -827,10 +482,10 @@ async function command(params) {
827
482
  process.exit(1);
828
483
  }
829
484
  const { cliCommandOptions } = params;
830
- const buildOptions = (0,shared_buildOptions/* readBuildOptions */.d)({ cliCommandOptions });
485
+ const buildContext = (0,shared_buildContext/* getBuildContext */.s)({ cliCommandOptions });
831
486
  {
832
487
  const { isAppBuildSuccess } = await appBuild({
833
- buildOptions
488
+ buildContext
834
489
  });
835
490
  if (!isAppBuildSuccess) {
836
491
  console.log(source_default().red(`App build failed, exiting. Try running 'yarn build-keycloak-theme' and see what's wrong.`));
@@ -838,7 +493,7 @@ async function command(params) {
838
493
  }
839
494
  const { isKeycloakifyBuildSuccess } = await keycloakifyBuild({
840
495
  doSkipBuildJars: false,
841
- buildOptions
496
+ buildContext
842
497
  });
843
498
  if (!isKeycloakifyBuildSuccess) {
844
499
  console.log(source_default().red(`Keycloakify build failed, exiting. Try running 'yarn build-keycloak-theme' and see what's wrong.`));
@@ -846,7 +501,7 @@ async function command(params) {
846
501
  }
847
502
  }
848
503
  const metaInfKeycloakThemes = (0,shared_metaInfKeycloakThemes/* readMetaInfKeycloakThemes */.As)({
849
- keycloakifyBuildDirPath: buildOptions.keycloakifyBuildDirPath
504
+ keycloakifyBuildDirPath: buildContext.keycloakifyBuildDirPath
850
505
  });
851
506
  const doesImplementAccountTheme = metaInfKeycloakThemes.themes.some(({ name }) => name === constants/* accountV1ThemeName */.y_);
852
507
  const { keycloakVersion, keycloakMajorNumber: keycloakMajorVersionNumber } = await (async function getKeycloakMajor() {
@@ -860,7 +515,7 @@ async function command(params) {
860
515
  console.log(source_default().cyan("On which version of Keycloak do you want to test your theme?"));
861
516
  const { keycloakVersion } = await (0,promptKeycloakVersion/* promptKeycloakVersion */.s)({
862
517
  startingFromMajor: 17,
863
- cacheDirPath: buildOptions.cacheDirPath
518
+ cacheDirPath: buildContext.cacheDirPath
864
519
  });
865
520
  console.log(`→ ${keycloakVersion}`);
866
521
  const keycloakMajorNumber = SemVer/* SemVer.parse */.h.parse(keycloakVersion).major;
@@ -930,13 +585,13 @@ async function command(params) {
930
585
  }
931
586
  return (0,external_path_.join)(dirPath, value);
932
587
  })();
933
- const jarFilePath = (0,external_path_.join)(buildOptions.keycloakifyBuildDirPath, jarFileBasename);
588
+ const jarFilePath = (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, jarFileBasename);
934
589
  const { doUseBuiltInAccountV1Theme } = await (async () => {
935
590
  let doUseBuiltInAccountV1Theme = false;
936
591
  await (0,extractArchive/* extractArchive */.N)({
937
592
  archiveFilePath: jarFilePath,
938
593
  onArchiveFile: async ({ relativeFilePathInArchive, readFile, earlyExit }) => {
939
- for (const themeName of buildOptions.themeNames) {
594
+ for (const themeName of buildContext.themeNames) {
940
595
  if (relativeFilePathInArchive ===
941
596
  (0,external_path_.join)("theme", themeName, "account", "theme.properties")) {
942
597
  if ((await readFile())
@@ -954,8 +609,8 @@ async function command(params) {
954
609
  const accountThemePropertyPatch = !doUseBuiltInAccountV1Theme
955
610
  ? undefined
956
611
  : () => {
957
- for (const themeName of buildOptions.themeNames) {
958
- const filePath = (0,external_path_.join)(buildOptions.keycloakifyBuildDirPath, "src", "main", "resources", "theme", themeName, "account", "theme.properties");
612
+ for (const themeName of buildContext.themeNames) {
613
+ const filePath = (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, "src", "main", "resources", "theme", themeName, "account", "theme.properties");
959
614
  const sourceCode = external_fs_.readFileSync(filePath);
960
615
  const modifiedSourceCode = Buffer.from(sourceCode
961
616
  .toString("utf8")
@@ -990,11 +645,11 @@ async function command(params) {
990
645
  ? ["-e", "JAVA_OPTS=-Dkeycloak.profile=preview"]
991
646
  : []),
992
647
  ...[
993
- ...buildOptions.themeNames,
648
+ ...buildContext.themeNames,
994
649
  ...(doUseBuiltInAccountV1Theme ? [] : [constants/* accountV1ThemeName */.y_])
995
650
  ]
996
651
  .map(themeName => ({
997
- localDirPath: (0,external_path_.join)(buildOptions.keycloakifyBuildDirPath, "src", "main", "resources", "theme", themeName),
652
+ localDirPath: (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, "src", "main", "resources", "theme", themeName),
998
653
  containerDirPath: `/opt/keycloak/themes/${themeName}`
999
654
  }))
1000
655
  .map(({ localDirPath, containerDirPath }) => [
@@ -1002,6 +657,15 @@ async function command(params) {
1002
657
  `${localDirPath}:${containerDirPath}:rw`
1003
658
  ])
1004
659
  .flat(),
660
+ ...buildContext.environmentVariables
661
+ .map(({ name }) => ({ name, envValue: process.env[name] }))
662
+ .map(({ name, envValue }) => envValue === undefined ? undefined : { name, envValue })
663
+ .filter((0,exclude.exclude)(undefined))
664
+ .map(({ name, envValue }) => [
665
+ "--env",
666
+ `${name}='${envValue.replace(/'/g, "'\\''")}'`
667
+ ])
668
+ .flat(),
1005
669
  `quay.io/keycloak/keycloak:${keycloakVersion}`,
1006
670
  "start-dev",
1007
671
  ...(21 <= keycloakMajorVersionNumber && keycloakMajorVersionNumber < 24
@@ -1010,14 +674,14 @@ async function command(params) {
1010
674
  ...(realmJsonFilePath === undefined ? [] : ["--import-realm"])
1011
675
  ],
1012
676
  {
1013
- cwd: buildOptions.keycloakifyBuildDirPath
677
+ cwd: buildContext.keycloakifyBuildDirPath
1014
678
  }
1015
679
  ];
1016
680
  const child = external_child_process_.spawn(...spawnArgs);
1017
681
  child.stdout.on("data", data => process.stdout.write(data));
1018
682
  child.stderr.on("data", data => process.stderr.write(data));
1019
683
  child.on("exit", process.exit);
1020
- const srcDirPath = (0,external_path_.join)(buildOptions.reactAppRootDirPath, "src");
684
+ const srcDirPath = (0,external_path_.join)(buildContext.projectDirPath, "src");
1021
685
  {
1022
686
  const handler = async (data) => {
1023
687
  if (!data.toString("utf8").includes("Listening on: http://0.0.0.0:8080")) {
@@ -1039,7 +703,7 @@ async function command(params) {
1039
703
  `- username: ${source_default().cyan.bold("testuser")}`,
1040
704
  `- password: ${source_default().cyan.bold("password123")}`,
1041
705
  "",
1042
- `Watching for changes in ${source_default().bold(`.${external_path_.sep}${(0,external_path_.relative)(process.cwd(), buildOptions.reactAppRootDirPath)}`)}`
706
+ `Watching for changes in ${source_default().bold(`.${external_path_.sep}${(0,external_path_.relative)(process.cwd(), buildContext.projectDirPath)}`)}`
1043
707
  ].join("\n"));
1044
708
  };
1045
709
  child.stdout.on("data", handler);
@@ -1048,14 +712,14 @@ async function command(params) {
1048
712
  const runFullBuild = runExclusive.build(async () => {
1049
713
  console.log(source_default().cyan("Detected changes in the theme. Rebuilding ..."));
1050
714
  const { isAppBuildSuccess } = await appBuild({
1051
- buildOptions
715
+ buildContext
1052
716
  });
1053
717
  if (!isAppBuildSuccess) {
1054
718
  return;
1055
719
  }
1056
720
  const { isKeycloakifyBuildSuccess } = await keycloakifyBuild({
1057
721
  doSkipBuildJars: true,
1058
- buildOptions
722
+ buildContext
1059
723
  });
1060
724
  if (!isKeycloakifyBuildSuccess) {
1061
725
  return;
@@ -1066,11 +730,11 @@ async function command(params) {
1066
730
  const { waitForDebounce } = (0,tools_waitForDebounce/* waitForDebounceFactory */.z)({ delay: 400 });
1067
731
  chokidar.watch([
1068
732
  srcDirPath,
1069
- buildOptions.publicDirPath,
1070
- (0,external_path_.join)(buildOptions.reactAppRootDirPath, "package.json"),
1071
- (0,external_path_.join)(buildOptions.reactAppRootDirPath, "vite.config.ts"),
1072
- (0,external_path_.join)(buildOptions.reactAppRootDirPath, "vite.config.js"),
1073
- (0,external_path_.join)(buildOptions.reactAppRootDirPath, "index.html"),
733
+ buildContext.publicDirPath,
734
+ (0,external_path_.join)(buildContext.projectDirPath, "package.json"),
735
+ (0,external_path_.join)(buildContext.projectDirPath, "vite.config.ts"),
736
+ (0,external_path_.join)(buildContext.projectDirPath, "vite.config.js"),
737
+ (0,external_path_.join)(buildContext.projectDirPath, "index.html"),
1074
738
  (0,external_path_.join)((0,getThisCodebaseRootDirPath/* getThisCodebaseRootDirPath */.e)(), "src")
1075
739
  ], {
1076
740
  ignoreInitial: true
@@ -1087,261 +751,6 @@ async function command(params) {
1087
751
 
1088
752
  //# sourceMappingURL=index.js.map
1089
753
 
1090
- /***/ }),
1091
-
1092
- /***/ 12171:
1093
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1094
-
1095
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1096
- /* harmony export */ "h": () => (/* binding */ SemVer)
1097
- /* harmony export */ });
1098
- var SemVer;
1099
- (function (SemVer) {
1100
- const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
1101
- function parse(versionStr) {
1102
- const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
1103
- if (!match) {
1104
- throw new Error(`${versionStr} is not a valid semantic version`);
1105
- }
1106
- const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
1107
- const str = match[3];
1108
- return str === undefined ? 0 : parseInt(str);
1109
- })() }, (() => {
1110
- const str = match[4];
1111
- return str === undefined ? {} : { rc: parseInt(str) };
1112
- })());
1113
- const initialStr = stringify(semVer);
1114
- Object.defineProperty(semVer, "parsedFrom", {
1115
- enumerable: true,
1116
- get: function () {
1117
- const currentStr = stringify(this);
1118
- if (currentStr !== initialStr) {
1119
- throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
1120
- }
1121
- return versionStr;
1122
- }
1123
- });
1124
- return semVer;
1125
- }
1126
- SemVer.parse = parse;
1127
- function stringify(v) {
1128
- return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
1129
- }
1130
- SemVer.stringify = stringify;
1131
- /**
1132
- *
1133
- * v1 < v2 => -1
1134
- * v1 === v2 => 0
1135
- * v1 > v2 => 1
1136
- *
1137
- */
1138
- function compare(v1, v2) {
1139
- const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
1140
- const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
1141
- for (const level of ["major", "minor", "patch", "rc"]) {
1142
- if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
1143
- return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
1144
- }
1145
- }
1146
- return 0;
1147
- }
1148
- SemVer.compare = compare;
1149
- /*
1150
- console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
1151
- console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
1152
- console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
1153
- */
1154
- function bumpType(params) {
1155
- const versionAhead = typeof params.versionAhead === "string"
1156
- ? parse(params.versionAhead)
1157
- : params.versionAhead;
1158
- const versionBehind = typeof params.versionBehind === "string"
1159
- ? parse(params.versionBehind)
1160
- : params.versionBehind;
1161
- if (compare(versionBehind, versionAhead) === 1) {
1162
- throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
1163
- }
1164
- for (const level of ["major", "minor", "patch", "rc"]) {
1165
- if (versionBehind[level] !== versionAhead[level]) {
1166
- return level;
1167
- }
1168
- }
1169
- return "no bump";
1170
- }
1171
- SemVer.bumpType = bumpType;
1172
- })(SemVer || (SemVer = {}));
1173
- //# sourceMappingURL=SemVer.js.map
1174
-
1175
- /***/ }),
1176
-
1177
- /***/ 29121:
1178
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1179
-
1180
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1181
- /* harmony export */ "N": () => (/* binding */ extractArchive)
1182
- /* harmony export */ });
1183
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73292);
1184
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_0__);
1185
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57147);
1186
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
1187
- /* harmony import */ var yauzl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78781);
1188
- /* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12781);
1189
- /* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(stream__WEBPACK_IMPORTED_MODULE_3__);
1190
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50689);
1191
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_4__);
1192
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71017);
1193
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);
1194
- /* harmony import */ var _fs_existsAsync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43765);
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
- async function extractArchive(params) {
1203
- const { archiveFilePath, onArchiveFile } = params;
1204
- const zipFile = await new Promise((resolve, reject) => {
1205
- yauzl__WEBPACK_IMPORTED_MODULE_2__.open(archiveFilePath, { lazyEntries: true }, async (error, zipFile) => {
1206
- if (error) {
1207
- reject(error);
1208
- return;
1209
- }
1210
- resolve(zipFile);
1211
- });
1212
- });
1213
- const dDone = new evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_4__.Deferred();
1214
- zipFile.once("end", () => {
1215
- zipFile.close();
1216
- dDone.resolve();
1217
- });
1218
- const writeFile = async (entry, params) => {
1219
- const { filePath, modifiedData } = params;
1220
- {
1221
- const dirPath = (0,path__WEBPACK_IMPORTED_MODULE_5__.dirname)(filePath);
1222
- if (!(await (0,_fs_existsAsync__WEBPACK_IMPORTED_MODULE_6__/* .existsAsync */ .o)(dirPath))) {
1223
- await fs_promises__WEBPACK_IMPORTED_MODULE_0___default().mkdir(dirPath, { recursive: true });
1224
- }
1225
- }
1226
- if (modifiedData !== undefined) {
1227
- await fs_promises__WEBPACK_IMPORTED_MODULE_0___default().writeFile(filePath, modifiedData);
1228
- return;
1229
- }
1230
- const readStream = await new Promise(resolve => zipFile.openReadStream(entry, async (error, readStream) => {
1231
- if (error) {
1232
- dDone.reject(error);
1233
- return;
1234
- }
1235
- resolve(readStream);
1236
- }));
1237
- const dDoneWithFile = new evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_4__.Deferred();
1238
- stream__WEBPACK_IMPORTED_MODULE_3___default().pipeline(readStream, fs__WEBPACK_IMPORTED_MODULE_1___default().createWriteStream(filePath), error => {
1239
- if (error) {
1240
- dDone.reject(error);
1241
- return;
1242
- }
1243
- dDoneWithFile.resolve();
1244
- });
1245
- await dDoneWithFile.pr;
1246
- };
1247
- const readFile = (entry) => new Promise(resolve => zipFile.openReadStream(entry, async (error, readStream) => {
1248
- if (error) {
1249
- dDone.reject(error);
1250
- return;
1251
- }
1252
- const chunks = [];
1253
- readStream.on("data", chunk => {
1254
- chunks.push(chunk);
1255
- });
1256
- readStream.on("end", () => {
1257
- resolve(Buffer.concat(chunks));
1258
- });
1259
- readStream.on("error", error => {
1260
- dDone.reject(error);
1261
- });
1262
- }));
1263
- zipFile.on("entry", async (entry) => {
1264
- handle_file: {
1265
- // NOTE: Skip directories
1266
- if (entry.fileName.endsWith(path__WEBPACK_IMPORTED_MODULE_5__.sep)) {
1267
- break handle_file;
1268
- }
1269
- let hasEarlyExitBeenCalled = false;
1270
- await onArchiveFile({
1271
- relativeFilePathInArchive: entry.fileName.split("/").join(path__WEBPACK_IMPORTED_MODULE_5__.sep),
1272
- readFile: () => readFile(entry),
1273
- writeFile: params => writeFile(entry, params),
1274
- earlyExit: () => {
1275
- hasEarlyExitBeenCalled = true;
1276
- }
1277
- });
1278
- if (hasEarlyExitBeenCalled) {
1279
- zipFile.close();
1280
- dDone.resolve();
1281
- return;
1282
- }
1283
- }
1284
- zipFile.readEntry();
1285
- });
1286
- zipFile.readEntry();
1287
- await dDone.pr;
1288
- }
1289
- //# sourceMappingURL=extractArchive.js.map
1290
-
1291
- /***/ }),
1292
-
1293
- /***/ 43765:
1294
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1295
-
1296
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1297
- /* harmony export */ "o": () => (/* binding */ existsAsync)
1298
- /* harmony export */ });
1299
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73292);
1300
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_0__);
1301
-
1302
- async function existsAsync(path) {
1303
- try {
1304
- await fs_promises__WEBPACK_IMPORTED_MODULE_0__.stat(path);
1305
- return true;
1306
- }
1307
- catch (error) {
1308
- if (error.code === "ENOENT")
1309
- return false;
1310
- throw error;
1311
- }
1312
- }
1313
- //# sourceMappingURL=fs.existsAsync.js.map
1314
-
1315
- /***/ }),
1316
-
1317
- /***/ 86644:
1318
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1319
-
1320
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1321
- /* harmony export */ "c": () => (/* binding */ getAbsoluteAndInOsFormatPath)
1322
- /* harmony export */ });
1323
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71017);
1324
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
1325
- /* harmony import */ var os__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22037);
1326
- /* harmony import */ var os__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(os__WEBPACK_IMPORTED_MODULE_1__);
1327
-
1328
-
1329
- function getAbsoluteAndInOsFormatPath(params) {
1330
- const { pathIsh, cwd } = params;
1331
- let pathOut = pathIsh;
1332
- pathOut = pathOut.replace(/\//g, path__WEBPACK_IMPORTED_MODULE_0__.sep);
1333
- if (pathOut.startsWith("~")) {
1334
- pathOut = pathOut.replace("~", os__WEBPACK_IMPORTED_MODULE_1__.homedir());
1335
- }
1336
- pathOut = pathOut.endsWith(path__WEBPACK_IMPORTED_MODULE_0__.sep) ? pathOut.slice(0, -1) : pathOut;
1337
- if (!(0,path__WEBPACK_IMPORTED_MODULE_0__.isAbsolute)(pathOut)) {
1338
- pathOut = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(cwd, pathOut);
1339
- }
1340
- pathOut = (0,path__WEBPACK_IMPORTED_MODULE_0__.resolve)(pathOut);
1341
- return pathOut;
1342
- }
1343
- //# sourceMappingURL=getAbsoluteAndInOsFormatPath.js.map
1344
-
1345
754
  /***/ })
1346
755
 
1347
756
  };