0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/schemas/update-next.sh
Gao Sun 2d069cbebf
refactor(schemas): auto update next alteration scripts (#2008)
* refactor(schemas): auto update next alteration scripts

* refactor(schemas): update eslint config

* refactor(core): log when alteration is done
2022-09-27 14:43:17 +08:00

7 lines
172 B
Bash
Executable file

CURRENT_VERSION=$(node -p "require('./package.json').version.replaceAll('-', '_')")
cd alterations
for x in next-*.ts;
do mv $x $CURRENT_VERSION$(echo ${x#next});
done