Unverified Commit 16011fe8 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Fix build-native.ts on Windows (#81673)

parent 465c2218
......@@ -2,6 +2,7 @@
import { promises as fs } from 'node:fs'
import path from 'node:path'
import url from 'node:url'
import execa from 'execa'
import { NEXT_DIR, logCommand, execFn } from './pack-util'
......@@ -31,7 +32,7 @@ export default async function buildNative(
}
// Check if this file is being run directly
if (import.meta.url === `file://${process.argv[1]}`) {
if (import.meta.url === url.pathToFileURL(process.argv[1]).toString()) {
buildNative(process.argv.slice(2)).catch((err) => {
console.error(err)
process.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment