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:
parent
fec04803de
commit
fd50304f5f
2 changed files with 2 additions and 2 deletions
|
@ -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)),
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue