1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/cli
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
..
args fix: surface package.json location on dep parse failure (#26665) 2024-11-06 00:36:23 +01:00
bench bench: remove http benchmarks (#26484) 2024-10-25 02:09:39 +02:00
cache perf: pass transpiled module to deno_core as known string (#26555) 2024-10-30 00:15:38 +01:00
js refactor(cli/js): align error messages (#25406) 2024-09-04 09:19:55 +02:00
lsp fix(lsp): include unstable features from editor settings (#26655) 2024-11-06 00:36:22 +01:00
npm fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639) 2024-11-06 00:36:24 +01:00
ops refactor: bury descriptor parsing in PermissionsContainer (#25936) 2024-09-30 09:19:24 -04:00
schemas fix: add 'fmt-component' to unstable features in schema file (#26526) 2024-10-25 02:09:39 +02:00
standalone fix(compile): regression handling redirects (#26586) 2024-10-30 00:16:12 +01:00
tools fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639) 2024-11-06 00:36:24 +01:00
tsc fix(check): expose more globals from @types/node (#26603) 2024-10-30 00:16:12 +01:00
util fix(cli): Make --watcher CLEAR_SCREEN clear scrollback buffer as well as visible screen (#25997) 2024-10-30 00:15:38 +01:00
auth_tokens.rs fix: trim space around DENO_AUTH_TOKENS (#25147) 2024-08-22 15:14:50 +02:00
build.rs feat: support node-api in denort (#26389) 2024-10-25 02:09:38 +02:00
Cargo.toml fix(fmt): fix several HTML and components issues (#26654) 2024-11-06 00:36:23 +01:00
cdp.rs chore: upgrade to rust 1.79 (#24207) 2024-06-14 17:10:57 +05:30
clippy.toml refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-24 01:21:21 +01:00
deno.ico
emit.rs perf: pass transpiled module to deno_core as known string (#26555) 2024-10-30 00:15:38 +01:00
entitlements.plist chore: start codesigning mac release builds (#21303) 2023-11-23 15:30:26 -07:00
errors.rs fix(compile): support workspace members importing other members (#24909) 2024-08-07 07:43:05 +00:00
factory.rs perf(compile): pass module source data from binary directly to v8 (#26494) 2024-10-25 02:09:39 +02:00
file_fetcher.rs fix: .npmrc settings not being passed to install/add command (#26473) 2024-10-25 02:09:38 +02:00
graph_container.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
graph_util.rs fix(watch): don't panic on invalid file specifiers (#26577) 2024-10-30 00:16:11 +01:00
http_util.rs fix: .npmrc settings not being passed to install/add command (#26473) 2024-10-25 02:09:38 +02:00
integration_tests_runner.rs chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00
js.rs chore: rename __runtime_js_source to hmr (#24442) 2024-07-05 17:47:53 +05:30
jsr.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
main.rs feat: support node-api in denort (#26389) 2024-10-25 02:09:38 +02:00
mainrt.rs perf(compile): pass module source data from binary directly to v8 (#26494) 2024-10-25 02:09:39 +02:00
module_loader.rs perf: pass transpiled module to deno_core as known string (#26555) 2024-10-30 00:15:38 +01:00
node.rs feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
shared.rs chore: Rust 1.80.1 (#25089) 2024-08-18 22:24:56 -04:00
task_runner.rs fix(cli): set npm_config_user_agent when running npm packages or tasks (#26639) 2024-11-06 00:36:24 +01:00
version.rs build: Allow building 'rc' release from source (#25227) 2024-08-28 14:31:25 +00:00
worker.rs fix: do not panic running remote cjs module (#26259) 2024-10-15 03:57:31 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.