@contextforge/core 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1012,7 +1012,11 @@ async function syncInstalledPacks(projectRoot, providedConfig) {
1012
1012
  const registry = await fetchRegistry(config.registry);
1013
1013
  const installed = [];
1014
1014
  const missing = [];
1015
- for (const packName of config.installedPacks) {
1015
+ const detectedPackNames = recommendPackNames(analysis).filter(
1016
+ (packName) => Boolean(findPackSummary(registry, packName))
1017
+ );
1018
+ const packNames = [.../* @__PURE__ */ new Set([...config.installedPacks, ...detectedPackNames])];
1019
+ for (const packName of packNames) {
1016
1020
  const summary = findPackSummary(registry, packName);
1017
1021
  if (!summary) {
1018
1022
  missing.push(packName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextforge/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",