wattpm-utils 3.0.2 → 3.0.4
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/cli.js +1 -1
- package/lib/commands/dependencies.js +9 -4
- package/lib/commands/external.js +0 -1
- package/package.json +5 -5
package/bin/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import { checkNodeVersionForApplications, setExecutableId, setExecutableName } f
|
|
|
4
4
|
|
|
5
5
|
checkNodeVersionForApplications()
|
|
6
6
|
setExecutableId('wattpm-utils')
|
|
7
|
-
setExecutableName('Watt
|
|
7
|
+
setExecutableName('Watt')
|
|
8
8
|
|
|
9
9
|
// Use await import here so that we can throw a proper error on unsupported Node.js version
|
|
10
10
|
const { main } = await import('../index.js')
|
|
@@ -57,9 +57,7 @@ export async function installDependencies (logger, root, applications, productio
|
|
|
57
57
|
|
|
58
58
|
// Install dependencies of the application
|
|
59
59
|
try {
|
|
60
|
-
logger.info(
|
|
61
|
-
`Installing ${production ? 'production ' : ''}dependencies for the application using ${packageManager} ...`
|
|
62
|
-
)
|
|
60
|
+
logger.info(`Installing ${production ? 'production ' : ''}dependencies for the project using ${packageManager} ...`)
|
|
63
61
|
|
|
64
62
|
await executeCommand(root, packageManager, args, {
|
|
65
63
|
cwd: root,
|
|
@@ -265,7 +263,14 @@ export async function updateCommand (logger, args) {
|
|
|
265
263
|
|
|
266
264
|
// Now, for all the applications in the configuration file, update the dependencies
|
|
267
265
|
for (const application of applications) {
|
|
268
|
-
await updateDependencies(
|
|
266
|
+
await updateDependencies(
|
|
267
|
+
logger,
|
|
268
|
+
latest,
|
|
269
|
+
availableVersions,
|
|
270
|
+
application.path,
|
|
271
|
+
`the application ${bold(application.id)}`,
|
|
272
|
+
force
|
|
273
|
+
)
|
|
269
274
|
}
|
|
270
275
|
|
|
271
276
|
logger.done('All dependencies have been updated.')
|
package/lib/commands/external.js
CHANGED
|
@@ -135,7 +135,6 @@ async function fixConfiguration (logger, root, configOption, skipDependencies, p
|
|
|
135
135
|
|
|
136
136
|
if (!packageJson.dependencies[capability]) {
|
|
137
137
|
packageJson.dependencies[capability] = `^${version}`
|
|
138
|
-
process._rawDebug(packageJson)
|
|
139
138
|
packageJson.devDependencies ??= {}
|
|
140
139
|
packageJson.devDependencies[capability] = undefined
|
|
141
140
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm-utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "The Node.js Application Server Utilities Commands",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dotenv": "^16.4.5",
|
|
29
29
|
"execa": "^9.4.0",
|
|
30
30
|
"semver": "^7.7.0",
|
|
31
|
-
"@platformatic/foundation": "3.0.
|
|
32
|
-
"create-wattpm": "3.0.
|
|
33
|
-
"@platformatic/runtime": "3.0.
|
|
31
|
+
"@platformatic/foundation": "3.0.4",
|
|
32
|
+
"create-wattpm": "3.0.4",
|
|
33
|
+
"@platformatic/runtime": "3.0.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"cleaner-spec-reporter": "^0.5.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"neostandard": "^0.12.0",
|
|
41
41
|
"typescript": "^5.5.4",
|
|
42
42
|
"undici": "^7.0.0",
|
|
43
|
-
"@platformatic/node": "3.0.
|
|
43
|
+
"@platformatic/node": "3.0.4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=22.18.0"
|