Repository navigation
Add npm publishing support with Node.js compatibility - #5
Merged
Merged
Conversation
Update package configuration to support publishing as a Node.js-compatible npm package: - Add build script using Bun bundler to transpile TypeScript to JavaScript targeting Node.js - Configure bin entry to point to compiled output (dist/index.js) instead of TypeScript source - Change main entry point from TypeScript (index.ts) to compiled JavaScript (dist/index.js) - Update files array to include only dist folder, README, and LICENSE in published package - Add prepublishOnly hook to run tests and build before publishing - Modify build script to replace Bun shebang with Node.js shebang for broader compatibility - Bump version to 0.1.1 This enables installation via npm while maintaining Bun-first development workflow. The package is now published and available at: https://www.npmjs.com/package/@russwyte/slabby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
Build Configuration
buildscript using Bun bundler targeting Node.js runtimePackage Configuration
mainfromindex.tsto./dist/index.jsbin.slabbyfrom./index.tstodist/index.jsfilesarray to include onlydist/folder (not source files)Benefits
npm install -g @russwyte/slabbyTest plan
npm install -g @russwyte/slabby