platformatic 3.32.0-alpha.0 → 3.32.0
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/platformatic.js +16 -2
- package/bin/plt.js +16 -2
- package/package.json +3 -3
package/bin/platformatic.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
3
|
+
// Enable compile cache before loading any modules (Node.js 22.1.0+)
|
|
4
|
+
import { homedir } from 'node:os'
|
|
5
|
+
import { join } from 'node:path'
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const { enableCompileCache } = await import('node:module')
|
|
9
|
+
if (typeof enableCompileCache === 'function') {
|
|
10
|
+
enableCompileCache(join(homedir(), '.cache', 'platformatic', 'compile-cache'))
|
|
11
|
+
}
|
|
12
|
+
} catch {
|
|
13
|
+
// Compile cache not available, continue without it
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Load via dynamic import so all modules benefit from compile cache
|
|
17
|
+
const { checkNodeVersionForApplications, setExecutableId, setExecutableName } = await import('@platformatic/foundation')
|
|
18
|
+
const { main } = await import('wattpm')
|
|
5
19
|
|
|
6
20
|
setExecutableId('platformatic')
|
|
7
21
|
setExecutableName('Platformatic')
|
package/bin/plt.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
3
|
+
// Enable compile cache before loading any modules (Node.js 22.1.0+)
|
|
4
|
+
import { homedir } from 'node:os'
|
|
5
|
+
import { join } from 'node:path'
|
|
6
|
+
|
|
7
|
+
try {
|
|
8
|
+
const { enableCompileCache } = await import('node:module')
|
|
9
|
+
if (typeof enableCompileCache === 'function') {
|
|
10
|
+
enableCompileCache(join(homedir(), '.cache', 'platformatic', 'compile-cache'))
|
|
11
|
+
}
|
|
12
|
+
} catch {
|
|
13
|
+
// Compile cache not available, continue without it
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Load via dynamic import so all modules benefit from compile cache
|
|
17
|
+
const { checkNodeVersionForApplications, setExecutableId, setExecutableName } = await import('@platformatic/foundation')
|
|
18
|
+
const { main } = await import('wattpm')
|
|
5
19
|
|
|
6
20
|
setExecutableId('plt')
|
|
7
21
|
setExecutableName('Platformatic')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "3.32.0
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.5.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"@platformatic/foundation": "3.32.0",
|
|
38
|
+
"wattpm": "3.32.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.19.0"
|