diff --git a/scripts/updateVersion.ts b/scripts/updateVersion.ts index 5dc059b..e653df9 100644 --- a/scripts/updateVersion.ts +++ b/scripts/updateVersion.ts @@ -1,11 +1,12 @@ import fs from 'node:fs/promises'; import type selfPkgT from '../package.json'; +import process from 'node:process'; const selfPkg: typeof selfPkgT = JSON.parse( await fs.readFile(process.cwd() + '/package.json', 'utf-8'), ); - -selfPkg.version = `0.0.` + Date.now(); +selfPkg.version = + selfPkg.version.split('.').slice(0, 2).join('.') + '.' + Date.now(); await fs.writeFile( process.cwd() + '/package.json',