Skip to content

Commit

Permalink
fix: install @aws-amplify/backend
Browse files Browse the repository at this point in the history
  • Loading branch information
0618 committed Jan 3, 2024
1 parent d3e936f commit 67e7382
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from 'fs/promises';
import path from 'path';
import { execa } from 'execa';
import { shortUuid } from '../short_uuid.js';
import { setupDirAsEsmModule } from './setup_dir_as_esm_module.js';

Expand Down Expand Up @@ -29,5 +30,10 @@ export const createEmptyAmplifyProject = async (

await setupDirAsEsmModule(projectAmplifyDir);

await execa('npm', ['install', '@aws-amplify/backend'], {
stdio: 'inherit',
cwd: projectRoot,
});

return { projectName, projectRoot, projectAmplifyDir };
};

0 comments on commit 67e7382

Please sign in to comment.