Chore/base configurations
This commit is contained in:
@@ -10,22 +10,23 @@ const __dirname = dirname(__filename);
|
||||
const rootDir = join(__dirname, '..');
|
||||
|
||||
// exec helper
|
||||
function exec(command, options = {}) {
|
||||
const exec = (command, options = {}) => {
|
||||
const defaultOptions = {
|
||||
stdio: 'inherit',
|
||||
cwd: rootDir,
|
||||
shell: true,
|
||||
...options,
|
||||
};
|
||||
|
||||
return execSync(command, defaultOptions);
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
const schemaPath = join(rootDir, 'src/parser/xo-template.schema.json');
|
||||
const validatorPath = join(rootDir, 'src/parser/ajv/validate-xo-template.js');
|
||||
const schemaPath = join(rootDir, 'source/parser/xo-template.schema.json');
|
||||
const validatorPath = join(rootDir, 'source/parser/ajv/validate-xo-template.js');
|
||||
const tsconfigPath = join(rootDir, 'tsconfig.json');
|
||||
// Point directly to the dist file - the type is exported at the end via barrel export
|
||||
const templatePath = join(rootDir, 'node_modules/@xo-cash/types/dist/index.d.mts');
|
||||
const templatePath = join(rootDir, 'node_modules/@xo-cash/types/dist/index.d.ts');
|
||||
|
||||
// Generate schema JSON (write to file directly instead of shell redirection)
|
||||
// Using --no-type-check to skip type checking and --expose all to find types exported via barrel exports
|
||||
|
||||
Reference in New Issue
Block a user