@theholocron/cli 2.0.0-alpha.26 → 2.0.0-alpha.28

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/cli.mjs CHANGED
@@ -1162,6 +1162,7 @@ jobs:
1162
1162
 
1163
1163
  - uses: theholocron/.github/.github/actions/setup@main
1164
1164
  name: Setup
1165
+ if: \${{ hashFiles('pnpm-lock.yaml') != '' }}
1165
1166
 
1166
1167
  - uses: super-linter/super-linter/slim@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0
1167
1168
  name: Run Super Linter
@@ -4052,8 +4053,7 @@ async function loadJs(filepath) {
4052
4053
  }
4053
4054
  async function loadTs(filepath) {
4054
4055
  const { tsImport } = await import("tsx/esm/api");
4055
- const outer = await tsImport(pathToFileURL(filepath).href, import.meta.url);
4056
- return extractAndResolve(filepath, outer.default ?? outer);
4056
+ return extractAndResolve(filepath, await tsImport(pathToFileURL(filepath).href, import.meta.url));
4057
4057
  }
4058
4058
  function extractAndResolve(filepath, mod) {
4059
4059
  const raw = mod.default;
package/dist/index.mjs CHANGED
@@ -260,8 +260,7 @@ async function loadJs(filepath) {
260
260
  }
261
261
  async function loadTs(filepath) {
262
262
  const { tsImport } = await import("tsx/esm/api");
263
- const outer = await tsImport(pathToFileURL(filepath).href, import.meta.url);
264
- return extractAndResolve(filepath, outer.default ?? outer);
263
+ return extractAndResolve(filepath, await tsImport(pathToFileURL(filepath).href, import.meta.url));
265
264
  }
266
265
  function extractAndResolve(filepath, mod) {
267
266
  const raw = mod.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.26",
3
+ "version": "2.0.0-alpha.28",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",