-
Notifications
You must be signed in to change notification settings - Fork 66
Use path.join to form windows-compatible path #122
Conversation
It also looks like this check won't work on Windows: zapier-platform-cli/src/utils/build.js Line 116 in 6156a43
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Seems simple and straightforward enough. 👍
@BrunoBernardino what do you think about zapier-platform-cli/src/utils/build.js Line 116 in 6156a43
|
I think that makes sense! |
@@ -113,7 +113,7 @@ const forceIncludeDumbPath = (filePath/*, smartPaths*/) => { | |||
// we include smartPaths just incase you want to check the inclusion of some library | |||
return ( | |||
(filePath.endsWith('package.json') || filePath.endsWith('definition.json')) | |||
|| filePath.match(/aws-sdk\/apis\/.*\.json/) | |||
|| filePath.match(path.sep === '\\' ? /aws-sdk\\apis\\.*\.json/ : /aws-sdk\/apis\/.*\.json/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BrunoBernardino since Travis doesn't support Windows (yet) it's hard to add a test, but I've tested this logic in Parallels:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good enough to me!
Not sure if this causes:
https://secure.helpscout.net/conversation/415601400/628033/?folderId=20363#thread-1123745601
But still good practice not to use os-specific path separator.