Skip to content
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

Exclude NuGet package lock files from NPM packages #13916

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Oct 2, 2024

Description

Removes the packages.lock.json and packages.fabric.lock.json files from our published NPM packages, as customers who choose to build M.RN themselves don't necessarily choose the same dependencies as us (such as SourceLink).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

See above.

Resolves #13914

What

Added filters to the NPM package.json files to exclude these lock files.

Screenshots

N/A

Testing

Verified with npm pack that new packages do not contain these files.

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

@jonthysell jonthysell requested a review from a team as a code owner October 2, 2024 20:10
@jonthysell jonthysell merged commit bcb7c90 into microsoft:main Oct 3, 2024
59 checks passed
@jonthysell jonthysell deleted the removelocks branch October 3, 2024 21:42
jonthysell added a commit to jonthysell/react-native-windows that referenced this pull request Oct 3, 2024
…13916)

## Description

Removes the `packages.lock.json` and `packages.fabric.lock.json` files from our published NPM packages, as customers who choose to build M.RN themselves don't necessarily choose the same dependencies as us (such as SourceLink).

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

### Why
See above.

Resolves microsoft#13914

### What
Added filters to the NPM `package.json` files to exclude these lock files.

## Screenshots
N/A

## Testing
Verified with `npm pack` that new packages do not contain these files.

## Changelog
Should this change be included in the release notes: _no_
jonthysell added a commit that referenced this pull request Oct 4, 2024
…13923)

* [0.76] Exclude NuGet package lock files from NPM packages (#13916)

## Description

Removes the `packages.lock.json` and `packages.fabric.lock.json` files from our published NPM packages, as customers who choose to build M.RN themselves don't necessarily choose the same dependencies as us (such as SourceLink).

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

### Why
See above.

Resolves #13914

### What
Added filters to the NPM `package.json` files to exclude these lock files.

## Screenshots
N/A

## Testing
Verified with `npm pack` that new packages do not contain these files.

## Changelog
Should this change be included in the release notes: _no_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.76] NU1004: The package references have changed for native with New Arch enabled
3 participants