0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix(cli): chooseAlterationsByVersion should contain the last next version alteration script (#2175)

This commit is contained in:
Xiao Yijun 2022-10-17 23:18:28 +08:00 committed by GitHub
parent fec04803de
commit fd50304f5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ describe('chooseAlterationsByVersion()', () => {
),
expect(chooseAlterationsByVersion(files, 'v1.1.0')).resolves.toEqual(files.slice(0, 8)),
expect(chooseAlterationsByVersion(files, 'v1.2.0')).resolves.toEqual(files.slice(0, 9)),
expect(chooseAlterationsByVersion(files, 'next')).resolves.toEqual(files.slice(0, 11)),
expect(chooseAlterationsByVersion(files, 'next')).resolves.toEqual(files.slice(0, 12)),
]);
});
});

View file

@ -32,7 +32,7 @@ export const chooseAlterationsByVersion = async (
log.info(`Deploy target ${chalk.green(nextTag)}`);
return alterations.slice(0, endIndex);
return alterations.slice(0, endIndex + 1);
}
const versions = alterations