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.
Workflow Automation:
.github/workflows/npm-publish.yml
to automate publishing to npm upon creating a new release. This workflow includes steps for building, testing, and publishing the package usingpnpm
..github/workflows/test.yml
to run tests onpush
andpull_request
events for themain
branch. It uses a matrix strategy to test against Node.js versions 18.x and 20.x.Documentation Enhancements:
README.md
to include detailed installation instructions for global usage via npm or pnpm, and clarified usage instructions for both host and container environments. [1] [2]README.md
explaining the publishing process to npm using GitHub Actions.Package Configuration:
package.json
to includebin
entries for global commands (gcf-server
andgcf-client
), added keywords, and improved metadata (e.g., repository URL, bugs URL).prepublishOnly
script inpackage.json
to ensure the package is built, linted, and tested before publishing.Dependency Updates:
@types/jest
,@types/node
,prettier
,typescript
, etc.) inpnpm-lock.yaml
to their latest versions for improved compatibility and performance. [1] [2] [3]pnpm-lock.yaml
to reduce clutter and ensure a clean dependency tree. [1] [2]Build Improvements:
add-shebang.js
to prepend a shebang (#!/usr/bin/env node
) to the built scripts and make them executable for global npm installations.build
script inpackage.json
to include theadd-shebang.js
step after building with Webpack.