Skip to content

Commit

Permalink
fix improts
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerFrontegg committed Nov 5, 2024
1 parent 835e9af commit 9f1f792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/increment-version.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function getCurrentVersion() {
const { path } = await import('path');
const { default: path } = await import('path');
const packageJsonPath = path.join(__dirname, `../projects/frontegg-app/package.json`);
const pkg = await import(packageJsonPath);
const [major = 0, minor = 0, patch = 0] = pkg.version.split('.').map(Number);
Expand All @@ -8,7 +8,7 @@ async function getCurrentVersion() {

async function modifyVersion(newVersion) {
const { writeFileSync } = await import('fs');
const { path } = await import('path');
const { default: path } = await import('path');
const packageJsonPath = path.join(__dirname, `../projects/frontegg-app/package.json`);
const pkg = await import(packageJsonPath);
console.log('Modifying package.json', packageJsonPath);
Expand Down

0 comments on commit 9f1f792

Please sign in to comment.