Skip to content

Commit

Permalink
Remove debug logs in package script
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindet committed Feb 7, 2024
1 parent c1b8a77 commit f63e92d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ export default async function version(str) {
try {
const { stdout } = await git('tag');

console.log(stdout);

const [major = 0, minor = 0, patch = 0, pre = '', number = 0] = stdout
.split('\n')
.reduce((latest, vstring) => {
const version = vstring
.split(/[.-]/)
.map((seg, i) => (i === 3 ? seg : parseInt(seg)));

console.log('latest', latest, vstring, version);

for (let i = 0; i < 5; i++) {
const atPre = i === 3;
if (latest.length === i) return atPre ? latest : version;
Expand All @@ -36,8 +32,6 @@ export default async function version(str) {
return latest;
}, []);

console.log({ major, minor, patch, pre, number });

switch (str) {
case 'major':
return `${major + 1}.0.0`;
Expand Down

0 comments on commit f63e92d

Please sign in to comment.