-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: added pacote to resolve template name instead of arborist workaround #1287
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
Quality Gate passedIssues Measures |
if (!addResult) throw new Error('Unable to resolve the name of the added package. It was most probably not added to node_modules successfully'); | ||
|
||
const packageName = addResult[0].name; | ||
const manifest = await pacote.manifest(this.templateName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here how errors are handled? If they are not pls. add conditions for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls. remove empty file if its not required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this empty file also
const generatorReactSdk = require('@asyncapi/generator-react-sdk'); | ||
const jsxRuntime = require('react/cjs/react-jsx-runtime.production.min'); | ||
var generatorReactSdk = require('@asyncapi/generator-react-sdk'); | ||
var jsxRuntime = require('C:/Users/shash/Desktop/generator/node_modules/react/cjs/react-jsx-runtime.production.min.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the file path is compatible to windows OS, if someone is using Linux or Mac. Won't it fail to execute?
@ShashwatPS do you plan to followup with initial review from @DhairyaMajmudar ? |
no more reaction from contributor closing @ShashwatPS feel free to open a new PR if you want to continue. Just make sure to take into account feedback from @DhairyaMajmudar |
Description
pacote
dependency.arbortis
mock and added a new one forpacote
.generator.js
as suggested.Related issue(s)