1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00
denoland-deno/tests/specs/publish/missing_name
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
..
__test__.jsonc fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00
deno.json fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00
mod.ts fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00
publish.out fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00