We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3154f1a commit d68be08Copy full SHA for d68be08
1 file changed
adminforth/commands/scripts.js
@@ -1,7 +1,8 @@
1
-const fs = require('fs');
2
-const path = require('path');
3
-const { execSync } = require('child_process');
4
-const spaPath = path.join(__dirname, 'dist', 'spa');
+import fs from 'fs';
+import path from 'path';
+
+import { execSync } from 'child_process';
5
+const spaPath = path.join(import.meta.dirname, 'dist', 'spa');
6
7
if (fs.existsSync(spaPath)){
8
console.log('Installing SPA dependencies...');
0 commit comments