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

Config path not included when using deno install --config but added a default name instead #25665

Closed
sant123 opened this issue Sep 16, 2024 · 3 comments
Labels
bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc

Comments

@sant123
Copy link

sant123 commented Sep 16, 2024

From #17834 (comment)

Version: Deno 1.46.3

Let suppose my project name is cat, when running the following script:

deno install -g -c /some/absolute/path/to/deno.json mod.ts

The generated installed file looks like this:

#!/bin/sh
# generated by deno install
exec deno run --config /home/my_user/.deno/bin/.cat.deno.json 'file:///path/to/my/project/mod.ts' "$@"

Basically the path provided in --config/-c is not taken into account. Is this expected? Should I make a copy of my deno.json into the deno bin folder named .cat.deno.json?

Thanks

@lucacasonato lucacasonato added bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc labels Sep 17, 2024
@harshsrivastav8055
Copy link

Hello , Can I work on this issue

@sant123
Copy link
Author

sant123 commented Nov 14, 2024

Gentle bump on this 🙏🏼

@sant123
Copy link
Author

sant123 commented Feb 4, 2025

Currently setting --config works fine for local installed modules. It just copies the Deno config file into the install directory with a dot at the beginning: .{module-name}.deno.json.

References from:

#27745
#17571
#17573
#17572
#17855

@sant123 sant123 closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc
Projects
None yet
Development

No branches or pull requests

3 participants