File: setup-symlinks.js

package info (click to toggle)
node-browser-resolve 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 716 kB
  • sloc: javascript: 927; makefile: 15; sh: 3
file content (10 lines) | stat: -rw-r--r-- 308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
var fs = require('fs');

try {
  fs.mkdirSync(__dirname + '/../test/fixtures/node_modules/linker/node_modules');
} catch (e) {}
process.chdir(__dirname + '/../test/fixtures/node_modules/linker/node_modules');
try {
  fs.unlinkSync('linked');
} catch (e) {}
fs.symlinkSync('../../../linked', 'linked', 'dir');