提交 b53811e6 编写于 作者: J Joao Moreno

fix npm postinstall step, remove xterm from version matching

上级 78559bf9
......@@ -82,16 +82,11 @@ if (fs.existsSync(processTreeDts)) {
}
function getInstalledVersion(packageName, cwd) {
const opts = {};
if (cwd) {
opts.cwd = cwd;
}
const result = cp.spawnSync(yarn, ['list', '--pattern', packageName], opts);
const stdout = result.stdout.toString();
const { stdout } = cp.spawnSync(yarn, ['list', packageName], { encoding: 'utf8', cwd });
const match = stdout.match(new RegExp(packageName + '@(\\S+)'));
if (!match || !match[1]) {
throw new Error('Unexpected output from yarn list: ' + stdout);
throw new Error(`Missing ${packageName} in ${cwd}: \n${stdout}`);
}
return match[1];
......@@ -108,7 +103,7 @@ function assertSameVersionsBetweenFolders(packageName, otherFolder) {
// Check that modules in both the base package.json and remote/ have the same version installed
const requireSameVersionsInRemote = [
'xterm',
// 'xterm',
'xterm-addon-search',
'xterm-addon-web-links',
'node-pty',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册