Skip to content

Fix load_config on Windows - #399

Merged
Rich-Harris merged 3 commits into
masterfrom
issue-396
Mar 2, 2021
Merged

Fix load_config on Windows#399
Rich-Harris merged 3 commits into
masterfrom
issue-396

Conversation

@GrygrFlzr

Copy link
Copy Markdown
Member

@GrygrFlzr GrygrFlzr changed the title Issue 396 Fix load_config on Windows Feb 21, 2021
@@ -0,0 +1,38 @@
// import { mkdtempSync, writeFileSync, readdirSync, mkdirSync } from 'fs';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove the commented out lines?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, copy pasted that from the existing adapt test:

// import { mkdtempSync, writeFileSync, readdirSync, mkdirSync } from 'fs';
// import { tmpdir } from 'os';

I'll remove the one in adapt in #398 instead, since it modifies that file anyway.

const __filename = fileURLToPath(import.meta.url);
const __dirname = join(__filename, '..');

const suite = uvu.suite('Builder');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my only question would be whether this is the best way to set things up. Perhaps @Rich-Harris or @lukeed would know best

@Rich-Harris
Rich-Harris merged commit 647995d into master Mar 2, 2021
@Rich-Harris
Rich-Harris deleted the issue-396 branch March 2, 2021 03:24
@Rich-Harris

Copy link
Copy Markdown
Member

thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

load_config fails in windows

4 participants