Skip to content

visgotti/generate-package-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple lib for generating a dynamic package.json based on recursively stepping through source files and finding imports.

Currently setup to work for nx projects and calling generateNx somewhere in the build process.

const { generateNx } = require('generate-package-json');

// if you omit the last param it will not save anywhere
const packageJsonObject = generateNx('./path/to/nx/app', './path/to/nx/root', './optional/save/to/build/folder/path');

About

Library for generating a dynamic package.json based on recursively stepping through source files and finding imports.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published