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

How to exclude a folder from copying over to /deno_dist? #21

Closed
yandeu opened this issue Jan 31, 2021 · 3 comments
Closed

How to exclude a folder from copying over to /deno_dist? #21

yandeu opened this issue Jan 31, 2021 · 3 comments

Comments

@yandeu
Copy link
Collaborator

yandeu commented Jan 31, 2021

Hi @garronej,

I took a look at the package.json settings but I could not exclude an entire folder from being copied over to deno_dist.

In my project, I would like to exclude the folders /src/bundles and /src/dev from getting copied over to /deno_dist.
Is it possible to configure this with denoify? Or should I use another approach instead?

Thanks :)

@garronej
Copy link
Owner

garronej commented Feb 1, 2021

Hi @yandeu, I am only seeing your issue now, let me have a look...

@garronej
Copy link
Owner

garronej commented Feb 1, 2021

I understand the usecase. Unfortunately, as for now, there is no way to exclude a whole parent directory of src/ from being transpiled by Denoify.
You can, however, add // @denoify-ignore at the top of the files you dont want to be copied over deno_dist...
But maybe it's not an ideal solution is it?

EDIT: Considering you have a total of 6 .ts files in these folder I think it's manageable what do you think?

@yandeu
Copy link
Collaborator Author

yandeu commented Feb 1, 2021

Thanks! I thought I just keep entering the wrong settings.


No, I just use rimraf then 😃

"scripts": {
  "denoify": "rimraf deno_lib && denoify && rimraf deno_lib/bundles deno_lib/dev"
}

@yandeu yandeu closed this as completed Feb 1, 2021
gitbook-com bot pushed a commit that referenced this issue Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants