Skip to content

Commit

Permalink
fix: exclude android unit tests from being published to npm (#793)
Browse files Browse the repository at this point in the history
## 📜 Description

Exclude `tests` folder on `android` on `npm`.

## 💡 Motivation and Context

The original size of this folder is about ~7kb and may be bigger in the
future:

<img width="794" alt="image"
src="https://github.com/user-attachments/assets/c9b26db7-b191-4afd-88a9-c117c09e3be8"
/>

But in a reality those files are not used when devs add the package to
their projects. So for sake of the optimization let's exclude those
files from publishing to npm 🤞

## 📢 Changelog

<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->

### JS

- exclude `android/src/test` path;

## 🤔 How Has This Been Tested?

There is no way to test that everything will work, but `size-diff` shows
that folder was excluded (because size has been decreased).

## 📸 Screenshots (if appropriate):

<img width="921" alt="image"
src="https://github.com/user-attachments/assets/1d162529-c016-4f59-b5d3-3eefe6dd824b"
/>

## 📝 Checklist

- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
  • Loading branch information
kirillzyusko authored Jan 31, 2025
1 parent 5388d38 commit 50d630c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"jest",
"!lib/typescript/example",
"!android/build",
"!android/src/test",
"!android/.gradle",
"!android/gradle",
"!android/gradlew",
Expand Down

0 comments on commit 50d630c

Please sign in to comment.