@keycloakify/angular 0.1.5 → 0.1.6

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/84.index.js CHANGED
@@ -356,7 +356,7 @@ async function command(params) {
356
356
  await transformCodebase({
357
357
  srcDirPath: (0,external_path_.join)(localThemeTypeDirPath, componentDirRelativeToThemeTypePath_i),
358
358
  destDirPath,
359
- transformSourceCode: async ({ filePath, sourceCode }) => {
359
+ transformSourceCode: async ({ filePath, fileRelativePath, sourceCode }) => {
360
360
  if (!filePath.endsWith('.ts')) {
361
361
  let modifiedSourceCode_str = sourceCode.toString('utf8');
362
362
  run_prettier: {
@@ -364,7 +364,7 @@ async function command(params) {
364
364
  break run_prettier;
365
365
  }
366
366
  modifiedSourceCode_str = await (0,runPrettier/* runPrettier */.JS)({
367
- filePath,
367
+ filePath: (0,external_path_.join)(destDirPath, fileRelativePath),
368
368
  sourceCode: modifiedSourceCode_str
369
369
  });
370
370
  }
@@ -404,7 +404,7 @@ async function command(params) {
404
404
  break run_prettier;
405
405
  }
406
406
  modifiedSourceCode_str = await (0,runPrettier/* runPrettier */.JS)({
407
- filePath,
407
+ filePath: (0,external_path_.join)(destDirPath, fileRelativePath),
408
408
  sourceCode: modifiedSourceCode_str
409
409
  });
410
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keycloakify/angular",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "peerDependencies": {
5
5
  "keycloakify": "^11.3.16",
6
6
  "@angular/core": "^18.0.0",
@@ -161,7 +161,11 @@ export async function command(params: { buildContext: BuildContext }) {
161
161
  componentDirRelativeToThemeTypePath_i
162
162
  ),
163
163
  destDirPath,
164
- transformSourceCode: async ({ filePath, sourceCode }) => {
164
+ transformSourceCode: async ({
165
+ filePath,
166
+ fileRelativePath,
167
+ sourceCode
168
+ }) => {
165
169
  if (!filePath.endsWith('.ts')) {
166
170
  let modifiedSourceCode_str = sourceCode.toString('utf8');
167
171
 
@@ -171,7 +175,7 @@ export async function command(params: { buildContext: BuildContext }) {
171
175
  }
172
176
 
173
177
  modifiedSourceCode_str = await runPrettier({
174
- filePath,
178
+ filePath: pathJoin(destDirPath, fileRelativePath),
175
179
  sourceCode: modifiedSourceCode_str
176
180
  });
177
181
  }
@@ -259,7 +263,7 @@ export async function command(params: { buildContext: BuildContext }) {
259
263
  }
260
264
 
261
265
  modifiedSourceCode_str = await runPrettier({
262
- filePath,
266
+ filePath: pathJoin(destDirPath, fileRelativePath),
263
267
  sourceCode: modifiedSourceCode_str
264
268
  });
265
269
  }