Skip to content
This repository was archived by the owner on Jun 5, 2021. It is now read-only.

Add GENDIR directory to custom resolvers#53

Draft
josefermin wants to merge 2 commits intofwouts:masterfrom
josefermin:master
Draft

Add GENDIR directory to custom resolvers#53
josefermin wants to merge 2 commits intofwouts:masterfrom
josefermin:master

Conversation

@josefermin
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Apr 23, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Owner

@fwouts fwouts left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!


const base = path.join(process.cwd(), sourceDir)
const gendir = path.join(base, process.env["GENDIR"], '..', 'bin')
const gendir2 = path.join(base, process.env["GENDIR"])
Copy link
Owner

Choose a reason for hiding this comment

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

I wonder if we should instead simply update gendir by removing '..', 'bin'?

If we indeed need both, then it would be worth renaming each to better represent what it's used for, and add a comment with an example where it would be necessary.

Bonus points if you add an example running in CI that highlights the need for this 😅

Currently devserver is not working becuase the env var GENDIR is not passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants