Home > Enterprise >  How to import a typescript module before it is officially added to npm or yarn
How to import a typescript module before it is officially added to npm or yarn

Time:07-08

I am new to typescript as well as js. trying to import a module that is being developed, so not yet added to npm.

how do import it to my code?

this is the repo: adding via yarn doesnt work, how or where do i place this code to be able to import into my code?

https://github.com/xchainjs/xchainjs-lib/tree/549-add-xchainjs-swap-package/packages/xchain-midgard

CodePudding user response:

"dependencies" : {
  "name1" : "git://github.com/user/project.git#commit-ish",
  "name2" : "git://github.com/user/project.git#commit-ish"
}

Try this.

  • Related