-
Notifications
You must be signed in to change notification settings - Fork 619
feat(endpoint): add wire protocol filtering option to copy models script #4068
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
Conversation
228a322
to
5328d59
Compare
try { | ||
const fileContent = (await fsPromises.readFile(smithyModelsFile)).toString(); | ||
const model = require(absolutePath); |
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.
switching to require since this is a JSON file
await spawnProcess(join(__dirname, "..", "..", "node_modules", ".bin", "prettier"), [ | ||
"--write", | ||
`${OUTPUT_DIR}/*.json`, | ||
]); |
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.
removing prettier step to save time. JSON.stringify(, null, 2)
is good enough.
try { | ||
const fileContent = (await fsPromises.readFile(smithyModelsFile)).toString(); | ||
const model = require(absolutePath); | ||
const sdkId = getSdkId(model).toLowerCase().replace(/\s/g, "-"); |
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.
confirmed this is the same set of filenames as before and does not create any new files
test: yarn copy-models -m ...
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Issue
internal JS-3670
Description
yarn copy-models
yarn copy-models -m ../_models -p restXml