@mailmodo/cli 0.0.4 → 0.0.5-beta.pr7.11

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/bin/dev.cmd CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
2
 
3
- node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
3
+ node "%~dp0\dev" %*
package/bin/dev.js CHANGED
@@ -1,5 +1,20 @@
1
- #!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
1
+ #!/usr/bin/env node
2
+
3
+ import {spawnSync} from 'node:child_process'
4
+ import {fileURLToPath} from 'node:url'
2
5
 
3
6
  import {execute} from '@oclif/core'
4
7
 
5
- await execute({development: true, dir: import.meta.url})
8
+ if (process.env.MAILMODO_DEV_TSX) {
9
+ await execute({development: true, dir: import.meta.url})
10
+ } else {
11
+ const scriptPath = fileURLToPath(import.meta.url)
12
+ const result = spawnSync(process.execPath, ['--import', 'tsx', scriptPath, ...process.argv.slice(2)], {
13
+ env: {...process.env, MAILMODO_DEV_TSX: '1'},
14
+ stdio: 'inherit',
15
+ })
16
+
17
+ if (result.status !== 0) {
18
+ throw new Error(`dev bootstrap failed with exit code ${result.status ?? 1}`)
19
+ }
20
+ }
@@ -580,5 +580,5 @@
580
580
  ]
581
581
  }
582
582
  },
583
- "version": "0.0.4"
583
+ "version": "0.0.5-beta.pr7.11"
584
584
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.4",
4
+ "version": "0.0.5-beta.pr7.11",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"
@@ -32,6 +32,7 @@
32
32
  "oclif": "^4",
33
33
  "shx": "^0.3.3",
34
34
  "ts-node": "^10",
35
+ "tsx": "^4.21.0",
35
36
  "typescript": "^5"
36
37
  },
37
38
  "engines": {