inngest-cli 1.15.2 → 1.15.3

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/inngest +18 -0
  2. package/package.json +1 -1
package/bin/inngest CHANGED
@@ -1,5 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const { existsSync } = require('fs');
4
+ const { join } = require('path');
5
+ const { execFileSync } = require('child_process');
6
+
7
+ // On Windows, the downloaded release does not overwrite this file
8
+ // so check if inngest.exe exists and run it
9
+ if (process.platform === 'win32') {
10
+ const exePath = join(__dirname, 'inngest.exe');
11
+ if (existsSync(exePath)) {
12
+ try {
13
+ execFileSync(exePath, process.argv.slice(2), { stdio: 'inherit' });
14
+ process.exit(0);
15
+ } catch (err) {
16
+ process.exit(err.status || 1);
17
+ }
18
+ }
19
+ }
20
+
3
21
  console.error('Error: Inngest CLI binary not found.');
4
22
  console.error('');
5
23
  console.error('This happened because install scripts were skipped.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inngest-cli",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "description": "The leading workflow orchestration platform. Run stateful step functions and AI workflows on serverless, servers, or the edge.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {