|
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 |
|
|---|
| 3 | const { resolve } = require("node:path");
|
|---|
| 4 |
|
|---|
| 5 | const script = process.argv.splice(2, 1)[0];
|
|---|
| 6 |
|
|---|
| 7 | if (!script) {
|
|---|
| 8 |
|
|---|
| 9 | console.error("Usage: jiti <path> [...arguments]");
|
|---|
| 10 | process.exit(1);
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | const pwd = process.cwd();
|
|---|
| 14 | const jiti = require("..")(pwd);
|
|---|
| 15 | const resolved = (process.argv[1] = jiti.resolve(resolve(pwd, script)));
|
|---|
| 16 | jiti(resolved);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.