@modernpoacher/deps 2.2.10 → 2.2.12
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/package.json +2 -2
- package/src/index.mjs +36 -42
- package/src/install/index.mjs +10 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/deps",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"description": "Update NPM package dependencies from the command line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deps",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"commander": "^13.0.0",
|
|
57
57
|
"debug": "^4.4.0",
|
|
58
|
-
"glob": "^11.0.
|
|
58
|
+
"glob": "^11.0.1",
|
|
59
59
|
"strip-ansi": "^7.1.0",
|
|
60
60
|
"supports-color": "^10.0.0"
|
|
61
61
|
},
|
package/src/index.mjs
CHANGED
|
@@ -83,14 +83,11 @@ export function use (key) {
|
|
|
83
83
|
export function getInstallSaveExactCommands (deps, r, f) {
|
|
84
84
|
log('getInstallSaveExactCommands')
|
|
85
85
|
|
|
86
|
-
const
|
|
87
|
-
const commands = `npm i ${c}`
|
|
86
|
+
const commands = normalizeCommands(getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(deps)}`))))
|
|
88
87
|
|
|
89
88
|
info(commands)
|
|
90
89
|
|
|
91
|
-
return
|
|
92
|
-
getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(commands)))
|
|
93
|
-
)
|
|
90
|
+
return commands
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
/**
|
|
@@ -107,14 +104,11 @@ export function getInstallSaveExactCommands (deps, r, f) {
|
|
|
107
104
|
export function getInstallCommands (deps, r, f) {
|
|
108
105
|
log('getInstallCommands')
|
|
109
106
|
|
|
110
|
-
const
|
|
111
|
-
const commands = `npm i ${c}`
|
|
107
|
+
const commands = normalizeCommands(getRegistryParameter(r, getForceParameter(f, `npm i ${transform(deps)}`)))
|
|
112
108
|
|
|
113
109
|
info(commands)
|
|
114
110
|
|
|
115
|
-
return
|
|
116
|
-
getRegistryParameter(r, getForceParameter(f, commands))
|
|
117
|
-
)
|
|
111
|
+
return commands
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
/**
|
|
@@ -131,11 +125,11 @@ export function getInstallCommands (deps, r, f) {
|
|
|
131
125
|
export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
|
|
132
126
|
log('getInstallSaveBundleSaveExactCommands')
|
|
133
127
|
|
|
134
|
-
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
128
|
+
const commands = normalizeCommands(getSaveBundleParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
135
129
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
info(commands)
|
|
131
|
+
|
|
132
|
+
return commands
|
|
139
133
|
}
|
|
140
134
|
|
|
141
135
|
/**
|
|
@@ -152,11 +146,11 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
|
|
|
152
146
|
export function getInstallSaveBundleCommands (deps, r, f) {
|
|
153
147
|
log('getInstallSaveBundleCommands')
|
|
154
148
|
|
|
155
|
-
const commands = getInstallCommands(deps, r, f)
|
|
149
|
+
const commands = normalizeCommands(getSaveBundleParameter(getInstallCommands(deps, r, f)))
|
|
156
150
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
info(commands)
|
|
152
|
+
|
|
153
|
+
return commands
|
|
160
154
|
}
|
|
161
155
|
|
|
162
156
|
/**
|
|
@@ -173,11 +167,11 @@ export function getInstallSaveBundleCommands (deps, r, f) {
|
|
|
173
167
|
export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
|
|
174
168
|
log('getInstallSaveOptionalSaveExactCommands')
|
|
175
169
|
|
|
176
|
-
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
170
|
+
const commands = normalizeCommands(getSaveOptionalParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
177
171
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
172
|
+
info(commands)
|
|
173
|
+
|
|
174
|
+
return commands
|
|
181
175
|
}
|
|
182
176
|
|
|
183
177
|
/**
|
|
@@ -194,11 +188,11 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
|
|
|
194
188
|
export function getInstallSaveOptionalCommands (deps, r, f) {
|
|
195
189
|
log('getInstallSaveOptionalCommands')
|
|
196
190
|
|
|
197
|
-
const commands = getInstallCommands(deps, r, f)
|
|
191
|
+
const commands = normalizeCommands(getSaveOptionalParameter(getInstallCommands(deps, r, f)))
|
|
198
192
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
info(commands)
|
|
194
|
+
|
|
195
|
+
return commands
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
/**
|
|
@@ -215,11 +209,11 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
|
|
|
215
209
|
export function getInstallSaveDevSaveExactCommands (deps, r, f) {
|
|
216
210
|
log('getInstallSaveDevSaveExactCommands')
|
|
217
211
|
|
|
218
|
-
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
212
|
+
const commands = normalizeCommands(getSaveDevParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
219
213
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
214
|
+
info(commands)
|
|
215
|
+
|
|
216
|
+
return commands
|
|
223
217
|
}
|
|
224
218
|
|
|
225
219
|
/**
|
|
@@ -236,11 +230,11 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
|
|
|
236
230
|
export function getInstallSaveDevCommands (deps, r, f) {
|
|
237
231
|
log('getInstallSaveDevCommands')
|
|
238
232
|
|
|
239
|
-
const commands = getInstallCommands(deps, r, f)
|
|
233
|
+
const commands = normalizeCommands(getSaveDevParameter(getInstallCommands(deps, r, f)))
|
|
240
234
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
235
|
+
info(commands)
|
|
236
|
+
|
|
237
|
+
return commands
|
|
244
238
|
}
|
|
245
239
|
|
|
246
240
|
/**
|
|
@@ -257,11 +251,11 @@ export function getInstallSaveDevCommands (deps, r, f) {
|
|
|
257
251
|
export function getInstallSaveProdSaveExactCommands (deps, r, f) {
|
|
258
252
|
log('getInstallSaveProdSaveExactCommands')
|
|
259
253
|
|
|
260
|
-
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
254
|
+
const commands = normalizeCommands(getSaveProdParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
261
255
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
info(commands)
|
|
257
|
+
|
|
258
|
+
return commands
|
|
265
259
|
}
|
|
266
260
|
|
|
267
261
|
/**
|
|
@@ -278,11 +272,11 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
|
|
|
278
272
|
export function getInstallSaveProdCommands (deps, r, f) {
|
|
279
273
|
log('getInstallSaveProdCommands')
|
|
280
274
|
|
|
281
|
-
const commands = getInstallCommands(deps, r, f)
|
|
275
|
+
const commands = normalizeCommands(getSaveProdParameter(getInstallCommands(deps, r, f)))
|
|
282
276
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
277
|
+
info(commands)
|
|
278
|
+
|
|
279
|
+
return commands
|
|
286
280
|
}
|
|
287
281
|
|
|
288
282
|
/**
|
package/src/install/index.mjs
CHANGED
|
@@ -41,7 +41,8 @@ import {
|
|
|
41
41
|
getDeps
|
|
42
42
|
} from '#deps/src/common'
|
|
43
43
|
|
|
44
|
-
const log = debug('@modernpoacher/deps
|
|
44
|
+
const log = debug('@modernpoacher/deps')
|
|
45
|
+
const info = debug('@modernpoacher/deps:info')
|
|
45
46
|
|
|
46
47
|
log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
|
|
47
48
|
|
|
@@ -60,12 +61,11 @@ log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
|
|
|
60
61
|
export function getInstallSaveExactCommands (p, s, r, f) {
|
|
61
62
|
log('getInstallSaveExactCommands')
|
|
62
63
|
|
|
63
|
-
const
|
|
64
|
-
const commands = `npm i ${c}`
|
|
64
|
+
const commands = normalizeCommands(getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(p)}`)))))
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
info(commands)
|
|
67
|
+
|
|
68
|
+
return commands
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -83,12 +83,11 @@ export function getInstallSaveExactCommands (p, s, r, f) {
|
|
|
83
83
|
export function getInstallCommands (p, s, r, f) {
|
|
84
84
|
log('getInstallCommands')
|
|
85
85
|
|
|
86
|
-
const
|
|
87
|
-
const commands = `npm i ${c}`
|
|
86
|
+
const commands = normalizeCommands(getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, `npm i ${transform(p)}`))))
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
info(commands)
|
|
89
|
+
|
|
90
|
+
return commands
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
/**
|