You can package an NPM module or Capacitor/Cordova plugin in your repository and reference it within your application.
To do so, you must package it as a tarball and reference the file path within your
For example, your project may have the following structure:
│ └── my-custom-plugin
│ ├── package.json
│ └── src
From the root of your project, your module is located at
To package your plugin into a tarball, run
npm pack inside the plugin's project directory.
$ cd custom-plugins/my-custom-plugin
$ npm pack
This will create
You can then reference this dependency in your package.json and utilize it in your app: