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.
@@ -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) ?? packageManager
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 'npm'
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.37.1",
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.37.1",
39
- "@platformatic/config": "2.37.1",
40
- "@platformatic/control": "2.37.1",
41
- "@platformatic/utils": "2.37.1",
42
- "@platformatic/runtime": "2.37.1"
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.37.1"
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/wattpm/2.37.1.json",
2
+ "$id": "https://schemas.platformatic.dev/wattpm/2.38.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "type": "object",
5
5
  "properties": {