Skip to content

Commit f0579a4

Browse files
committed
[VPM] com.vrmc.* 同士以外の依存関係で、マイナーバージョンのアップデートを許容するように
1 parent 8e5291b commit f0579a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.vpm/build.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ for (const { name, version, internal } of dependencies) {
102102
manifest = JSON.parse(await fs.readFile(manifestPath));
103103
if (manifest.dependencies) {
104104
manifest.vpmDependencies = Object.fromEntries(Object.entries(manifest.dependencies)
105-
.filter(([ name ]) => !name.startsWith(IGNORE_PACKSGE_NAME_FROM_VPM_DEPENDENCIES_PREFIX)));
105+
.filter(([ name ]) => !name.startsWith(IGNORE_PACKSGE_NAME_FROM_VPM_DEPENDENCIES_PREFIX))
106+
.map(([ name, version ]) => [
107+
name,
108+
(manifest.name.startsWith('com.vrmc.') && name.startsWith('com.vrmc.') ? '' : '^') + version,
109+
]));
106110
}
107111
Object.assign(manifest, namePartialManifestPairs[name]);
108112
manifest.url = `https://github.com/${process.env.GITHUB_REPOSITORY}/releases/download/${process.env.TAG_NAME}/${packageFileName}`; //eslint-disable-line max-len

0 commit comments

Comments
 (0)