Skip to content

Commit

Permalink
[VPM] com.vrmc.* 同士以外の依存関係で、マイナーバージョンのアップデートを許容するように
Browse files Browse the repository at this point in the history
  • Loading branch information
esperecyan committed Jul 15, 2023
1 parent 8e5291b commit f0579a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vpm/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0579a4

Please sign in to comment.