Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update dep
Browse files Browse the repository at this point in the history
winchesHe committed Apr 5, 2024
1 parent 7506fd7 commit 350e26e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/actions/add-action.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-var */
import type {SAFE_ANY} from '@helpers/type';

import {writeFileSync} from 'fs';
@@ -95,7 +96,7 @@ export async function addAction(components: string[], options: AddActionOptions)
}

// Check whether have added the NextUI components
const {allDependenciesKeys, currentComponents} = getPackageInfo(packagePath);
var {allDependenciesKeys, currentComponents} = getPackageInfo(packagePath);

const currentComponentsKeys = currentComponents.map((c) => c.name);
const filterCurrentComponents = components.filter((c) => currentComponentsKeys.includes(c));
@@ -156,6 +157,9 @@ export async function addAction(components: string[], options: AddActionOptions)
await exec(`${currentPkgManager} ${runCmd} ${[...missingDependencies].join(' ')}`);
}

// After install the required dependencies, get the latest package information
var {allDependenciesKeys, currentComponents} = getPackageInfo(packagePath);

/** ======================== Step 2 Tailwind CSS Setup ======================== */
const type: SAFE_ANY = all ? 'all' : 'partial';

0 comments on commit 350e26e

Please sign in to comment.