keycloakify 11.8.49-rc.1 → 11.8.49
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/bin/254.index.js
CHANGED
@@ -161,17 +161,13 @@ async function command(params) {
|
|
161
161
|
((_d = parsedPackageJson.devDependencies) !== null && _d !== void 0 ? _d : (parsedPackageJson.devDependencies = {}))[moduleName] = `~${latestVersion}`;
|
162
162
|
delete parsedPackageJson.dependencies[moduleName];
|
163
163
|
}
|
164
|
-
console.log("====>", buildContext.themeSrcDirPath);
|
165
164
|
for (const fileBasename of ["main-kc.dev.tsx", "main.dev.tsx"]) {
|
166
|
-
console.log("====>", fileBasename);
|
167
165
|
const filePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(buildContext.themeSrcDirPath, fileBasename);
|
168
166
|
if (!(await (0,_tools_fs_existsAsync__WEBPACK_IMPORTED_MODULE_10__/* .existsAsync */ .o)(filePath))) {
|
169
|
-
console.log("continue");
|
170
167
|
continue;
|
171
168
|
}
|
172
169
|
const content = (await fs_promises__WEBPACK_IMPORTED_MODULE_2__.readFile(filePath)).toString("utf8");
|
173
170
|
if (!content.includes("export {}")) {
|
174
|
-
console.log("!!! break");
|
175
171
|
break;
|
176
172
|
}
|
177
173
|
let content_new = [
|
package/bin/762.index.js
CHANGED
@@ -227,7 +227,7 @@ var source_default = /*#__PURE__*/__webpack_require__.n(source);
|
|
227
227
|
async function command(params) {
|
228
228
|
const { projectDirPath } = params;
|
229
229
|
await setupVitePluginIfNeeded({ projectDirPath });
|
230
|
-
|
230
|
+
let buildContext = (0,shared_buildContext/* getBuildContext */.s)({ projectDirPath });
|
231
231
|
const { hasBeenHandled } = await (0,customHandler_delegate/* maybeDelegateCommandToCustomHandler */.q)({
|
232
232
|
commandName: "init",
|
233
233
|
buildContext
|
@@ -449,6 +449,7 @@ async function command(params) {
|
|
449
449
|
console.log(source_default().gray("You already have implemented a theme type of every kind, exiting"));
|
450
450
|
process.exit(0);
|
451
451
|
}
|
452
|
+
buildContext = (0,shared_buildContext/* getBuildContext */.s)({ projectDirPath });
|
452
453
|
switch (themeType) {
|
453
454
|
case "account":
|
454
455
|
{
|
package/package.json
CHANGED
package/src/bin/init/init.ts
CHANGED
@@ -19,7 +19,7 @@ export async function command(params: { projectDirPath: string }) {
|
|
19
19
|
|
20
20
|
await setupVitePluginIfNeeded({ projectDirPath });
|
21
21
|
|
22
|
-
|
22
|
+
let buildContext = getBuildContext({ projectDirPath });
|
23
23
|
|
24
24
|
const { hasBeenHandled } = await maybeDelegateCommandToCustomHandler({
|
25
25
|
commandName: "init",
|
@@ -327,6 +327,8 @@ export async function command(params: { projectDirPath: string }) {
|
|
327
327
|
process.exit(0);
|
328
328
|
}
|
329
329
|
|
330
|
+
buildContext = getBuildContext({ projectDirPath });
|
331
|
+
|
330
332
|
switch (themeType) {
|
331
333
|
case "account":
|
332
334
|
{
|
@@ -191,22 +191,16 @@ export async function command(params: { buildContext: BuildContext }) {
|
|
191
191
|
delete parsedPackageJson.dependencies[moduleName];
|
192
192
|
}
|
193
193
|
|
194
|
-
console.log("====>", buildContext.themeSrcDirPath);
|
195
|
-
|
196
194
|
for (const fileBasename of ["main-kc.dev.tsx", "main.dev.tsx"]) {
|
197
|
-
console.log("====>", fileBasename);
|
198
|
-
|
199
195
|
const filePath = pathJoin(buildContext.themeSrcDirPath, fileBasename);
|
200
196
|
|
201
197
|
if (!(await existsAsync(filePath))) {
|
202
|
-
console.log("continue");
|
203
198
|
continue;
|
204
199
|
}
|
205
200
|
|
206
201
|
const content = (await fs.readFile(filePath)).toString("utf8");
|
207
202
|
|
208
203
|
if (!content.includes("export {}")) {
|
209
|
-
console.log("!!! break");
|
210
204
|
break;
|
211
205
|
}
|
212
206
|
|