Skip to content

Commit

Permalink
fixed eslint errors caused while creating plugin map
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jan 8, 2025
1 parent 9f094aa commit db279cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/setup-care-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ const plugins = readAppsConfig();

// Generate pluginMap.ts
const pluginMapPath = path.join(__dirname, "..", "src", "pluginMap.ts");
const pluginMapContent = `// Use type assertion for the static import${plugins
const pluginMapContent = `// Use type assertion for the static import
${plugins
.map(
(plugin) =>
`// @ts-expect-error Remote module will be available at runtime\nimport ${plugin.camelCaseName}Manifest from "${plugin.repo}/manifest";`,
)
.join("\n")}
import type { PluginManifest } from "./pluginTypes";
const pluginMap: PluginManifest[] = [${plugins.map((plugin) => `${plugin.camelCaseName}Manifest as PluginManifest`).join(",\n ")}];
Expand Down

0 comments on commit db279cf

Please sign in to comment.