We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e17f87d commit cddc0f8Copy full SHA for cddc0f8
1 file changed
scripts/version.js
@@ -1,6 +1,9 @@
1
-/* eslint-disable @typescript-eslint/no-var-requires */
2
-const fs = require('fs');
3
-const path = require('path');
+import fs from 'fs';
+import path from 'path';
+import { fileURLToPath } from 'url';
4
+
5
+const __filename = fileURLToPath(import.meta.url);
6
+const __dirname = path.dirname(__filename);
7
8
console.log('Starting version update process...');
9
0 commit comments