This commit is contained in:
Andrew Pareles 2024-11-09 20:11:20 -08:00
parent 8da76e72df
commit e8ff4d8328
2 changed files with 17 additions and 17 deletions

View file

@ -56,7 +56,7 @@ const dirs = [
// Void added these: // Void added these:
// 'extensions/void', // 'extensions/void',
'void-imports', // 'void-imports',
]; ];

View file

@ -141,19 +141,19 @@ cp.execSync('git config pull.rebase merges');
cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore-revs'); cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore-revs');
// Void added this (inject void-imports into project): // // Void added this (inject void-imports into project):
const buildVoidImports = () => { // const buildVoidImports = () => {
console.log('\n\nVoid is injecting void-imports...') // console.log('\n\nVoid is injecting void-imports...')
cp.execSync(`npm install`, { // this goes here, not in postinstall, because we need to // cp.execSync(`npm install`, { // this goes here, not in postinstall, because we need to
env: process.env, // env: process.env,
cwd: path.join(__dirname, '..', '..', '/void-imports'), // cwd: path.join(__dirname, '..', '..', '/void-imports'),
stdio: 'inherit' // stdio: 'inherit'
}); // });
cp.execSync(`node build-index.mjs`, { // cp.execSync(`node build-index.mjs`, {
env: process.env, // env: process.env,
cwd: path.join(__dirname, '..', '..', '/void-imports'), // cwd: path.join(__dirname, '..', '..', '/void-imports'),
stdio: 'inherit' // stdio: 'inherit'
}); // });
console.log('Done injecting void-imports.') // console.log('Done injecting void-imports.')
} // }
buildVoidImports() // buildVoidImports()