astro 5.11.1 → 5.11.2

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.
@@ -323,15 +323,12 @@ ${list}`
323
323
  )
324
324
  );
325
325
  if (integrations.find((integration) => integration.integrationName === "tailwind")) {
326
- const code = boxen(
327
- getDiffContent("---\n---", "---\nimport './src/styles/global.css'\n---"),
328
- {
329
- margin: 0.5,
330
- padding: 0.5,
331
- borderStyle: "round",
332
- title: "src/layouts/Layout.astro"
333
- }
334
- );
326
+ const code = boxen(getDiffContent("---\n---", "---\nimport '../styles/global.css'\n---"), {
327
+ margin: 0.5,
328
+ padding: 0.5,
329
+ borderStyle: "round",
330
+ title: "src/layouts/Layout.astro"
331
+ });
335
332
  logger.warn(
336
333
  "SKIP_FORMAT",
337
334
  msg.actionRequired(
@@ -164,7 +164,7 @@ ${contentConfig.error.message}`);
164
164
  logger.info("Content config changed");
165
165
  shouldClear = true;
166
166
  }
167
- if (previousAstroVersion && previousAstroVersion !== "5.11.1") {
167
+ if (previousAstroVersion && previousAstroVersion !== "5.11.2") {
168
168
  logger.info("Astro version changed");
169
169
  shouldClear = true;
170
170
  }
@@ -172,8 +172,8 @@ ${contentConfig.error.message}`);
172
172
  logger.info("Clearing content store");
173
173
  this.#store.clearAll();
174
174
  }
175
- if ("5.11.1") {
176
- await this.#store.metaStore().set("astro-version", "5.11.1");
175
+ if ("5.11.2") {
176
+ await this.#store.metaStore().set("astro-version", "5.11.2");
177
177
  }
178
178
  if (currentConfigDigest) {
179
179
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "5.11.1";
1
+ const ASTRO_VERSION = "5.11.2";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
4
4
  const REWRITE_DIRECTIVE_HEADER_VALUE = "yes";
@@ -22,7 +22,7 @@ async function dev(inlineConfig) {
22
22
  await telemetry.record([]);
23
23
  const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
24
24
  const logger = restart.container.logger;
25
- const currentVersion = "5.11.1";
25
+ const currentVersion = "5.11.2";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -37,7 +37,7 @@ function serverStart({
37
37
  host,
38
38
  base
39
39
  }) {
40
- const version = "5.11.1";
40
+ const version = "5.11.2";
41
41
  const localPrefix = `${dim("\u2503")} Local `;
42
42
  const networkPrefix = `${dim("\u2503")} Network `;
43
43
  const emptyPrefix = " ".repeat(11);
@@ -274,7 +274,7 @@ function printHelp({
274
274
  message.push(
275
275
  linebreak(),
276
276
  ` ${bgGreen(black(` ${commandName} `))} ${green(
277
- `v${"5.11.1"}`
277
+ `v${"5.11.2"}`
278
278
  )} ${headline}`
279
279
  );
280
280
  }
@@ -4,8 +4,9 @@ const getConfigAlias = (settings) => {
4
4
  const { tsConfig, tsConfigPath } = settings;
5
5
  if (!tsConfig || !tsConfigPath || !tsConfig.compilerOptions) return null;
6
6
  const { baseUrl, paths } = tsConfig.compilerOptions;
7
- if (!baseUrl) return null;
8
- const resolvedBaseUrl = path.resolve(path.dirname(tsConfigPath), baseUrl);
7
+ const effectiveBaseUrl = baseUrl ?? (paths ? "." : void 0);
8
+ if (!effectiveBaseUrl) return null;
9
+ const resolvedBaseUrl = path.resolve(path.dirname(tsConfigPath), effectiveBaseUrl);
9
10
  const aliases = [];
10
11
  if (paths) {
11
12
  for (const [alias, values] of Object.entries(paths)) {
@@ -21,10 +22,12 @@ const getConfigAlias = (settings) => {
21
22
  }
22
23
  }
23
24
  }
24
- aliases.push({
25
- find: /^(?!\.*\/|\.*$|\w:)(.+)$/,
26
- replacement: `${[...normalizePath(resolvedBaseUrl)].map((segment) => segment === "$" ? "$$" : segment).join("")}/$1`
27
- });
25
+ if (baseUrl) {
26
+ aliases.push({
27
+ find: /^(?!\.*\/|\.*$|\w:)(.+)$/,
28
+ replacement: `${[...normalizePath(resolvedBaseUrl)].map((segment) => segment === "$" ? "$$" : segment).join("")}/$1`
29
+ });
30
+ }
28
31
  return aliases;
29
32
  };
30
33
  function configAliasVitePlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.11.1",
3
+ "version": "5.11.2",
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",
@@ -158,8 +158,8 @@
158
158
  "zod-to-json-schema": "^3.24.5",
159
159
  "zod-to-ts": "^1.2.0",
160
160
  "@astrojs/internal-helpers": "0.6.1",
161
- "@astrojs/markdown-remark": "6.3.2",
162
- "@astrojs/telemetry": "3.3.0"
161
+ "@astrojs/telemetry": "3.3.0",
162
+ "@astrojs/markdown-remark": "6.3.2"
163
163
  },
164
164
  "optionalDependencies": {
165
165
  "sharp": "^0.33.3"