Skip to content

Commit

Permalink
remove install before migration
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Dec 15, 2023
1 parent 8bbe467 commit d565f65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41795,9 +41795,7 @@ 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)('npm -v');
yield (0, exec_1.exec)('npm ci');
yield (0, exec_1.exec)('nx migrate latest', [], {
yield (0, exec_1.exec)('npx 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: 1 addition & 5 deletions src/nx-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ export async function migrate(
keepMigrationsFile: boolean,
legacyPeerDeps: boolean
): Promise<void> {
await exec('npm -v')

await exec('npm ci')

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

0 comments on commit d565f65

Please sign in to comment.