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 +6 -3
- package/package.json +1 -1
- package/template/.windy-template.json +2 -2
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
|
|
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 }) =>
|
|
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