Skip to content

Commit

Permalink
fix prep-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Pierson committed May 6, 2024
1 parent 8c2c7b4 commit 108121e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/prep-release.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
import { execFileSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
import { assert } from 'node:console';

/**
* @param {string} versionJsonName
Expand Down Expand Up @@ -62,7 +64,7 @@ export function prepareRelease(repoName, releaseVersion, mainVersion) {
}

const dirName = path.dirname(fileURLToPath(import.meta.url));
const repoName = path.join(dirName, 'extension');
const repoName = path.join(dirName, '..');

const { major, minor, prerel } = getVersion(repoName);
assert(minor % 2 === 1 && prerel === 'preview', 'Current version must have odd minor and preview prerelease tag');
Expand Down

0 comments on commit 108121e

Please sign in to comment.