wattpm 2.37.1 → 2.38.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/lib/commands/build.js +1 -1
- package/lib/utils.js +2 -2
- package/package.json +7 -7
- package/schema.json +1 -1
package/lib/commands/build.js
CHANGED
|
@@ -62,7 +62,7 @@ export async function installDependencies (logger, root, services, production, p
|
|
|
62
62
|
|
|
63
63
|
for (const service of services) {
|
|
64
64
|
/* c8 ignore next */
|
|
65
|
-
const servicePackageManager = service.packageManager ?? getPackageManager(service.path
|
|
65
|
+
const servicePackageManager = service.packageManager ?? getPackageManager(service.path, packageManager)
|
|
66
66
|
const servicePackageArgs = getPackageArgs(servicePackageManager, production)
|
|
67
67
|
|
|
68
68
|
try {
|
package/lib/utils.js
CHANGED
|
@@ -87,7 +87,7 @@ export function parseArgs (args, options, stopAtFirstPositional = true) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export function getPackageManager (root) {
|
|
90
|
+
export function getPackageManager (root, defaultManager = 'npm') {
|
|
91
91
|
if (existsSync(resolve(root, 'pnpm-lock.yaml'))) {
|
|
92
92
|
return 'pnpm'
|
|
93
93
|
}
|
|
@@ -96,7 +96,7 @@ export function getPackageManager (root) {
|
|
|
96
96
|
return 'yarn'
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
return
|
|
99
|
+
return defaultManager
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export function getPackageArgs (packageManager, production) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "The Node.js Application Server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"pino-pretty": "^13.0.0",
|
|
36
36
|
"split2": "^4.2.0",
|
|
37
37
|
"table": "^6.8.2",
|
|
38
|
-
"@platformatic/basic": "2.
|
|
39
|
-
"@platformatic/config": "2.
|
|
40
|
-
"@platformatic/control": "2.
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"@platformatic/
|
|
38
|
+
"@platformatic/basic": "2.38.0",
|
|
39
|
+
"@platformatic/config": "2.38.0",
|
|
40
|
+
"@platformatic/control": "2.38.0",
|
|
41
|
+
"@platformatic/runtime": "2.38.0",
|
|
42
|
+
"@platformatic/utils": "2.38.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"borp": "^0.19.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"neostandard": "^0.12.0",
|
|
50
50
|
"typescript": "^5.5.4",
|
|
51
51
|
"undici": "^7.0.0",
|
|
52
|
-
"@platformatic/node": "2.
|
|
52
|
+
"@platformatic/node": "2.38.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test": "npm run lint && borp --concurrency=1 --timeout=300000",
|
package/schema.json
CHANGED