Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions apps/cli/vite.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ function copyDataLiberationEngine( outDir: string ) {
recursive: true,
} );

// The skills also invoke pipeline drivers via `node scripts/run.mjs <name>`.
// Ship the launcher plus the self-contained driver bundles it falls back to
// when no dev dependencies resolve next to it (dist/scripts/, emitted by the
// same build:mcp-bundle run as the server bundle).
cpSync(
resolve( dataLiberationSourcePath, 'dist', 'scripts' ),
resolve( engineOutDir, 'dist', 'scripts' ),
{ recursive: true }
);
mkdirSync( resolve( engineOutDir, 'scripts' ), { recursive: true } );
copyFileSync(
resolve( dataLiberationSourcePath, 'scripts', 'run.mjs' ),
resolve( engineOutDir, 'scripts', 'run.mjs' )
);

// The bundle resolves vendored runtime assets (.php helpers run via
// `wp eval-file`, .json data like core-block-attrs.json) relative to the
// engine's original src/ module paths — see the import.meta.url rewrite in
Expand Down
Loading