This commit is contained in:
10 files changed
+24
-24
No files matched your search
@@ -23,8 +23,8 @@ const [name, outDir] = process.argv.slice(2).filter((a) => !a.startsWith('--'));
|
||||
const die = (m) => { console.error(`quarto:export: ${m}`); process.exit(1); };
|
||||
if (!name || !outDir) die('usage: pixi run quarto-export <program in mojo/local/> <folder beside the .qmd page>');
|
||||
|
||||
const src = path.join(ROOT, 'core/mojo/local', `${name}.mojo`);
|
||||
if (!fs.existsSync(src)) die(`core/mojo/local/${name}.mojo does not exist`);
|
||||
const src = path.join(ROOT, 'core/library/mojo/local', `${name}.mojo`);
|
||||
if (!fs.existsSync(src)) die(`core/library/mojo/local/${name}.mojo does not exist`);
|
||||
const listingsJs = path.join(ROOT, 'core/dist/mojo/generated/listings.js');
|
||||
if (!fs.existsSync(listingsJs)) die('core/dist/ is missing; run `pixi run build` first');
|
||||
const { MOJO_LISTINGS } = await import(pathToFileURL(listingsJs).href);
|
||||
|
||||
Reference in new issue
Block a user