Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to watch for file changes of upper folders? #465

Closed
deathemperor opened this issue May 18, 2023 · 3 comments
Closed

Is it possible to watch for file changes of upper folders? #465

deathemperor opened this issue May 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@deathemperor
Copy link

folder structure

	foo/
		/bar
			/src
				serverless.yml

serverless-offline is run at foo/bar/src/ but sources using files in foo/bar. Is there any way to config watch?

@deathemperor deathemperor added the bug Something isn't working label May 18, 2023
@deathemperor
Copy link
Author

can be achieved using chokidar

@tgdn
Copy link

tgdn commented Oct 23, 2023

Would you mind sharing an example of your configuration?
Thanks @deathemperor!

@deathemperor
Copy link
Author

Would you mind sharing an example of your configuration? Thanks @deathemperor!

sure! the config I use:

{
  esbuild: {
    watch: {
      ignore: [".esbuild", "dist", "node_modules", ".build", ".git"],
      chokidar: {
        cwd: "../../",
        paths: ["./**/**/*.(ts|graphql|html|xlsx)"],
      },
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants