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

⬆️ 📌 ➕ Fix the build process #1199

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

shankari
Copy link
Contributor

@shankari shankari commented Feb 20, 2025

This fixes several issues from e-mission/e-mission-docs#1113

This was originally added in 4566cc0
and seems to work fine for the `serve` case

But it doesn't work for the `cordovabuild` case
e-mission/e-mission-docs#1113 (comment)
e-mission/e-mission-docs#1113 (comment)

Adding it, although I still don't know why the `serve` case did not need it
- plugin version change: 157afec
- module addition: 5df5253
In the previous commit, 1089679
we copied over the cordovabuild package-lock from the internal build of NREL
OpenPATH.

However, when trying to get the internal build to complete, for this release, I
moved out the existing package-lock and regenerated, as an attempt to fix
e-mission/e-mission-docs#1113 (comment)

After adding the new module (in b9e9a37)
all of the dependency versions also changed. Since `package-lock.json` is
supposed to represent the checked in "time travel" version of the modules
actually used, we update this to reflect the current module versions used as
well.
In #1193, I added
`module:@react-native/babel-preset`

That caused the unit tests to work, but caused a WSOD with the release build
e-mission/e-mission-docs#1113 (comment)

So we exclude the preset for production builds

I tried to add it only to dev builds, but the `process.env.ENV` is not set correctly
so I had to switch the condition
e-mission/e-mission-docs#1113 (comment)

Testing done:

```
$ npm run test

Test Suites: 27 passed, 27 total
Tests:       182 passed, 182 total
Snapshots:   0 total
Time:        10.537 s
Ran all test suites.
```
@shankari shankari force-pushed the force_package_dependencies_fix_tests branch from 4b7ca52 to 7429fff Compare February 20, 2025 02:31
…into force_package_dependencies_fix_tests
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.76%. Comparing base (f31f542) to head (39b2e2e).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1199   +/-   ##
=======================================
  Coverage   29.76%   29.76%           
=======================================
  Files         123      123           
  Lines        4959     4959           
  Branches     1143     1096   -47     
=======================================
  Hits         1476     1476           
  Misses       3483     3483           
Flag Coverage Δ
unit 29.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@shankari shankari merged commit 6fb0bd8 into master Feb 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Tasks completed
Development

Successfully merging this pull request may close these issues.

1 participant