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 2aeef7e commit e733dabCopy full SHA for e733dab
snapshot.js
@@ -1,7 +1,12 @@
1
import { spawnSync } from 'child_process'
2
+import path from 'path'
3
-const bin = new URL('./outfile.cjs', import.meta.url).pathname
4
-const playgroundDir = new URL('./playground/', import.meta.url).pathname
+const __dirname = path
5
+ .dirname(new URL(import.meta.url).pathname)
6
+ .substring(process.platform === 'win32' ? 1 : 0)
7
+
8
+const bin = path.resolve(__dirname, './outfile.cjs')
9
+const playgroundDir = path.resolve(__dirname, './playground/')
10
11
function createProjectWithFeatureFlags(flags) {
12
const projectName = flags.join('-')
0 commit comments