1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 13:22:55 -05:00
denoland-deno/cli/tools/registry
Marvin Hagemeister 3553aa9132
fix(publish): error on missing name field (#27131)
This PR improves the error output on publish when the `name` filed is
missing:

```json
{
  "exports": "./mod.ts",
  "version": "0.0.1"
}
```

Before:

```sh
deno publish --dry-run
error: You did not specify an entrypoint in file:///Users/marvinh/dev/test/deno-pkg-timers/deno.json. Add `exports` mapping in the configuration file, eg:
{
  "name": "@scope/name",
  "version": "0.0.0",
  "exports": "<path_to_entrypoint>"
}
```

After:

```sh
deno publish --dry-run
error: Missing 'name' field in 'file:///Users/marvinh/dev/test/deno-pkg-timers/deno.json'.
```

Fixes https://github.com/denoland/deno/issues/27116
2024-11-28 18:11:36 +01:00
..
pm feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
api.rs refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-24 01:21:21 +01:00
auth.rs fix(publish): permissionless dry-run in GHA (#22679) 2024-03-06 18:26:20 +05:30
diagnostics.rs fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
graph.rs fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
mod.rs fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00
paths.rs fix(publish): workspace included license file had incorrect path (#24747) 2024-07-26 15:35:29 +00:00
pm.rs feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
provenance.rs fix(publish): ensure provenance is spec compliant (#25200) 2024-08-31 15:53:46 +00:00
publish_order.rs feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00
tar.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
unfurl.rs fix(node): correct resolution of dynamic import of esm from cjs (#27071) 2024-11-26 14:38:24 -05:00