Skip to content

Commit

Permalink
Fix async import of playroom config on Windows (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Mar 4, 2024
1 parent 90edcc8 commit f88a4e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-plums-develop.md
@@ -0,0 +1,5 @@
---
'playroom': patch
---

Fix async import of playroom config on Windows
3 changes: 2 additions & 1 deletion bin/cli.cjs
Expand Up @@ -4,6 +4,7 @@ const commandLineArgs = require('command-line-args');
const commandLineUsage = require('command-line-usage');
const findUp = require('find-up');
const lib = require('../lib');
const url = require('url');

const showUsage = () => {
console.log(
Expand Down Expand Up @@ -65,7 +66,7 @@ const showUsage = () => {
process.exit(1);
}

const { default: config } = await import(configPath);
const { default: config } = await import(url.pathToFileURL(configPath));

const playroom = lib({
cwd: path.dirname(configPath),
Expand Down

0 comments on commit f88a4e6

Please sign in to comment.