@muverse/core 0.2.5 → 0.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradle-project-information.d.ts","sourceRoot":"","sources":["../../../src/adapters/gradle/gradle-project-information.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AA4H1G;;;;;;;GAOG;AACH,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"gradle-project-information.d.ts","sourceRoot":"","sources":["../../../src/adapters/gradle/gradle-project-information.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AA4H1G;;;;;;;GAOG;AACH,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAsEtH;AA2CD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,qBAAqB,GAAG,kBAAkB,CA6CnG"}
|
|
@@ -135,6 +135,7 @@ export async function getRawProjectInformation(projectRoot, outputFile) {
|
|
|
135
135
|
}
|
|
136
136
|
if (executeScript) {
|
|
137
137
|
// Step 3: File doesn't exist or cache is invalid - execute Gradle script
|
|
138
|
+
const outputFile = join(projectRoot, 'build', 'project-information.json');
|
|
138
139
|
await executeGradleScript(projectRoot, outputFile);
|
|
139
140
|
// Read the output file content
|
|
140
141
|
const fileContent = await fs.readFile(outputFile, 'utf-8');
|
|
@@ -154,7 +155,7 @@ export async function getRawProjectInformation(projectRoot, outputFile) {
|
|
|
154
155
|
};
|
|
155
156
|
// Read gradle.properites and add version
|
|
156
157
|
const projectInformation = await getInformationWithVersions(projectRoot, data);
|
|
157
|
-
if (
|
|
158
|
+
if (executeScript) {
|
|
158
159
|
// Write back to file with hash for future cache validation
|
|
159
160
|
await fs.writeFile(outputFile, JSON.stringify(cachedData, null, 2), 'utf-8');
|
|
160
161
|
}
|