I am trying to build a plugin around a native iOS/Android SDK. I would like to know to finally generate a my-plugin.tgz file so that I can use it locally without publishing it.
I have done this with Nativescript 6.x, but I would like to know how to do this with the new workflow in Nativescript 7.x.
After running the
build command from
npm start, you will get a
dist directory with a structure like this
dist |- packages |- your-plugin-name
cd into the
packages directory and run
npm pack your-plugin-name and you should get the .tgz file in the same directory which you can use in locally
Answered By – William Juan
Answer Checked By – Pedro (AngularFixing Volunteer)