When using jspm
, I can easily install npm
packages by running:
jspm install npm:<pkg-name>
. This allows me to use the package in development, like so: import myPackage from 'myPackage';
.
If the package.json
file of the npm
package includes dependencies, ideally they should be installed along with the package. However, I've noticed that running the command does not create a node_modules
folder within the package directory. Instead, I have to manually run npm install
in the folder to fetch these dependencies. This extra step hinders my ability to reference other files and dependencies within the package without manual intervention. Is there a way to streamline this process through jspm
?