moov2 / npm-msdeploy

This is a wrapper around Microsoft msdeploy that can be used in npm scripts
MIT License
1 stars 2 forks source link

Add relative path handling to source contentPath #1

Closed lawrencedine closed 5 years ago

lawrencedine commented 6 years ago

Added some extra code that handles the case when you request msdeploy from a source using the contentPath provider and supply a relative path.

If you attempt this with msdeploy itself it'll throw an error that it can't find the path so I'm intercepting that type of argument and checking if it's absolute with path then if it isn't I resolve it with path and replace the argument. This means you can now use relative paths as a contentPath source in msdeploy.