@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 +17 -0
- package/dist/cli.d.mts +10 -0
- package/dist/cli.d.mts.map +1 -0
- package/dist/cli.mjs +1613 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/index.d.mts +45 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -0
- package/dist/schema-Cp_hoJ0u.mjs +34 -0
- package/dist/schema-Cp_hoJ0u.mjs.map +1 -0
- package/loaders/luau-raw.d.mts +34 -0
- package/loaders/luau-raw.mjs +25 -0
- package/package.json +102 -0
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 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.mts","names":[],"sources":["../src/cli.ts"],"mappings":";;AAkCA;;;;iBAAsB,IAAA,CAAK,IAAA,GAAM,KAAA,WAAwC,OAAA"}
|