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(bindings): remove dist from gitignore to expose build project #1115

Merged

Conversation

MCozhusheck
Copy link
Contributor

@MCozhusheck MCozhusheck commented Aug 9, 2024

Description

Last PR broke last @tari-project/typescript-bindings version. package.json points entrypoint as ./dist/index.js but since CI doesn't builds project every run (as it is costly) the package doesn't have dist folder and effectively we don't export anything.

Motivation and Context

Fix package for other projects like tari.js which relies on typescript-bindings.

How Has This Been Tested?

Imported locally build typescript-bindings with dist folder present.
Also imported the tari.js to the Tari Universe and to the faucet tapplet to check if project depending also on tari.js would work.

What process can a PR reviewer use to test or verify this change?

Eg. change typescript-bindings dependency for tari.js to local (in my case it's "@tari-project/typescript-bindings": "file:../tari-dan/bindings",) and check if it's working

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

@MCozhusheck MCozhusheck marked this pull request as ready for review August 9, 2024 11:19
@sdbondi sdbondi changed the title fix(bindings): Remove dist from gitignore to expose build project fix(bindings): remove dist from gitignore to expose build project Aug 9, 2024
@MCozhusheck MCozhusheck requested a review from a team as a code owner August 9, 2024 11:46
sdbondi
sdbondi previously approved these changes Aug 9, 2024
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

I think you need to bump the version to get the package to re-release

Copy link

github-actions bot commented Aug 9, 2024

Test Results (CI)

556 tests  ±0   556 ✅ ±0   1h 45m 49s ⏱️ + 12m 34s
 65 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit bfb89d2. ± Comparison against base commit 3db6653.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi disabled auto-merge August 12, 2024 05:53
@sdbondi sdbondi merged commit 7b914ce into tari-project:development Aug 12, 2024
12 checks passed
@MCozhusheck MCozhusheck deleted the fix/bindings-export-dist branch August 12, 2024 07:54
github-merge-queue bot pushed a commit to tari-project/tari.js that referenced this pull request Aug 12, 2024
Description
---
Bump dependency
[typescript-bindings](https://github.com/tari-project/tari-dan/tree/development/bindings)
to the newest version with fixed build.

Motivation and Context
---
This is a part of larger process of fixing build for all
javascript/typescript packages (check this
[PR](tari-project/tari-dan#1115) in
typescript-bindings repo).

How Has This Been Tested?
---
Changed locally tari.js dependency for tari universe and one of the
tapplet. Both applications were working as expected with those changes.

What process can a PR reviewer use to test or verify this change?
---
Same as above.

Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
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.

3 participants