1) foreign
inspects foreign objects and prints a report:
Error: Command failed: node D:\a\eoc\eoc\src\eoc.js --batch foreign --verbose --parser=0.59.0 --home-tag=0.58.6 -t D:\a\eoc\eoc\temp\test-foreign\simple\target
Unexpected non-whitespace character after JSON at position 11819 (line 251 column 2)
module.exports = function(opts) {
const file = path.resolve(opts.target, 'eo-foreign.json'),
// THIS LINE
all = JSON.parse(fs.readFileSync(file, 'utf8'));
console.info('There are %d objects in %s:', all.length, rel(file));
all.forEach((obj) => {
console.info(' %s', obj.id);
});
};
@yegor256
The foreign testfails with a JSON parsing error:The specific reason is in the file
src/commands/foreign.json line 16: