keycloakify 11.13.3 → 11.13.4
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 +3 -1
- package/package.json +1 -1
- package/src/bin/init/init.ts +3 -1
package/bin/762.index.js
CHANGED
|
@@ -292,7 +292,9 @@ async function command(params) {
|
|
|
292
292
|
let files;
|
|
293
293
|
if (doSetupAsStandalone) {
|
|
294
294
|
const viteEnvDTsFilePath = (0,external_path_.join)(buildContext.themeSrcDirPath, "vite-env.d.ts");
|
|
295
|
-
const viteEnvDTsContent = await
|
|
295
|
+
const viteEnvDTsContent = (await (0,fs_existsAsync/* existsAsync */.o)(viteEnvDTsFilePath))
|
|
296
|
+
? await promises_.readFile(viteEnvDTsFilePath)
|
|
297
|
+
: `/// <reference types="vite/client" />\n`;
|
|
296
298
|
await promises_.rm(srcDirPath, { recursive: true });
|
|
297
299
|
await promises_.mkdir(srcDirPath);
|
|
298
300
|
await promises_.writeFile(viteEnvDTsFilePath, viteEnvDTsContent);
|
package/package.json
CHANGED
package/src/bin/init/init.ts
CHANGED
|
@@ -120,7 +120,9 @@ export async function command(params: { projectDirPath: string }) {
|
|
|
120
120
|
"vite-env.d.ts"
|
|
121
121
|
);
|
|
122
122
|
|
|
123
|
-
const viteEnvDTsContent = await
|
|
123
|
+
const viteEnvDTsContent = (await existsAsync(viteEnvDTsFilePath))
|
|
124
|
+
? await fs.readFile(viteEnvDTsFilePath)
|
|
125
|
+
: `/// <reference types="vite/client" />\n`;
|
|
124
126
|
|
|
125
127
|
await fs.rm(srcDirPath, { recursive: true });
|
|
126
128
|
|