Skip to content

Make this generator work with require.resolve#179

Merged
aeschli merged 1 commit intomicrosoft:masterfrom
TomasHubelbauer:patch-1
Jul 30, 2019
Merged

Make this generator work with require.resolve#179
aeschli merged 1 commit intomicrosoft:masterfrom
TomasHubelbauer:patch-1

Conversation

@TomasHubelbauer
Copy link
Contributor

I followed Integrating Yeoman to learn how to run a generator programatically and noticed the code example there doesn't work with the VS Code generator. See yeoman/environment#116.

I worked around this by using path.join(__dirname, 'node_modules/generator-code/generators/app/index.js'), but I think there is no harm down in making this compatible with the guide.

I believe this should do it.

I followed [Integrating Yeoman](https://yeoman.io/authoring/integrating-yeoman.html) to learn how to run a generator programatically and noticed the code example there doesn't work with the VS Code generator. See yeoman/environment#116.

I worked around this by using `path.join(__dirname, 'node_modules/generator-code/generators/app/index.js')`, but I think there is no harm down in making this compatible with the guide.

I believe this should do it.
@aeschli aeschli merged commit 6afebc1 into microsoft:master Jul 30, 2019
@aeschli
Copy link
Collaborator

aeschli commented Jul 30, 2019

Thanks @TomasHubelbauer

@aeschli aeschli added this to the July 2019 milestone Jul 30, 2019
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.

2 participants