keycloakify 10.0.3 → 10.0.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/780.index.js CHANGED
@@ -73,11 +73,13 @@ function updateAccountThemeImplementationInConfig(params) {
73
73
  (0,assert.assert)();
74
74
  return (0,id.id)(zTargetType);
75
75
  })();
76
- return zParsedPackageJson.parse(JSON.parse(external_fs_.readFileSync(buildContext.packageJsonFilePath)
77
- .toString("utf8")));
76
+ const parsedPackageJson = JSON.parse(external_fs_.readFileSync(buildContext.packageJsonFilePath).toString("utf8"));
77
+ zParsedPackageJson.parse(parsedPackageJson);
78
+ return parsedPackageJson;
78
79
  })();
79
80
  parsedPackageJson.keycloakify.accountThemeImplementation =
80
81
  accountThemeType;
82
+ external_fs_.writeFileSync(buildContext.packageJsonFilePath, Buffer.from(JSON.stringify(parsedPackageJson, undefined, 4), "utf8"));
81
83
  }
82
84
  break;
83
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.3",
3
+ "version": "10.0.4",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,17 +75,22 @@ export function updateAccountThemeImplementationInConfig(params: {
75
75
  return id<z.ZodType<TargetType>>(zTargetType);
76
76
  })();
77
77
 
78
- return zParsedPackageJson.parse(
79
- JSON.parse(
80
- fs
81
- .readFileSync(buildContext.packageJsonFilePath)
82
- .toString("utf8")
83
- )
78
+ const parsedPackageJson = JSON.parse(
79
+ fs.readFileSync(buildContext.packageJsonFilePath).toString("utf8")
84
80
  );
81
+
82
+ zParsedPackageJson.parse(parsedPackageJson);
83
+
84
+ return parsedPackageJson;
85
85
  })();
86
86
 
87
87
  parsedPackageJson.keycloakify.accountThemeImplementation =
88
88
  accountThemeType;
89
+
90
+ fs.writeFileSync(
91
+ buildContext.packageJsonFilePath,
92
+ Buffer.from(JSON.stringify(parsedPackageJson, undefined, 4), "utf8")
93
+ );
89
94
  }
90
95
  break;
91
96
  }