1

I've had to fork a package to fix a couple of issues it had and while npm install seems to complete and the package ends up in node_modules

enter image description here

I get build errors (could not resolve package) and red sqigglies in my typescript files:

enter image description here

I installed it like this:

npm install mjharper84/adal-angular4 --save

from

https://github.com/mjharper84/adal-angular4

My package json looks like:

  "adal-angular4": "github:mjharper84/adal-angular4"

I have heard some prepublish script may need to run to build the package properly but I'm not sure how to implement it and can't find any examples. Any help appreciated

1 Answer 1

1

Your mjharper84/adal-angular4 package.json main script is wrong, change it to: "main": "dist/index.js"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.