-
Notifications
You must be signed in to change notification settings - Fork 16
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
Clients from dist #186
Clients from dist #186
Conversation
@@ -16,6 +15,7 @@ import { | |||
import { initOperationSdk } from '@yandex-cloud/nodejs-sdk/dist/sdk/operation'; | |||
|
|||
import { readFile } from 'fs/promises'; | |||
import { ExpirationConfig_ExpirationPolicy } from '@yandex-cloud/nodejs-sdk/dist/generated/yandex/cloud/ai/common/common'; |
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.
Выглядит не очень. Надо как-то научиться реэкспортить все сущности связанные с сервисом в index модуль сервиса.
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.
да, кажется можно допилить скрипт, чтобы он затем ходил рекурсивно по всем файлам из /src/clients/service-name/index.ts и добавлял экспорты в /src/clients/service-name/index.ts - коллизии имен можно будет решить через уже имеющийся export-alias.json
я бы в другом пр это исследовал, а пока что можно сделать так - это выглядит логично и очень дешево
@@ -11,6 +11,8 @@ | |||
"license": "ISC", | |||
"dependencies": { | |||
"@yandex-cloud/nodejs-sdk": "../", | |||
"dotenv": "^16.4.7", | |||
"ts-node": "^10.9.2", |
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.
Не вижу где используются и тот и другой...
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.
https://github.com/yandex-cloud/nodejs-sdk/blob/alpha/examples/assistant-with-search-index.ts#L2
ts-node для запуска самих примеров
1d060cf
to
b57406e
Compare
4dc48a7
to
00a7a2d
Compare
🎉 This PR is included in version 3.0.0-alpha.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.