sst 3.4.15 → 3.4.17

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/sst.mjs +23 -20
  2. package/package.json +6 -6
package/bin/sst.mjs CHANGED
@@ -1,28 +1,31 @@
1
1
  #!/usr/bin/env node
2
- import { createRequire } from 'node:module';
2
+ import { createRequire } from "node:module";
3
3
  const require = createRequire(import.meta.url);
4
-
5
4
  import path from "path";
6
- import { execFileSync } from "child_process"
7
- const name = `sst-${process.platform}-${process.arch}`;
8
- const binary = process.platform === "win32" ? "sst.exe" : "sst";
5
+ import { execFileSync } from "child_process";
9
6
 
10
- let resolved;
11
- try {
12
- resolved = require.resolve(path.join(name, "bin", binary));
13
- } catch (ex) {
14
- console.error(
15
- `It seems that your package manager failed to install the right version of the SST CLI for your platform. You can try manually installing the "${name}" package.`,
16
- );
17
- process.exit(1);
7
+ let resolved = process.env.SST_BIN_PATH;
8
+
9
+ if (!resolved) {
10
+ const name = `sst-${process.platform}-${process.arch}`;
11
+ const binary = process.platform === "win32" ? "sst.exe" : "sst";
12
+
13
+ try {
14
+ resolved = require.resolve(path.join(name, "bin", binary));
15
+ } catch (ex) {
16
+ console.error(
17
+ `It seems that your package manager failed to install the right version of the SST CLI for your platform. You can try manually installing the "${name}" package.`,
18
+ );
19
+ process.exit(1);
20
+ }
18
21
  }
19
22
 
23
+ process.on("SIGINT", () => {});
24
+
20
25
  try {
21
- execFileSync(resolved, process.argv.slice(2),
22
- {
23
- stdio: "inherit",
24
- })
26
+ execFileSync(resolved, process.argv.slice(2), {
27
+ stdio: "inherit",
28
+ });
25
29
  } catch (ex) {
26
- process.exit(1)
27
- }
28
-
30
+ process.exit(1);
31
+ }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.4.15",
6
+ "version": "3.4.17",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",
@@ -46,11 +46,11 @@
46
46
  }
47
47
  },
48
48
  "optionalDependencies": {
49
- "sst-linux-x64": "3.4.15",
50
- "sst-linux-arm64": "3.4.15",
51
- "sst-linux-x86": "3.4.15",
52
- "sst-darwin-x64": "3.4.15",
53
- "sst-darwin-arm64": "3.4.15"
49
+ "sst-linux-x86": "3.4.17",
50
+ "sst-linux-arm64": "3.4.17",
51
+ "sst-linux-x64": "3.4.17",
52
+ "sst-darwin-x64": "3.4.17",
53
+ "sst-darwin-arm64": "3.4.17"
54
54
  },
55
55
  "dependencies": {
56
56
  "aws4fetch": "^1.0.18",