Skip to content

Commit 6541537

Browse files
committed
refactor(cli): read the set-aside plugins list through stackBootPlugins and the static materializeStackPlugin import
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mgePB9NQ4PNhvYVxk
1 parent eb1a33b commit 6541537

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/cli/src/commands/serve.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ export default class Serve extends Command {
28712871
// replaces it): an entry that may provide the crypto provider refuses
28722872
// the boot first. See the function.
28732873
await refuseSetAsideCryptoProviderPlugins(
2874-
(config as { plugins?: unknown }).plugins,
2874+
stackBootPlugins(config, false),
28752875
async (specifier) => await Serve.importConfigPlugin(specifier, servedAppRootOrCwd()),
28762876
);
28772877
// The boot stack returns only `{plugins, api}` — preserve the
@@ -6493,7 +6493,6 @@ export async function refuseSetAsideCryptoProviderPlugins(
64936493
importSpecifier: (specifier: string) => Promise<unknown>,
64946494
): Promise<void> {
64956495
if (!Array.isArray(authored)) return;
6496-
const { materializeStackPlugin } = await import('@objectstack/core');
64976496
const unloaded: UnloadedStackPlugin[] = [];
64986497
const declaring: string[] = [];
64996498
for (const [index, entry] of authored.entries()) {

0 commit comments

Comments
 (0)