Skip to content

Commit

Permalink
Merge branch 'next' into norbert/bundle-semver
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen authored Dec 21, 2023
2 parents ae976da + 2ea84ae commit 0c6020e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions code/lib/core-server/src/build-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ export async function buildDevStandalone(
const { framework } = config;
const corePresets = [];

const frameworkName = typeof framework === 'string' ? framework : framework?.name;
validateFrameworkName(frameworkName);
let frameworkName = typeof framework === 'string' ? framework : framework?.name;
if (!options.ignorePreview) {
validateFrameworkName(frameworkName);
}
if (frameworkName) {
corePresets.push(join(frameworkName, 'preset'));
}

corePresets.push(join(frameworkName, 'preset'));
frameworkName = frameworkName || 'custom';

try {
await warnOnIncompatibleAddons(config);
Expand Down
2 changes: 1 addition & 1 deletion code/lib/core-server/src/build-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function buildStaticStandalone(options: BuildStaticStandaloneOption
const frameworkName = typeof framework === 'string' ? framework : framework?.name;
if (frameworkName) {
corePresets.push(join(frameworkName, 'preset'));
} else {
} else if (!options.ignorePreview) {
logger.warn(`you have not specified a framework in your ${options.configDir}/main.js`);
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export const configureYarn2ForVerdaccio = async ({
`yarn config set enableImmutableInstalls false`,
];

if (key === 'svelte-kit/prerelease-ts') {
// Don't error with INCOMPATIBLE_PEER_DEPENDENCY for SvelteKit prerelease, it is expected
if (key.includes('svelte-kit')) {
// Don't error with INCOMPATIBLE_PEER_DEPENDENCY for SvelteKit sandboxes, it is expected to happen with @sveltejs/vite-plugin-svelte
command.push(
`yarn config set logFilters --json '[ { "code": "YN0013", "level": "discard" } ]'`
);
Expand Down

0 comments on commit 0c6020e

Please sign in to comment.