10 lines
283 B
JavaScript
10 lines
283 B
JavaScript
import { execFileSync } from 'node:child_process';
|
|
|
|
export default function globalSetup() {
|
|
execFileSync(
|
|
'npm',
|
|
[ 'exec', '--', 'wp-env', 'run', 'cli', 'wp', 'eval', 'chrnx_seed_editorial_terms();' ],
|
|
{ cwd: process.cwd(), env: process.env, stdio: 'inherit' },
|
|
);
|
|
}
|