cleanup the generated files when creating the package #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request restructures the build output directories for CLI binaries and npm packages, and updates the TypeScript build configuration to better control which files are included or excluded. The main goal is to organize build artifacts under a new
pkg/cli
directory instead ofdist/bin
, and to ensure the TypeScript build only includes the intended source files.Build output directory changes:
dist/bin
topkg/cli
in bothbuild-bins.sh
andbuild-npm-tar.sh
, ensuring all build artifacts are consolidated inpkg/cli
. [1] [2] [3]TypeScript build configuration:
tsconfig.build.json
to only includesrc/index.ts
and files undersrc/sdk
, while excluding thecli
directory, refining what gets compiled in the build process.Build process improvements:
build-pkg.sh
to ensure thedist/bin
directory exists before copying files, preventing potential errors if the directory is missing.