1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/tools
Nathan Whitaker 124b28ab63
fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639)
Fixes #25342.

Still not sure on the exact user agent to set (should it include
`node`?).

After this PR, here's the state of running some `create-*` packages
(just ones I could think of off the top of my head):

| package                  | prints/runs/suggests deno install | notes |
| ---------------- | ------------- | ------ |
| `create-next-app` |  | falls back to npm, needs a PR
([code](c32e280209/packages/create-next-app/helpers/get-pkg-manager.ts (L3)))
| `sv create` |  | uses `package-manager-detector`, needs a PR
([code](https://github.com/antfu-collective/package-manager-detector/tree/main))
| `create-qwik` |  | runs `deno install` but suggests `deno start`
which doesn't work (should be `deno task start` or `deno run start`)
| `create-astro` |  | runs `deno install` but suggests `npm run dev`
later in output, probably needs a PR
| `nuxi init` |  | deno not an option in dialog, needs a PR
([code](f04e2e8944/src/commands/init.ts (L96-L102)))
| `create-react-app` |  | uses npm
| `ng new` (`@angular/cli`) |  | uses npm
| `create-vite` |  | suggests working deno commands 🎉 
| `create-solid` |   | suggests npm commands, needs PR

It's possible that fixing `package-manager-detector` or other packages
might make some of these just work, but haven't looked too carefully at
each
2024-11-06 00:36:24 +01:00
..
bench feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
coverage fix(coverage): exclude comment lines from coverage reports (#25939) 2024-11-06 00:36:23 +01:00
init refactor(init): inline routing in deno init --serve template (#26595) 2024-10-30 00:16:12 +01:00
jupyter fix(jupyter): fix panics for overslow subtraction (#26371) 2024-10-18 01:05:03 +02:00
lint refactor: extract out sloppy imports resolution from CLI crate (#25920) 2024-09-28 19:17:48 -04:00
registry fix(install): cache json exports of JSR packages (#26552) 2024-10-30 00:15:37 +01:00
repl feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
run fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639) 2024-11-06 00:36:24 +01:00
test feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
check.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
clean.rs feat(clean): add progress bar (#25026) 2024-08-14 13:04:07 +02:00
compile.rs perf(compile): pass module source data from binary directly to v8 (#26494) 2024-10-25 02:09:39 +02:00
doc.rs fix: use tree-sitter for deno_doc (#26066) 2024-10-08 06:55:44 -07:00
fmt.rs fix(fmt): upgrade formatters (#26469) 2024-10-25 02:09:35 +02:00
info.rs fix(info): resolve workspace member mappings (#26350) 2024-10-25 02:09:32 +02:00
installer.rs fix(install): surface package.json dependency errors (#26023) 2024-10-04 07:52:00 +00:00
mod.rs BREAKING: remove deno vendor (#25343) 2024-09-03 17:00:57 +10:00
serve.rs fix(serve): support serve hmr (#26078) 2024-11-06 00:36:22 +01:00
task.rs feat(npm): support --allow-scripts on deno run (and deno add, deno test, etc) (#26075) 2024-10-12 12:14:32 -07:00
upgrade.rs fix(upgrade): stop running deno lsp processes on windows before attempting to replace executable (#26542) 2024-10-30 00:15:37 +01:00