semver#ReleaseType TypeScript Examples
The following examples show how to use
semver#ReleaseType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: getVersion.ts From fuels-ts with Apache License 2.0 | 6 votes |
async function getReleaseType() {
return new Promise<ReleaseType>((resolve, reject) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function cb(err: any, rec: any) {
if (err) {
reject(err);
return;
}
resolve(rec.releaseType);
}
bump({ preset: `angular` }, cb);
});
}
Example #2
Source File: BuildNewVersion.tsx From amplication with Apache License 2.0 | 5 votes |
RELEASE_TO_SEVER_TYPE: {
[key in EnumReleaseType]: ReleaseType;
} = {
[EnumReleaseType.Major]: "major",
[EnumReleaseType.Minor]: "minor",
[EnumReleaseType.Patch]: "patch",
}