create-windy 0.2.12 → 0.2.13

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
@@ -1849,11 +1849,12 @@ async function generateProject(input) {
1849
1849
  validateProjectName(input.projectName);
1850
1850
  await assertTargetAvailable(input.targetDirectory);
1851
1851
  await mkdir3(input.targetDirectory, { recursive: true });
1852
- const includeExample = input.includeExample ?? true;
1852
+ const requestedIncludeExample = input.includeExample ?? true;
1853
1853
  const includeOxc = input.includeOxc ?? true;
1854
1854
  const projectLicense = input.projectLicense ?? "UNLICENSED";
1855
1855
  const templateMetadata = await readTemplateMetadata(input.sourceRoot);
1856
- const selectedModules = input.selectedModules ?? templateMetadata.modules.filter(({ name }) => includeExample || name !== "work-order").map(({ name }) => name);
1856
+ const selectedModules = input.selectedModules ?? templateMetadata.modules.filter(({ name }) => requestedIncludeExample || name !== "work-order").map(({ name }) => name);
1857
+ const includeExample = selectedModules.includes("work-order");
1857
1858
  for (const relativePath2 of generationTemplatePaths(true, includeOxc)) {
1858
1859
  await copyTree(await resolveTemplateSource(input.sourceRoot, relativePath2), join9(input.targetDirectory, relativePath2));
1859
1860
  }
@@ -4009,7 +4010,8 @@ var recipes = [
4009
4010
  { id: "starter-0.2.8-to-0.2.9", from: "0.2.8", to: "0.2.9" },
4010
4011
  { id: "starter-0.2.9-to-0.2.10", from: "0.2.9", to: "0.2.10" },
4011
4012
  { id: "starter-0.2.10-to-0.2.11", from: "0.2.10", to: "0.2.11" },
4012
- { id: "starter-0.2.11-to-0.2.12", from: "0.2.11", to: "0.2.12" }
4013
+ { id: "starter-0.2.11-to-0.2.12", from: "0.2.11", to: "0.2.12" },
4014
+ { id: "starter-0.2.12-to-0.2.13", from: "0.2.12", to: "0.2.13" }
4013
4015
  ];
4014
4016
  function resolveRecipeChain(sourceVersion, targetVersion) {
4015
4017
  if (sourceVersion === targetVersion)
@@ -4053,6 +4055,7 @@ class PublishedArtifactProvider {
4053
4055
  targetDirectory,
4054
4056
  projectName,
4055
4057
  selectedModules: provenance.modules.map(({ name }) => name),
4058
+ includeExample: provenance.choices.includeExample,
4056
4059
  includeOxc: provenance.choices.includeOxc,
4057
4060
  projectLicense: provenance.legalLicense,
4058
4061
  licenseHolder: provenance.legalLicense === "MIT" ? "Windy project owner" : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windy",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
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": "8b610ccf38a29d887666d0c7f4730b84a3334027",
4
- "generatorVersion": "0.2.12",
3
+ "templateCommit": "51ba8808a74c2143803d3ec0584d2a35ba1c18e3",
4
+ "generatorVersion": "0.2.13",
5
5
  "modules": [
6
6
  {
7
7
  "name": "system",