UNPKG

react-native-asset

Version:

Linking and unlinking of assets in your react-native app, works for fonts and sounds

20 lines (19 loc) 781 B
#!/usr/bin/env node import "./_dnt.polyfills.js"; import "./_dnt.polyfills.js"; import * as dntShim from "./_dnt.shims.js"; export { linkAssets } from "./main.js"; import { runCli } from "./cli.js"; import { pathToFileURL } from "node:url"; import process from "node:process"; import * as path from "./deps/jsr.io/@std/path/1.1.4/mod.js"; const isMain = globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).main || (path.basename(process.argv[0]).startsWith("node") && pathToFileURL(dntShim.Deno.realPathSync(process.argv[1])).href === globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url); if (isMain) { runCli().catch((e) => { console.error("Error running CLI:", e); dntShim.Deno.exit(1); }); }