Files
open-design/tools/dev/bin/tools-dev.mjs
T

14 lines
461 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
import { dirname, resolve } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
import { assertFreshToolBuildFromMeta } from "../../../packages/metatool/src/index.ts";
const entryDir = dirname(fileURLToPath(import.meta.url));
const toolRoot = resolve(entryDir, "..");
const distEntry = resolve(toolRoot, "dist/index.mjs");
await assertFreshToolBuildFromMeta(toolRoot);
await import(pathToFileURL(distEntry).href);