Skip to content

Commit

Permalink
Merge pull request #156 from toolsplus/fix-no-manifest-resource-infer…
Browse files Browse the repository at this point in the history
…ence

fix: load manifest without interpolation
  • Loading branch information
tbinna authored Feb 18, 2025
2 parents 1412b17 + 560ae92 commit f3f12a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const transformManifestYml = async (
'manifest.yml'
);

const manifest = await readManifestYml(manifestPath);
const manifest = await readManifestYml(manifestPath, { interpolate: false });

expression.registerFunction(
'env',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ export async function patchManifestYml(options: NormalizedOptions) {
options.outputPath,
'manifest.yml'
);
const outputManifestSchema = await readManifestYml(outputManifestPath);
const outputManifestSchema = await readManifestYml(outputManifestPath, {
interpolate: false,
});

const appId: string = outputManifestSchema.app.id;

const projectManifestPath = joinPathFragments(
options.projectRoot,
'manifest.yml'
);
const projectManifestSchema = await readManifestYml(projectManifestPath);
const projectManifestSchema = await readManifestYml(projectManifestPath, {
interpolate: false,
});

logger.info(
`Patching project manifest ${projectManifestPath} with app id ${appId}...`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ async function extractVerifiedCustomUIProjects(
context.projectsConfigurations.projects[context.projectName].root,
'manifest.yml'
);
const manifestSchema = await readManifestYml(manifestPath);
const manifestSchema = await readManifestYml(manifestPath, {
interpolate: false,
});
const resources: Resources = manifestSchema.resources ?? [];
return resources
.filter(isResourceType(manifestSchema, ['custom-ui']))
Expand Down

0 comments on commit f3f12a4

Please sign in to comment.