astro 1.2.0 → 1.2.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.
package/dist/core/add/index.js
CHANGED
|
@@ -42,6 +42,7 @@ const OFFICIAL_ADAPTER_TO_IMPORT_MAP = {
|
|
|
42
42
|
deno: "@astrojs/deno"
|
|
43
43
|
};
|
|
44
44
|
async function add(names, { cwd, flags, logging, telemetry }) {
|
|
45
|
+
applyPolyfill();
|
|
45
46
|
if (flags.help || names.length === 0) {
|
|
46
47
|
printHelp({
|
|
47
48
|
commandName: "astro add",
|
|
@@ -141,7 +142,6 @@ async function add(names, { cwd, flags, logging, telemetry }) {
|
|
|
141
142
|
}
|
|
142
143
|
const rawConfigPath = await resolveConfigPath({ cwd, flags });
|
|
143
144
|
let configURL = rawConfigPath ? pathToFileURL(rawConfigPath) : void 0;
|
|
144
|
-
applyPolyfill();
|
|
145
145
|
if (configURL) {
|
|
146
146
|
debug("add", `Found config at ${configURL}`);
|
|
147
147
|
} else {
|
package/dist/core/dev/index.js
CHANGED
package/dist/core/messages.js
CHANGED
|
@@ -47,7 +47,7 @@ function devStart({
|
|
|
47
47
|
site,
|
|
48
48
|
isRestart = false
|
|
49
49
|
}) {
|
|
50
|
-
const version = "1.2.
|
|
50
|
+
const version = "1.2.1";
|
|
51
51
|
const rootPath = site ? site.pathname : "/";
|
|
52
52
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
53
53
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
@@ -226,7 +226,7 @@ function printHelp({
|
|
|
226
226
|
message.push(
|
|
227
227
|
linebreak(),
|
|
228
228
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
229
|
-
`v${"1.2.
|
|
229
|
+
`v${"1.2.1"}`
|
|
230
230
|
)} ${headline}`
|
|
231
231
|
);
|
|
232
232
|
}
|
package/dist/core/util.js
CHANGED
|
@@ -5,7 +5,7 @@ import resolve from "resolve";
|
|
|
5
5
|
import slash from "slash";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
7
7
|
import { prependForwardSlash, removeTrailingForwardSlash } from "./path.js";
|
|
8
|
-
const ASTRO_VERSION = "1.2.
|
|
8
|
+
const ASTRO_VERSION = "1.2.1";
|
|
9
9
|
function isObject(value) {
|
|
10
10
|
return typeof value === "object" && value != null;
|
|
11
11
|
}
|