@mailmodo/cli 0.0.3-beta.pr5.8 → 0.0.4-beta.pr6.10
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 +1 -1
- package/bin/dev.js +17 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -1
package/bin/dev.cmd
CHANGED
package/bin/dev.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
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
|
-
|
|
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
|
+
}
|
package/oclif.manifest.json
CHANGED
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
|
+
"version": "0.0.4-beta.pr6.10",
|
|
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": {
|