zet-x 1.0.5 → 1.0.6

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/dist/register.js CHANGED
@@ -1,3 +1,12 @@
1
- import { register } from "node:module";
2
- register("./loader.js", import.meta.url);
1
+ import module from "node:module";
2
+ import { resolve } from "./loader.js";
3
+ // Node 26 runtime-deprecates module.register() (DEP0205). Use the synchronous
4
+ // in-thread hooks where they exist (Node >=22.15 / >=23.5) and fall back to the
5
+ // asynchronous off-thread loader on older versions.
6
+ if (typeof module.registerHooks === "function") {
7
+ module.registerHooks({ resolve });
8
+ }
9
+ else {
10
+ module.register("./loader.js", import.meta.url);
11
+ }
3
12
  //# sourceMappingURL=register.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,8EAA8E;AAC9E,gFAAgF;AAChF,oDAAoD;AACpD,IAAI,OAAO,MAAM,CAAC,aAAa,KAAK,UAAU,EAAE,CAAC;IAC/C,MAAM,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AACpC,CAAC;KAAM,CAAC;IACN,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-x",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "description": "A project-level task runner for teams. Define dev commands in a config file, run them with x <command>.",
6
6
  "bin": {