feat: without nodemodules
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-12-26 17:34:17 +01:00
parent d352ace1ea
commit 63fbecd194
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -112,10 +112,12 @@ impl NodeService {
}
pub async fn build_base(&self) -> eyre::Result<Container> {
let src = self
.client
.host()
.directory(self.get_src().to_string_lossy());
let src = self.client.host().directory_opts(
self.get_src().to_string_lossy(),
HostDirectoryOptsBuilder::default()
.exclude(vec!["node_modules/", ".git/", ".cuddle/"])
.build()?,
);
let pkg_files = self.client.host().directory_opts(
self.get_src().to_string_lossy(),
HostDirectoryOptsBuilder::default()