I have already created an npm repository in Nexus3. According to my scenario, I have a build command to run then it is created as a dist folder. Under this folder, I have .tgz
file. I need to upload this .tgz
file to Nexus. I set up my package.json
file as follows,
"publishConfig": {
"registry": "http://localhost:8081/repository/npm-private/"
},
"bin": "./dist/apps/theme-builder-app/my-theme-builder-0.0.3.tgz"
my .npmrc
file is also working correctly.
Then I ran the command npm publish.
After that whole project was uploaded into the nexus except my files :(
Then I configured the .npmignore
as follows,
*
!./dist/apps/theme-builder-app/bst-theme-builder-0.0.3.tgz
!*/bst-theme-builder-0.0.3.tgz
That also not working.
I have attached my folder structure below, and I figured out which file I want to upload to the nexus3.