react-native-windows/packages
Jon Thysell 61bde52b38
Update to @react-native-community/cli@15.0.0-alpha.2 (#13951)
## Description

Update our dependencies on `@react-native-community/cli` to the correct `15.0.0-alpha.2`.

### Type of Change
- Bug fix (non-breaking change which fixes an issue)

### Why
We somehow missed this, and in causes problems when trying to create new apps, as RNW wants the wrong CLI version, which can cause the new Yarn to just give up on adding RNW to a template.

### What
See above.

## Screenshots
N/A

## Testing
Verified new apps work.

## Changelog
Should this change be included in the release notes: _yes_

Update our dependencies on `@react-native-community/cli` to the correct `15.0.0-alpha.2`.
2024-10-09 16:03:05 -07:00
..
@office-iss Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
@react-native Integrate RN Nightly 09/21 (1747f57c6) (#13924) 2024-10-07 11:49:41 -07:00
@react-native-windows Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
@rnw-scripts applying package updates ***NO_CI*** 2024-10-07 12:54:30 -07:00
debug-test applying package updates ***NO_CI*** 2024-10-08 12:26:38 -07:00
e2e-test-app Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
e2e-test-app-fabric Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
integration-test-app Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
playground Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
react-native-platform-override applying package updates ***NO_CI*** 2024-10-07 12:54:30 -07:00
react-native-windows-init applying package updates ***NO_CI*** 2024-10-07 12:54:30 -07:00
sample-app-fabric Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
sample-apps Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
sample-custom-component Update to @react-native-community/cli@15.0.0-alpha.2 (#13951) 2024-10-09 16:03:05 -07:00
README.md

README.md

This directory contains the npm packages hosted by the react-native-windows repo.

Scoped Packages

Several packages are organized into specific package scopes:

  • @office-iss: Office internal packages
  • @react-native: Copies of private upstream packages already using the @react-native scope. E.g. @react-native/tester for the RNTester package.
  • @react-native-windows: Internal packages used by react-native-windows itself. Versioned and published alongside RNW.
  • @rnw-scripts: Scripts for repository tooling. Published as part of the main branch.

Unscoped packages

Several packages do not belong to a scope for intentional (or historical) reasons. E.g. react-native-platform-override isn't RNW-specific and is unscoped. react-native-windows-init is run by name, and as such makes sense to be unscoped.

Adding a new scope

⚠ Caution: Failing to create and give access to an NPM organization will break CI.

New package scopes for related packages can be added by adding a new directory with the scope name and prefixing the packages name in package.json with the scope.

E.g. for packages/@example-scope/create-widgets/package.json:

{
  "name": "@example-scope/create-widgets",
  ...
}

After adding a scope directory, add the scope to the list of yarn workspaces in the repo-root package.json.

  "workspaces": {
    "packages": [
      ...
      "packages/@example-scope/*",
      ...
    ]
  },

Publishing a scoped package requires that the rnbot NPM user is an owner of an npm organization with the same name as the scope. You can check whether an organization exists by viewing npmjs.com/org/. See acoates for granting permissions to rnbot.