{"id":2622,"date":"2019-10-02T14:49:36","date_gmt":"2019-10-02T13:49:36","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=2622"},"modified":"2019-10-02T15:05:45","modified_gmt":"2019-10-02T14:05:45","slug":"npm-working-with-local-packages","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/npm-working-with-local-packages\/","title":{"rendered":"NPM Working with local packages (without build step)"},"content":{"rendered":"\n<p><a href=\"https:\/\/medium.com\/@the1mills\/how-to-test-your-npm-module-without-publishing-it-every-5-minutes-1c4cb4b369be\">https:\/\/medium.com\/@the1mills\/how-to-test-your-npm-module-without-publishing-it-every-5-minutes-1c4cb4b369be<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.npmjs.com\/cli\/link\">https:\/\/docs.npmjs.com\/cli\/link<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/medium.com\/@arnaudrinquin\/build-modular-application-with-npm-local-modules-dfc5ff047bcc\">https:\/\/medium.com\/@arnaudrinquin\/build-modular-application-with-npm-local-modules-dfc5ff047bcc<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/a\/17371987\">https:\/\/stackoverflow.com\/a\/17371987<\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd ~\/projects\/node-bloggy  # go into the dir of your main project\nnpm link ..\/node-redis     # link the dir of your dependency<\/pre>\n\n\n\n<p>Edit] As of NPM 2.0, you can declare local dependencies in package.json<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"dependencies\": {\n    \"bar\": \"file:..\/foo\/bar\"\n  }<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/medium.com\/@the1mills\/how-to-test-your-npm-module-without-publishing-it-every-5-minutes-1c4cb4b369be https:\/\/docs.npmjs.com\/cli\/link https:\/\/medium.com\/@arnaudrinquin\/build-modular-application-with-npm-local-modules-dfc5ff047bcc https:\/\/stackoverflow.com\/a\/17371987 Edit] As of NPM 2.0, you can declare local dependencies in package.json<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2622","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=2622"}],"version-history":[{"count":6,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2622\/revisions"}],"predecessor-version":[{"id":2628,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/2622\/revisions\/2628"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=2622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=2622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=2622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}