separate prepare and prepack scripts to fix CI

This commit is contained in:
Francisco Giordano
2020-05-13 17:27:51 -03:00
parent 4fe31f8d4d
commit fa36244bec
2 changed files with 2 additions and 4 deletions

View File

@ -4,15 +4,12 @@
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const match = require('micromatch');
function readJSON (path) {
return JSON.parse(fs.readFileSync(path));
}
cp.spawnSync('npm', ['run', 'compile'], { stdio: 'inherit' });
const pkgFiles = readJSON('package.json').files;
// Get only negated patterns.