create-windy 0.3.8 → 0.3.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.
- package/dist/cli.js +9 -3
- package/package.json +1 -1
- package/template/.windy-template.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -8772,12 +8772,17 @@ async function planFile(path2, baseRoot, targetRoot, source, target, ours, prove
|
|
|
8772
8772
|
const oursChanged = hashContent(ours) !== source.hash;
|
|
8773
8773
|
const sourceArtifactHash = artifactHashOf(source);
|
|
8774
8774
|
const targetChanged = targetChangedSinceBase(sourceArtifactHash, base, theirs);
|
|
8775
|
-
|
|
8775
|
+
const forceTargetBaseline = shouldForcePlatformBaseline({
|
|
8776
8776
|
forcePlatformBaseline,
|
|
8777
8777
|
oursChanged,
|
|
8778
8778
|
sourceArtifactHash,
|
|
8779
8779
|
base
|
|
8780
|
-
})
|
|
8780
|
+
});
|
|
8781
|
+
if (forceTargetBaseline && path2.endsWith("package.json") && base) {
|
|
8782
|
+
const merged = mergePackageJson(base, ours, theirs);
|
|
8783
|
+
return merged.content ? readyPlannedFile(path2, ownership, "update", "package.json \u5B57\u6BB5\u7EA7\u5408\u5E76", expected, merged.content) : conflict2(path2, ownership, `\u5B57\u6BB5\u51B2\u7A81\uFF1A${merged.conflicts.join("\u3001")}`, expected);
|
|
8784
|
+
}
|
|
8785
|
+
if (forceTargetBaseline) {
|
|
8781
8786
|
return readyPlannedFile(path2, ownership, "update", "\u5F3A\u5236\u91C7\u7528\u76EE\u6807\u5E73\u53F0\u57FA\u7EBF", expected, theirs);
|
|
8782
8787
|
}
|
|
8783
8788
|
if (!oursChanged && !targetChanged) {
|
|
@@ -9008,7 +9013,8 @@ var recipes = [
|
|
|
9008
9013
|
{ id: "starter-0.3.4-to-0.3.5", from: "0.3.4", to: "0.3.5" },
|
|
9009
9014
|
{ id: "starter-0.3.5-to-0.3.6", from: "0.3.5", to: "0.3.6" },
|
|
9010
9015
|
{ id: "starter-0.3.6-to-0.3.7", from: "0.3.6", to: "0.3.7" },
|
|
9011
|
-
{ id: "starter-0.3.7-to-0.3.8", from: "0.3.7", to: "0.3.8" }
|
|
9016
|
+
{ id: "starter-0.3.7-to-0.3.8", from: "0.3.7", to: "0.3.8" },
|
|
9017
|
+
{ id: "starter-0.3.8-to-0.3.9", from: "0.3.8", to: "0.3.9" }
|
|
9012
9018
|
];
|
|
9013
9019
|
function resolveRecipeChain(sourceVersion, targetVersion) {
|
|
9014
9020
|
if (sourceVersion === targetVersion)
|
package/package.json
CHANGED