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 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
- if (shouldForcePlatformBaseline({
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windy",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "创建单组织、单租户、私有部署优先的 Windy 企业 Dashboard Starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "templateCommit": "25260c844c95d14d4ac3ccae6e7553dbde2fd9c6",
4
- "generatorVersion": "0.3.8",
3
+ "templateCommit": "fe9c5197b083b0d4ff03f9550043d96a392992a1",
4
+ "generatorVersion": "0.3.9",
5
5
  "modules": [
6
6
  {
7
7
  "name": "system",