@arcteninc/core 0.0.92 → 0.0.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcteninc/core",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -26,6 +26,7 @@
26
26
  "files": [
27
27
  "dist",
28
28
  "scripts/cli-extract-types-auto.ts",
29
+ "scripts/cli-extract-types-auto.js",
29
30
  "scripts/cli-extract-types-auto-wrapper.cjs",
30
31
  "scripts/cli-extract-types-auto-wrapper.js",
31
32
  "scripts/arcten-cli.cjs"
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Fallback entry point for binary resolution
4
+ * Some package managers may look for this file name directly
5
+ * This file simply re-exports the wrapper to ensure compatibility
6
+ */
7
+
8
+ import { createRequire } from 'module';
9
+ import { fileURLToPath } from 'url';
10
+ import { dirname, join } from 'path';
11
+
12
+ // Get __dirname equivalent for ES modules
13
+ const __filename = fileURLToPath(import.meta.url);
14
+ const __dirname = dirname(__filename);
15
+
16
+ // Create require function that works in ES module context
17
+ const require = createRequire(import.meta.url);
18
+
19
+ // Load and execute the CommonJS wrapper
20
+ // This works in both Node.js (v12+) and Bun
21
+ const wrapperPath = join(__dirname, 'cli-extract-types-auto-wrapper.cjs');
22
+ require(wrapperPath);
23
+