Skip to content

Commit

Permalink
fix(firebase): fix nx not installing packages on generate
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Feb 8, 2023
1 parent 4662c3f commit fba1c37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/firebase/src/generators/functions/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export default async function (tree: Tree, options: FirebaseGeneratorSchema) {

await formatFiles(tree);

// install dependencies
addDependencies(tree);
// add dependencies for firebase functions
return addDependencies(tree);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function addDependencies(tree: Tree) {
const nxWorkspaceVersion = JSON.parse(tree.read('package.json').toString())
.devDependencies['@nrwl/workspace'];

const installDependencies = addDependenciesToPackageJson(
return addDependenciesToPackageJson(
tree,
{
'firebase-admin': '^11.4.1',
Expand All @@ -17,7 +17,4 @@ export default function addDependencies(tree: Tree) {
esbuild: '^0.15.7',
}
);

// install all dependencies
installDependencies();
}

0 comments on commit fba1c37

Please sign in to comment.