Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreVasseur committed Nov 4, 2024
1 parent 55903e3 commit 960c1ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/getVersion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
import * as fs from 'node:fs';
import path from 'node:path';

const packageJson = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8')
fs.readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8'),
);
console.log(packageJson.version);

0 comments on commit 960c1ff

Please sign in to comment.