@isentinel/weld 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/weld.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync } from "node:fs";
3
+ import { dirname, resolve } from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+
6
+ const sourceEntry = resolve(dirname(fileURLToPath(import.meta.url)), "../src/cli.ts");
7
+
8
+ const { register } = await import("node:module");
9
+ register("../loaders/luau-raw.mjs", import.meta.url);
10
+
11
+ if (existsSync(sourceEntry)) {
12
+ const { main } = await import("../src/cli.ts");
13
+ await main();
14
+ } else {
15
+ const { main } = await import("../dist/cli.mjs");
16
+ await main();
17
+ }
package/dist/cli.d.mts ADDED
@@ -0,0 +1,10 @@
1
+ //#region src/cli.d.ts
2
+ /**
3
+ * Entry point for the weld bundler CLI.
4
+ *
5
+ * @param args - CLI arguments to parse.
6
+ */
7
+ declare function main(args?: Array<string>): Promise<void>;
8
+ //#endregion
9
+ export { main };
10
+ //# sourceMappingURL=cli.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.mts","names":[],"sources":["../src/cli.ts"],"mappings":";;AAkCA;;;;iBAAsB,IAAA,CAAK,IAAA,GAAM,KAAA,WAAwC,OAAA"}