diff --git a/.vpm/build.js b/.vpm/build.js index 067f50e..1ff96e1 100644 --- a/.vpm/build.js +++ b/.vpm/build.js @@ -102,7 +102,11 @@ for (const { name, version, internal } of dependencies) { manifest = JSON.parse(await fs.readFile(manifestPath)); if (manifest.dependencies) { manifest.vpmDependencies = Object.fromEntries(Object.entries(manifest.dependencies) - .filter(([ name ]) => !name.startsWith(IGNORE_PACKSGE_NAME_FROM_VPM_DEPENDENCIES_PREFIX))); + .filter(([ name ]) => !name.startsWith(IGNORE_PACKSGE_NAME_FROM_VPM_DEPENDENCIES_PREFIX)) + .map(([ name, version ]) => [ + name, + (manifest.name.startsWith('com.vrmc.') && name.startsWith('com.vrmc.') ? '' : '^') + version, + ])); } Object.assign(manifest, namePartialManifestPairs[name]); manifest.url = `https://github.com/${process.env.GITHUB_REPOSITORY}/releases/download/${process.env.TAG_NAME}/${packageFileName}`; //eslint-disable-line max-len