create-astro 4.4.0 → 4.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -391,7 +391,7 @@ function printHelp({
391
391
  if (headline) {
392
392
  message.push(
393
393
  linebreak(),
394
- `${title(commandName)} ${color.green(`v${"4.4.0"}`)} ${headline}`
394
+ `${title(commandName)} ${color.green(`v${"4.4.1"}`)} ${headline}`
395
395
  );
396
396
  }
397
397
  if (usage) {
@@ -1059,12 +1059,8 @@ var FILES_TO_UPDATE2 = {
1059
1059
  const parsedPackageJson = JSON.parse(data);
1060
1060
  const buildScript = parsedPackageJson.scripts?.build;
1061
1061
  if (typeof buildScript === "string" && !buildScript.includes("astro check")) {
1062
- const newPackageJson = Object.assign(parsedPackageJson, {
1063
- scripts: {
1064
- build: "astro check && " + buildScript
1065
- }
1066
- });
1067
- await writeFile(file, JSON.stringify(newPackageJson, null, indent), "utf-8");
1062
+ parsedPackageJson.scripts.build = `astro check && ${buildScript}`;
1063
+ await writeFile(file, JSON.stringify(parsedPackageJson, null, indent), "utf-8");
1068
1064
  }
1069
1065
  } catch (err) {
1070
1066
  if (err && err.code === "ENOENT")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",