Initial commit

This commit is contained in:
Chris Daßler
2025-08-29 04:22:52 +02:00
commit e1fb6e6acc
11 changed files with 2665 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// Suppress console.log from the resolver during fetching
const originalLog = console.log;
console.log = () => {};
const { fetchRemoteComponent } = require('./metro-ior-resolver.js');
// Restore console.log for our output
console.log = originalLog;
const ior = process.argv[2];
if (!ior) {
console.error('No IOR provided');
process.exit(1);
}
fetchRemoteComponent(ior)
.then(path => {
// Output only the path on stdout
console.log(path);
process.exit(0);
})
.catch(err => {
// Output error to stderr
console.error('FETCH_ERROR:', err.message);
process.exit(1);
});