Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
/symlink-modulesPublic archive

Symlink module dependencies to ensure a consistent path to access module-files

NotificationsYou must be signed in to change notification settings

ad-si/symlink-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Since npm version 3.0.0 npm tries to install the dependency treemaximally flat. (https://github.com/npm/npm/releases/tag/v3.0.0)

This means it is not possible to know in advancewhere the module directory will be on the disk.Therefore statically loading files from a module directorycan not be safely used anymore.

Symlink-modules let's you symlink your dependenciesto a consistent location so that the files can be loaded from there.

Installation

npm install --save symlink-modules

Usage

Command Line

symlink-modules<dependency-1><dependency-2>

This will create alinked_modules directoryand symlink the specified dependencies.

Javascript

constsymlinkModules=require('symlink-modules')symlinkModules('dependency-1')// orsymlinkModules(['dependency-2','dependency-3'],options)

Possible options:

{linksDirectory:'<path>'// default: linked_modules}

About

Symlink module dependencies to ensure a consistent path to access module-files

Topics

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp