Skip to content

Commit

Permalink
install deps bevore migration
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Dec 15, 2023
1 parent 878f332 commit 8bbe467
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41795,7 +41795,9 @@ const exec_1 = __nccwpck_require__(1514);
const fs_1 = __importDefault(__nccwpck_require__(7147));
function migrate(keepMigrationsFile, legacyPeerDeps) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, exec_1.exec)('npx nx migrate latest', [], {
yield (0, exec_1.exec)('npm -v');
yield (0, exec_1.exec)('npm ci');
yield (0, exec_1.exec)('nx migrate latest', [], {
env: Object.assign(Object.assign({}, process.env), { npm_config_yes: String(true) })
});
yield (0, exec_1.exec)('npm i', [], {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/nx-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export async function migrate(
keepMigrationsFile: boolean,
legacyPeerDeps: boolean
): Promise<void> {
await exec('npx nx migrate latest', [], {
await exec('npm -v')

await exec('npm ci')

await exec('nx migrate latest', [], {
env: {
...process.env,
npm_config_yes: String(true)
Expand Down

0 comments on commit 8bbe467

Please sign in to comment.