Skip to content

ian/flatpkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatpkg - ship flat NPM packages.

Want to publish specific directories as a flat NPM package? Then this is the tool for you.

TLDR; There's no way to do this using only npm. A great summary of all the trials and tribulations here: https://stackoverflow.com/questions/38935176/how-to-npm-publish-specific-folder-but-as-package-root

Usage

From the root directory of your project, run npx flatpkg dir1 dir2 ....

This will automatically copy package.json, and any dirs specified, to a temporary ./.pkg directory and npm publish.

About

Publish subdirectories as NPM packages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published