Skip to content

mosrainis/publish-node-modules-to-nexus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Publish node_modules to Nexus

Publishes all non-private packages from node_modules to a Nexus npm registry.

Requirements

  • Node.js
  • npm
  • Nexus npm registry access

Environment Variables

export NEXUS_REGISTRY="http://localhost:8081/repository/npm-internal/"
export NEXUS_AUTH_TOKEN="your-npm-token"

Usage

bash publish-node-modules-to-nexus.sh

Dry Run

DRY_RUN=true bash publish-node-modules-to-nexus.sh

Notes

  • Skips private packages
  • Skips already published versions
  • Uses npm pack + npm publish
  • Does not run lifecycle scripts

About

Publishes all non-private packages from `node_modules` to a Nexus npm registry.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages