create-windy 0.3.15 → 0.3.16

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/README.md CHANGED
@@ -59,7 +59,7 @@ npx create-windy@latest my-dashboard \
59
59
  `system.operations`。
60
60
  - 默认不选:离线 `system.license`、文件、任务、通知、工作流、搜索、数据治理、
61
61
  Agent、批量数据和示例工单等模块。
62
- - 默认代码质量:Oxlint + Oxfmt。Husky 会在提交前通过 lint-staged 自动格式化暂存
62
+ - 默认代码质量:Oxlint + Oxfmt。Husky 会在提交前通过 lint-staged 自动格式化并检查暂存
63
63
  文件,不会把未暂存内容带入提交;lint、typecheck 和 test 保留为显式命令。
64
64
  - `--no-oxc` 会物理排除 Oxc 配置、Husky hook、lint-staged、依赖和质量脚本。
65
65
  - 默认法律许可证:`UNLICENSED`,不会生成 `LICENSE` 文件。
package/dist/cli.js CHANGED
@@ -4011,7 +4011,7 @@ create-windy \u9ED8\u8BA4\u5EFA\u7ACB \`main\` \u5206\u652F\u5E76\u521B\u5EFA \`
4011
4011
 
4012
4012
  // src/project-package.ts
4013
4013
  var defaultLintStaged = {
4014
- "*.{cjs,css,cts,html,js,json,jsonc,jsx,less,md,mdx,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "oxfmt --write"
4014
+ "*.{cjs,css,cts,html,js,json,jsonc,jsx,less,md,mdx,mjs,mts,scss,ts,tsx,vue,yaml,yml}": ["oxfmt --write", "oxlint"]
4015
4015
  };
4016
4016
  function createStarterPackage(source, projectName, includeOxc = true, projectLicense = "UNLICENSED", selectedModules = [], generatorVersion) {
4017
4017
  const { "lint-staged": sourceLintStaged, ...sourceWithoutLintStaged } = source;
@@ -8869,6 +8869,10 @@ async function planFile(path2, baseRoot, targetRoot, source, target, ours, prove
8869
8869
  if (!oursChanged && !targetChanged) {
8870
8870
  return readyPlannedFile(path2, ownership, "preserve", "\u53CC\u65B9\u672A\u4FEE\u6539", expected);
8871
8871
  }
8872
+ if (targetChanged && path2.endsWith("package.json") && base) {
8873
+ const merged = mergePackageJson(base, ours, theirs);
8874
+ 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);
8875
+ }
8872
8876
  if (!oursChanged) {
8873
8877
  return readyPlannedFile(path2, ownership, "update", "\u4EC5 Windy \u4FEE\u6539", expected, theirs);
8874
8878
  }
@@ -8878,10 +8882,6 @@ async function planFile(path2, baseRoot, targetRoot, source, target, ours, prove
8878
8882
  if (hashContent(ours) === target.hash) {
8879
8883
  return readyPlannedFile(path2, ownership, "preserve", "\u5DF2\u5305\u542B\u76EE\u6807\u5185\u5BB9", expected);
8880
8884
  }
8881
- if (path2.endsWith("package.json") && base) {
8882
- const merged = mergePackageJson(base, ours, theirs);
8883
- 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);
8884
- }
8885
8885
  if (base) {
8886
8886
  const merged = await mergeTextFile(base, ours, theirs);
8887
8887
  return merged.content ? readyPlannedFile(path2, ownership, "update", "\u4E09\u65B9\u5408\u5E76", expected, merged.content) : conflict2(path2, ownership, merged.conflict || "\u4E09\u65B9\u5408\u5E76\u5931\u8D25", expected);
@@ -9092,7 +9092,8 @@ var recipes = [
9092
9092
  { id: "starter-0.3.11-to-0.3.12", from: "0.3.11", to: "0.3.12" },
9093
9093
  { id: "starter-0.3.12-to-0.3.13", from: "0.3.12", to: "0.3.13" },
9094
9094
  { id: "starter-0.3.13-to-0.3.14", from: "0.3.13", to: "0.3.14" },
9095
- { id: "starter-0.3.14-to-0.3.15", from: "0.3.14", to: "0.3.15" }
9095
+ { id: "starter-0.3.14-to-0.3.15", from: "0.3.14", to: "0.3.15" },
9096
+ { id: "starter-0.3.15-to-0.3.16", from: "0.3.15", to: "0.3.16" }
9096
9097
  ];
9097
9098
  function resolveRecipeChain(sourceVersion, targetVersion) {
9098
9099
  if (sourceVersion === targetVersion)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windy",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
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": "da31c4d38a1db64a5eaaeca914a9afe694d930c3",
4
- "generatorVersion": "0.3.15",
3
+ "templateCommit": "39074967cfcee6aca5ff6d3e2791b93ab90e70af",
4
+ "generatorVersion": "0.3.16",
5
5
  "modules": [
6
6
  {
7
7
  "name": "system",
@@ -70,7 +70,10 @@
70
70
  "test": "bun test --path-ignore-patterns='packages/create-windy/template/**' && bun run --cwd apps/web test"
71
71
  },
72
72
  "lint-staged": {
73
- "*.{cjs,css,cts,html,js,json,jsonc,jsx,less,md,mdx,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "oxfmt --write"
73
+ "*.{cjs,css,cts,html,js,json,jsonc,jsx,less,md,mdx,mjs,mts,scss,ts,tsx,vue,yaml,yml}": [
74
+ "oxfmt --write",
75
+ "oxlint"
76
+ ]
74
77
  },
75
78
  "devDependencies": {
76
79
  "@types/bun": "^1.3.14",