AnthropicallyHuggingFaces's picture
Sync full ProjectOS monorepo from GitHub 7f633f5
a8f4b72 verified
Raw History Blame Contribute Delete
561 Bytes
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { validateSchematron } from './validator/schematron-validator.js';
const sourceDirectory = dirname(fileURLToPath(import.meta.url));
const packageDirectory = resolve(sourceDirectory, '..');
const errors = validateSchematron(
resolve(packageDirectory, 'fixtures/bootstrap-valid.xml'),
resolve(packageDirectory, '../../schemas/ProjectOS.sch')
);
if (errors.length) {
console.error(errors);
process.exitCode = 1;
} else {
console.log('schematron passed');
}