import { execSync } from 'child_process'; import { resolve, dirname } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const rootDir = resolve(__dirname, '..'); execSync('node scripts/build.mjs', { cwd: rootDir, stdio: 'inherit' }); execSync('npx vsce package', { cwd: rootDir, stdio: 'inherit' }); console.log('Production package complete.');