@modernpoacher/deps 2.2.11 → 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 +1 -1
- package/src/index.mjs +36 -40
- package/src/install/index.mjs +10 -9
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -83,13 +83,11 @@ export function use (key) {
|
|
|
83
83
|
export function getInstallSaveExactCommands (deps, r, f) {
|
|
84
84
|
log('getInstallSaveExactCommands')
|
|
85
85
|
|
|
86
|
-
const commands = getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(deps)}`)))
|
|
86
|
+
const commands = normalizeCommands(getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(deps)}`))))
|
|
87
87
|
|
|
88
88
|
info(commands)
|
|
89
89
|
|
|
90
|
-
return
|
|
91
|
-
normalizeCommands(commands)
|
|
92
|
-
)
|
|
90
|
+
return commands
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
/**
|
|
@@ -106,13 +104,11 @@ export function getInstallSaveExactCommands (deps, r, f) {
|
|
|
106
104
|
export function getInstallCommands (deps, r, f) {
|
|
107
105
|
log('getInstallCommands')
|
|
108
106
|
|
|
109
|
-
const commands = getRegistryParameter(r, getForceParameter(f, `npm i ${transform(deps)}`))
|
|
107
|
+
const commands = normalizeCommands(getRegistryParameter(r, getForceParameter(f, `npm i ${transform(deps)}`)))
|
|
110
108
|
|
|
111
109
|
info(commands)
|
|
112
110
|
|
|
113
|
-
return
|
|
114
|
-
normalizeCommands(commands)
|
|
115
|
-
)
|
|
111
|
+
return commands
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
/**
|
|
@@ -129,11 +125,11 @@ export function getInstallCommands (deps, r, f) {
|
|
|
129
125
|
export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
|
|
130
126
|
log('getInstallSaveBundleSaveExactCommands')
|
|
131
127
|
|
|
132
|
-
const commands = getSaveBundleParameter(getInstallSaveExactCommands(deps, r, f))
|
|
128
|
+
const commands = normalizeCommands(getSaveBundleParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
133
129
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
info(commands)
|
|
131
|
+
|
|
132
|
+
return commands
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
/**
|
|
@@ -150,11 +146,11 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
|
|
|
150
146
|
export function getInstallSaveBundleCommands (deps, r, f) {
|
|
151
147
|
log('getInstallSaveBundleCommands')
|
|
152
148
|
|
|
153
|
-
const commands = getSaveBundleParameter(getInstallCommands(deps, r, f))
|
|
149
|
+
const commands = normalizeCommands(getSaveBundleParameter(getInstallCommands(deps, r, f)))
|
|
154
150
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
info(commands)
|
|
152
|
+
|
|
153
|
+
return commands
|
|
158
154
|
}
|
|
159
155
|
|
|
160
156
|
/**
|
|
@@ -171,11 +167,11 @@ export function getInstallSaveBundleCommands (deps, r, f) {
|
|
|
171
167
|
export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
|
|
172
168
|
log('getInstallSaveOptionalSaveExactCommands')
|
|
173
169
|
|
|
174
|
-
const commands = getSaveOptionalParameter(getInstallSaveExactCommands(deps, r, f))
|
|
170
|
+
const commands = normalizeCommands(getSaveOptionalParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
175
171
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
info(commands)
|
|
173
|
+
|
|
174
|
+
return commands
|
|
179
175
|
}
|
|
180
176
|
|
|
181
177
|
/**
|
|
@@ -192,11 +188,11 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
|
|
|
192
188
|
export function getInstallSaveOptionalCommands (deps, r, f) {
|
|
193
189
|
log('getInstallSaveOptionalCommands')
|
|
194
190
|
|
|
195
|
-
const commands = getSaveOptionalParameter(getInstallCommands(deps, r, f))
|
|
191
|
+
const commands = normalizeCommands(getSaveOptionalParameter(getInstallCommands(deps, r, f)))
|
|
196
192
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
193
|
+
info(commands)
|
|
194
|
+
|
|
195
|
+
return commands
|
|
200
196
|
}
|
|
201
197
|
|
|
202
198
|
/**
|
|
@@ -213,11 +209,11 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
|
|
|
213
209
|
export function getInstallSaveDevSaveExactCommands (deps, r, f) {
|
|
214
210
|
log('getInstallSaveDevSaveExactCommands')
|
|
215
211
|
|
|
216
|
-
const commands = getSaveDevParameter(getInstallSaveExactCommands(deps, r, f))
|
|
212
|
+
const commands = normalizeCommands(getSaveDevParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
217
213
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
info(commands)
|
|
215
|
+
|
|
216
|
+
return commands
|
|
221
217
|
}
|
|
222
218
|
|
|
223
219
|
/**
|
|
@@ -234,11 +230,11 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
|
|
|
234
230
|
export function getInstallSaveDevCommands (deps, r, f) {
|
|
235
231
|
log('getInstallSaveDevCommands')
|
|
236
232
|
|
|
237
|
-
const commands = getSaveDevParameter(getInstallCommands(deps, r, f))
|
|
233
|
+
const commands = normalizeCommands(getSaveDevParameter(getInstallCommands(deps, r, f)))
|
|
238
234
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
info(commands)
|
|
236
|
+
|
|
237
|
+
return commands
|
|
242
238
|
}
|
|
243
239
|
|
|
244
240
|
/**
|
|
@@ -255,11 +251,11 @@ export function getInstallSaveDevCommands (deps, r, f) {
|
|
|
255
251
|
export function getInstallSaveProdSaveExactCommands (deps, r, f) {
|
|
256
252
|
log('getInstallSaveProdSaveExactCommands')
|
|
257
253
|
|
|
258
|
-
const commands = getSaveProdParameter(getInstallSaveExactCommands(deps, r, f))
|
|
254
|
+
const commands = normalizeCommands(getSaveProdParameter(getInstallSaveExactCommands(deps, r, f)))
|
|
259
255
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
info(commands)
|
|
257
|
+
|
|
258
|
+
return commands
|
|
263
259
|
}
|
|
264
260
|
|
|
265
261
|
/**
|
|
@@ -276,11 +272,11 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
|
|
|
276
272
|
export function getInstallSaveProdCommands (deps, r, f) {
|
|
277
273
|
log('getInstallSaveProdCommands')
|
|
278
274
|
|
|
279
|
-
const commands = getSaveProdParameter(getInstallCommands(deps, r, f))
|
|
275
|
+
const commands = normalizeCommands(getSaveProdParameter(getInstallCommands(deps, r, f)))
|
|
280
276
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
info(commands)
|
|
278
|
+
|
|
279
|
+
return commands
|
|
284
280
|
}
|
|
285
281
|
|
|
286
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,11 +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 commands = getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(p)}`))))
|
|
64
|
+
const commands = normalizeCommands(getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(p)}`)))))
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
info(commands)
|
|
67
|
+
|
|
68
|
+
return commands
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -82,11 +83,11 @@ export function getInstallSaveExactCommands (p, s, r, f) {
|
|
|
82
83
|
export function getInstallCommands (p, s, r, f) {
|
|
83
84
|
log('getInstallCommands')
|
|
84
85
|
|
|
85
|
-
const commands = getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, `npm i ${transform(p)}`)))
|
|
86
|
+
const commands = normalizeCommands(getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, `npm i ${transform(p)}`))))
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
info(commands)
|
|
89
|
+
|
|
90
|
+
return commands
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
/**
|