source: frontend/node_modules/jiti/bin/jiti.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 354 bytes
Line 
1#!/usr/bin/env node
2
3const { resolve } = require("node:path");
4
5const script = process.argv.splice(2, 1)[0];
6
7if (!script) {
8
9 console.error("Usage: jiti <path> [...arguments]");
10 process.exit(1);
11}
12
13const pwd = process.cwd();
14const jiti = require("..")(pwd);
15const resolved = (process.argv[1] = jiti.resolve(resolve(pwd, script)));
16jiti(resolved);
Note: See TracBrowser for help on using the repository browser.