@arcteninc/core 0.0.65 → 0.0.66

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.65",
3
+ "version": "0.0.66",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -21,12 +21,13 @@
21
21
  "sideEffects": false,
22
22
  "bin": {
23
23
  "arcten": "./scripts/arcten-cli.cjs",
24
- "arcten-extract-types": "./scripts/cli-extract-types-auto-wrapper.cjs"
24
+ "arcten-extract-types": "./scripts/cli-extract-types-auto-wrapper.js"
25
25
  },
26
26
  "files": [
27
27
  "dist",
28
28
  "scripts/cli-extract-types-auto.ts",
29
29
  "scripts/cli-extract-types-auto-wrapper.cjs",
30
+ "scripts/cli-extract-types-auto-wrapper.js",
30
31
  "scripts/arcten-cli.cjs"
31
32
  ],
32
33
  "scripts": {
File without changes
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * JavaScript wrapper for the CommonJS wrapper script
4
+ * This file exists to ensure binary resolution works correctly
5
+ * when package managers look for .js files
6
+ *
7
+ * Works in both Bun and Node.js environments, even when package.json has "type": "module"
8
+ */
9
+
10
+ import { createRequire } from 'module';
11
+ import { fileURLToPath } from 'url';
12
+ import { dirname, join } from 'path';
13
+
14
+ // Get __dirname equivalent for ES modules
15
+ const __filename = fileURLToPath(import.meta.url);
16
+ const __dirname = dirname(__filename);
17
+
18
+ // Create require function that works in ES module context
19
+ const require = createRequire(import.meta.url);
20
+
21
+ // Load and execute the CommonJS wrapper
22
+ // This works in both Node.js (v12+) and Bun
23
+ const wrapperPath = join(__dirname, 'cli-extract-types-auto-wrapper.cjs');
24
+ require(wrapperPath);
25
+