Skip to content

Commit

Permalink
chore: fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Nov 27, 2023
1 parent 6db6799 commit 1b0815e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/astro/src/cli/preferences/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import * as msg from '../../core/messages.js';
import { flagsToAstroInlineConfig } from '../flags.js';
import { resolveConfig } from '../../core/config/config.js';
import { createSettings } from '../../core/config/settings.js';
import { isValidKey, coerce, type PreferenceKey } from '../../preferences/index.js';
import { error, log } from '../../core/logger/core.js';
import { isValidKey, type PreferenceKey } from '../../preferences/index.js';
import { error } from '../../core/logger/core.js';
import { nodeLogOptions } from '../../core/logger/node.js';
import { DEFAULT_PREFERENCES, type Preferences } from '../../preferences/defaults.js';
import { DEFAULT_PREFERENCES } from '../../preferences/defaults.js';
import dlv from 'dlv';


Expand All @@ -29,7 +29,7 @@ function isValidSubcommand(subcommand: string): subcommand is Subcommand {

export async function preferences(subcommand: string, key: string, value: string | undefined, { flags }: PreferencesOptions): Promise<number> {
if (!isValidSubcommand(subcommand) || flags?.help || flags?.h) {
printHelp({
msg.printHelp({
commandName: 'astro preferences',
usage: 'set [key] [:value]',
tables: {
Expand Down
3 changes: 2 additions & 1 deletion packages/astro/src/vite-plugin-astro-server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ async function getScriptsAndStyles({ pipeline, filePath }: GetScriptsAndStylesPa
children: '',
});

if (settings.config.experimental.devOverlay && settings.preferences.get('devOverlay.enabled')) {
const devOverlayEnabled = await settings.preferences.get('devOverlay.enabled');
if (settings.config.experimental.devOverlay && devOverlayEnabled) {
scripts.add({
props: {
type: 'module',
Expand Down

0 comments on commit 1b0815e

Please sign in to comment.