Generate package.json for local package
pkg-local targetPath
- Original state
[pakage.json]
{
"name": "example",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin":{"abc":"dist/abc.js"}
}
- Execute command pkg-local dist
[dist/package.json]
{
"name": "example",
"version": "1.0.0",
"main": "index.js",
"types": "index.d.ts",
"bin":{"abc":"abc.js"}
}
- You can install packages that do not include node_modules
npm install ../example/dist