keycloakify 11.8.47 → 11.8.48
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/762.index.js +6 -0
- package/package.json +1 -1
- package/src/bin/init/init.ts +9 -1
package/bin/762.index.js
CHANGED
@@ -375,6 +375,12 @@ async function command(params) {
|
|
375
375
|
}
|
376
376
|
for (let { relativeFilePath, fileContent } of files) {
|
377
377
|
const filePath = (0,external_path_.join)(srcDirPath, relativeFilePath);
|
378
|
+
{
|
379
|
+
const dirPath = (0,external_path_.dirname)(filePath);
|
380
|
+
if (!(await (0,fs_existsAsync/* existsAsync */.o)(dirPath))) {
|
381
|
+
await promises_.mkdir(dirPath, { recursive: true });
|
382
|
+
}
|
383
|
+
}
|
378
384
|
run_prettier: {
|
379
385
|
if (!(await (0,runPrettier/* getIsPrettierAvailable */.MT)())) {
|
380
386
|
break run_prettier;
|
package/package.json
CHANGED
package/src/bin/init/init.ts
CHANGED
@@ -10,7 +10,7 @@ import { runPrettier, getIsPrettierAvailable } from "../tools/runPrettier";
|
|
10
10
|
import cliSelect from "cli-select";
|
11
11
|
import { THEME_TYPES } from "../shared/constants";
|
12
12
|
import chalk from "chalk";
|
13
|
-
import { join as pathJoin, relative as pathRelative } from "path";
|
13
|
+
import { join as pathJoin, relative as pathRelative, dirname as pathDirname } from "path";
|
14
14
|
import { existsAsync } from "../tools/fs.existsAsync";
|
15
15
|
import { KEYCLOAK_THEME } from "../shared/constants";
|
16
16
|
|
@@ -213,6 +213,14 @@ export async function command(params: { projectDirPath: string }) {
|
|
213
213
|
for (let { relativeFilePath, fileContent } of files) {
|
214
214
|
const filePath = pathJoin(srcDirPath, relativeFilePath);
|
215
215
|
|
216
|
+
{
|
217
|
+
const dirPath = pathDirname(filePath);
|
218
|
+
|
219
|
+
if (!(await existsAsync(dirPath))) {
|
220
|
+
await fs.mkdir(dirPath, { recursive: true });
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
216
224
|
run_prettier: {
|
217
225
|
if (!(await getIsPrettierAvailable())) {
|
218
226
|
break run_prettier;
|