Skip to content

refactor: update SDK setup to use config and improve instructions #94

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tech-sushant
Copy link
Contributor

This pull request updates the BrowserStack SDK setup process by replacing environment variable usage with a centralized configuration object. The changes improve maintainability and make it easier to manage credentials and settings across the SDK. Below are the most important changes grouped by theme:

Refactoring to use centralized configuration:

  • Updated src/tools/sdk-utils/commands.ts to import config from ../../config.js and replaced process.env.BROWSERSTACK_USERNAME and process.env.BROWSERSTACK_ACCESS_KEY with config.browserstackUsername and config.browserstackAccessKey in SDK setup commands. [1] [2] [3]
  • Modified src/tools/sdk-utils/constants.ts to use config.browserstackUsername and config.browserstackAccessKey for defining credentials in example configurations.

Updates to instructions:

  • Revised src/tools/sdk-utils/instructions.ts to include clearer placeholders for project and build names, replacing hardcoded values with sample values and adding comments for customization.

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