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

feat: publish package #10

Merged
merged 10 commits into from
Oct 25, 2024
Merged

feat: publish package #10

merged 10 commits into from
Oct 25, 2024

Conversation

outerlook
Copy link
Collaborator

@outerlook outerlook commented Oct 25, 2024

Description

  • include build script with esbuild
  • fix package json to correctly infer types
  • minor adjustments for better UX

Related Problem

How Has This Been Tested?

all tests passed, and created https://github.com/truflation/tsn-sdk-demo to test it

Added descriptive messages for stream deployment and method execution to enhance readability. Refactored walletProvider to signerInfo for improved consistency and clarity in the client configuration. Additionally, corrected the hex conversion method for Ethereum addresses.
Introduce esbuild script for building both Node.js and browser targets, including configurations for CommonJS and ES modules. Configure TypeScript settings to generate type definitions and streamline package.json for distribution.
Renamed package to "@truflation/tsn-sdk-js" and reset its version to "0.0.0". Updated dependencies and devDependencies to use caret (^) versions where applicable, moved "@kwilteam/kwil-js" to dependencies with an updated version, and added new devDependencies: "@types/node" and "glob".
Ignored *.tsbuildinfo and *.tsbuildinfo.json files to prevent tracking of TypeScript incremental build information. This helps keep the repository clean and ensures that build artifacts are not committed.
Simplify and reorder the exports field in package.json for better maintainability. Remove redundant createPackageJson function and consolidate file copying logic in the build process.
Added a description for the Truflation Stream Network SDK for JavaScript. Enhanced the package's keywords to improve discoverability and relevance.
Simplify the build process by removing separate builds for each environment and consolidate export fields in package.json. This change improves maintainability and reduces redundancy in the build configurations.
@outerlook outerlook self-assigned this Oct 25, 2024
@outerlook outerlook requested a review from MicBun October 25, 2024 18:29
@outerlook outerlook marked this pull request as ready for review October 25, 2024 18:29
@MicBun MicBun merged commit 9273963 into main Oct 25, 2024
4 checks passed
@MicBun MicBun deleted the feat/build branch October 25, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem(tsn-sdk-ts): package not published
2 participants