Follow links found during builds

Change-Type: patch
This commit is contained in:
Tim Perry 2018-07-23 13:56:08 +02:00
parent bd00773f1b
commit e350f9b335
2 changed files with 2 additions and 3 deletions

View File

@ -110,7 +110,7 @@ exports.tarDirectory = tarDirectory = (dir) ->
streamToPromise = require('stream-to-promise')
getFiles = ->
streamToPromise(klaw(dir))
streamToPromise(klaw(dir, { followLinks: true }))
.filter((item) -> not item.stats.isDirectory())
.map((item) -> item.path)

View File

@ -121,7 +121,7 @@
"inquirer": "^3.1.1",
"is-root": "^1.0.0",
"js-yaml": "^3.10.0",
"klaw": "^1.3.1",
"klaw": "github:resin-io-modules/node-klaw#follow-symlinks",
"lodash": "^4.17.4",
"mixpanel": "^0.4.0",
"mkdirp": "^0.5.1",
@ -142,7 +142,6 @@
"resin-config-json": "^1.0.0",
"resin-device-config": "^4.0.0",
"resin-device-init": "^4.0.0",
"resin-docker-build": "^0.6.2",
"resin-doodles": "0.0.1",
"resin-image-fs": "^5.0.2",
"resin-image-manager": "^5.0.0",