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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-thing",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "CLI used to add Nuxt 3 components to a project",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -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 is empty. If they both are, then do not install anything
262
- if (foundDeps.length !== 0 && foundDevDeps.length !== 0) {
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",