5

NPM doesn't follow directory symbolic links, nor directory junctions. Is there some configuration or way to force NPM to include also files from such directories?

Minimal reproducible example. Folder structure:

hello/
├── foo/
│   └── foo.js
└── bar/
    ├── package.json
    ├── bar.js
    └── foo/ (SYMLINK)

Two types of symlinks doesn't work:

bar> mklink /J foo ..\foo
bar> mklink /D foo ..\foo

The pack command

bar> npm pack

produces the tar package without foo/foo.js and no foo/ folder.

$ npm -v
# 8.0.0
tenbits
  • 7,568
  • 5
  • 34
  • 53

0 Answers0