ui-thing 0.0.24 → 0.0.25
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/CHANGELOG.md +12 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/add.ts +2 -2
package/package.json
CHANGED
package/src/commands/add.ts
CHANGED
|
@@ -258,8 +258,8 @@ export const add = new Command()
|
|
|
258
258
|
const foundDeps = _.uniq(found.map((c) => c.deps || []).flat());
|
|
259
259
|
const foundDevDeps = _.uniq(found.map((c) => c.devDeps || []).flat());
|
|
260
260
|
|
|
261
|
-
// check if the foundDeps & foundDevDeps
|
|
262
|
-
if (foundDeps.length
|
|
261
|
+
// check if the foundDeps & foundDevDeps lists are not empty, ask the user to install them
|
|
262
|
+
if (foundDeps.length > 0 || foundDevDeps.length > 0) {
|
|
263
263
|
const { confirmInstall } = await prompts({
|
|
264
264
|
type: "confirm",
|
|
265
265
|
name: "confirmInstall",
|