Skip to content

Conversation

@satya164
Copy link
Member

@satya164 satya164 commented Dec 9, 2025

create-react-native-library.mp4

@satya164 satya164 force-pushed the @satya164/pigment branch 5 times, most recently from 812b37b to 4efbabd Compare December 10, 2025 00:03
@satya164 satya164 force-pushed the @satya164/pigment branch 2 times, most recently from 575ca69 to 54e9750 Compare December 10, 2025 00:47
@satya164 satya164 requested a review from Copilot December 10, 2025 00:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the CLI prompt system by replacing prompts and yargs libraries with pigment, streamlining the codebase and improving the prompting implementation.

Key Changes

  • Replaced prompts and yargs dependencies with pigment for CLI interactions
  • Consolidated prompt configuration from input.ts into a new prompt.ts file using pigment's declarative API
  • Updated all code references from 'none' to undefined for the example app when not creating one

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Added pigment and its dependencies (ansi-escapes, ansi-styles, wrap-ansi, environment, string-width); removed prompts and yargs
packages/create-react-native-library/package.json Updated dependencies to use pigment instead of prompts and yargs; removed corresponding @types packages
packages/create-react-native-library/src/prompt.ts New file with pigment-based prompt configuration replacing the old input.ts logic
packages/create-react-native-library/src/utils/prompt.ts Removed (old prompts wrapper)
packages/create-react-native-library/src/input.ts Removed and replaced by prompt.ts
packages/create-react-native-library/src/utils/createMetadata.ts Extracted from input.ts as a standalone utility
packages/create-react-native-library/src/index.ts Updated to use new prompt API and simplified error handling
packages/create-react-native-library/src/template.ts Changed example condition from !== 'none' to != null
packages/create-react-native-library/src/inform.ts Added handling for undefined example case
packages/create-react-native-library/src/exampleApp/generateExampleApp.ts Added case for undefined/null example
packages/create-react-native-library/src/utils/configureTools.ts Alphabetized tool order
packages/react-native-builder-bob/vitest.config.mjs Improved test exclusion pattern
eslint.config.mjs Added doc_build to ignored paths
.gitignore Added yalc entries
.github/workflows/build-templates.yml Split tools argument into multiple --tools flags

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 15 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 15 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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