You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to include local node package in custom API

Received Response
23
Views
5
Comments
edited Sep 27, 2018 11:58AM in Digital Assistant & Mobile 5 comments

Summary

Need to add a local node package to custom API

Content

Hi All,

I developer a custom API for AMCe and that one is using a local node package that contains some utilities. How do I include it in my custom API so it is deployed properly using omce-deploy ?

This is the situation: Custom API depends on my utilities package.

Utilities package's package.json contains :  "name": "eproseed-js-utils", 

When using it locally, it can refer to it in my API's package.json as follows:

"dependencies": {
    "eproseed-js-utils": "file:eproseed-js-utils"}

However, when using omce-deploy, this (obviously) does not work. Runtime cannot find my utils package. I am not "willing" to install my package in a 'global' or 'private' npm repo. Is there any way to make this work? 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!