snpm 2025.12.13 → 2025.12.18

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.
Files changed (2) hide show
  1. package/bin/spx.js +25 -0
  2. package/package.json +3 -2
package/bin/spx.js ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require('child_process');
4
+ const { join } = require('path');
5
+ const { existsSync } = require('fs');
6
+
7
+ const binName = process.platform === 'win32' ? 'snpm.exe' : 'snpm';
8
+ const binPath = join(__dirname, binName);
9
+
10
+ if (!existsSync(binPath)) {
11
+ console.error('snpm binary not found. Please run: npm install');
12
+ console.error('If the problem persists, try reinstalling: npm install -g snpm --force');
13
+ process.exit(1);
14
+ }
15
+
16
+ // spx is shorthand for "snpm dlx"
17
+ // So we insert "dlx" into the arguments
18
+ const args = ['dlx', ...process.argv.slice(2)];
19
+
20
+ const result = spawnSync(binPath, args, {
21
+ stdio: 'inherit',
22
+ windowsHide: false,
23
+ });
24
+
25
+ process.exit(result.status);
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "snpm",
3
- "version": "2025.12.13",
3
+ "version": "2025.12.18",
4
4
  "description": "Speedy Node Package Manager - A fast, Rust-based package manager",
5
5
  "bin": {
6
- "snpm": "bin/snpm.js"
6
+ "snpm": "bin/snpm.js",
7
+ "spx": "bin/spx.js"
7
8
  },
8
9
  "repository": {
9
10
  "type": "git",