liferay / liferay-osgi-watch

6 stars 11 forks source link

Watch will not work if a dependency has a build path different from "/build" #18

Open robersongomes opened 6 years ago

robersongomes commented 6 years ago

In the project I'm working on, we just changed the build directory from build to build_gradle.

In gradle.build: buildDir = "build_gradle"

now I'm facing:

(node:20619) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): 
Error: ENOENT: no such file or directory, stat '/home/roberson/my-project-bundle/modules/material-design/components-soy-web/build/resources/main/META-INF/resources'

and I don't think we have a way to specify the path for dependencies:

https://github.com/liferay/liferay-osgi-watch/blob/8645b9a4205d9f6ff2988f41b608e3ece1662578/src/util/jsDeps.js#L20

travisrcory commented 6 years ago

@robersongomes @brunobasto I created a potential fix here: https://github.com/liferay/liferay-osgi-watch/pull/19 let me know if this would solve the issue we are having, thanks!