diff --git a/.gitignore b/.gitignore index 39ccc5d..04813a6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .AppleDouble .LSOverride *.bundle.ts +bundles/*.bundle.ts # Icon must end with two \r Icon diff --git a/bundles/hello_world.ts b/bundles/hello_world.ts new file mode 100644 index 0000000..bd97282 --- /dev/null +++ b/bundles/hello_world.ts @@ -0,0 +1,10 @@ +#!/usr/bin/env runts -- --allow-import + +import {log} from "../libraries/deno-commons-mod.ts"; + +// deno bundle --allow-import hello_world.ts -o helloworld-bundle-2.bundle.ts +async function main() { + log.info("Hello World!"); +} + +main().catch(console.error); diff --git a/bundles/helloworld-bundle.ts b/bundles/helloworld-bundle.ts deleted file mode 100644 index 03a6f1f..0000000 --- a/bundles/helloworld-bundle.ts +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env runts -- --allow-import - -import {log} from "https://global.hatter.ink/script/get/@25/deno-commons-mod.ts"; - -// deno bundle --allow-import helloworld-bundle.ts -o helloworld-bundle.bundle.ts -async function main() { - log.info("Hello World!"); -} - -main().catch(console.error);