We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91994a3 commit 2c9c1e3Copy full SHA for 2c9c1e3
scripts/fix.mjs
@@ -3,11 +3,10 @@
3
*/
4
5
import { spawn } from 'node:child_process'
6
-import path from 'node:path'
7
-import { fileURLToPath } from 'node:url'
8
9
-const __dirname = path.dirname(fileURLToPath(import.meta.url))
10
-const rootPath = path.join(__dirname, '..')
+import { getRootPath } from './utils/common.mjs'
+
+const rootPath = getRootPath(import.meta.url)
11
12
// Pass through to lint.mjs with --fix flag
13
const args = ['run', 'lint', '--fix', ...process.argv.slice(2)]
0 commit comments