astro 2.0.0 → 2.0.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.
@@ -159,7 +159,8 @@ async function loadContentConfig({
159
159
  return void 0;
160
160
  }
161
161
  try {
162
- unparsedConfig = await tempConfigServer.ssrLoadModule(contentPaths.config.pathname);
162
+ const configPathname = fileURLToPath(contentPaths.config);
163
+ unparsedConfig = await tempConfigServer.ssrLoadModule(configPathname);
163
164
  } catch (e) {
164
165
  throw e;
165
166
  } finally {
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "2.0.0";
1
+ const ASTRO_VERSION = "2.0.1";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -29,7 +29,7 @@ async function dev(settings, options) {
29
29
  isRestart: options.isRestart
30
30
  })
31
31
  );
32
- const currentVersion = "2.0.0";
32
+ const currentVersion = "2.0.1";
33
33
  if (currentVersion.includes("-")) {
34
34
  warn(options.logging, null, msg.prerelease({ currentVersion }));
35
35
  }
@@ -55,10 +55,15 @@ function padStr(str, len) {
55
55
  }
56
56
  let defaultLogLevel;
57
57
  if (typeof process !== "undefined") {
58
- if (process.argv.includes("--verbose")) {
59
- defaultLogLevel = "debug";
60
- } else if (process.argv.includes("--silent")) {
61
- defaultLogLevel = "silent";
58
+ let proc = process;
59
+ if ("argv" in proc && Array.isArray(proc.argv)) {
60
+ if (proc.argv.includes("--verbose")) {
61
+ defaultLogLevel = "debug";
62
+ } else if (proc.argv.includes("--silent")) {
63
+ defaultLogLevel = "silent";
64
+ } else {
65
+ defaultLogLevel = "info";
66
+ }
62
67
  } else {
63
68
  defaultLogLevel = "info";
64
69
  }
@@ -47,7 +47,7 @@ function serverStart({
47
47
  base,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "2.0.0";
50
+ const version = "2.0.1";
51
51
  const localPrefix = `${dim("\u2503")} Local `;
52
52
  const networkPrefix = `${dim("\u2503")} Network `;
53
53
  const emptyPrefix = " ".repeat(11);
@@ -233,7 +233,7 @@ function printHelp({
233
233
  message.push(
234
234
  linebreak(),
235
235
  ` ${bgGreen(black(` ${commandName} `))} ${green(
236
- `v${"2.0.0"}`
236
+ `v${"2.0.1"}`
237
237
  )} ${headline}`
238
238
  );
239
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
5
5
  "type": "module",
6
6
  "author": "withastro",
@@ -122,7 +122,7 @@
122
122
  "preferred-pm": "^3.0.3",
123
123
  "prompts": "^2.4.2",
124
124
  "rehype": "^12.0.1",
125
- "semver": "^7.3.7",
125
+ "semver": "^7.3.8",
126
126
  "server-destroy": "^1.0.1",
127
127
  "shiki": "^0.11.1",
128
128
  "slash": "^4.0.0",