1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/specs/publish
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
..
allow_slow_types fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
banned_triple_slash_directives feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
bare_node_builtins fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
bun_specifier fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
byonm_dep fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
byonm_with_package_json chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
config_file_jsonc fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
config_flag fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
dry_run fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
dry_run_gitignored fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
excluded_deno_jsonc fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
has_slow_types fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
invalid_import fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
invalid_import_esm_sh_suggestion fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
invalid_path fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
javascript_decl_file feat(config/jsr): add license field (#25056) 2024-08-16 13:12:52 +00:00
javascript_missing_decl_file fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
jsr_jsonc fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
missing_constraint fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
missing_constraint_jsx_import_source feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
missing_deno_json chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
missing_exports fix(publish): improve error message when missing exports (#26945) 2024-11-20 01:14:49 +00:00
missing_license feat(config/jsr): add license field (#25056) 2024-08-16 13:12:52 +00:00
missing_name fix(publish): error on missing name field (#27131) 2024-11-28 18:11:36 +01:00
no_check fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
no_check_surfaces_syntax_error fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
no_token fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
node_specifier fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
npm_workspace fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
npm_workspace_jsr_pkg_with_npm_dep chore: fix flaky specs::publish::npm_workspace_jsr_pkg_with_npm_dep::dep_and_workspace_dep (#27098) 2024-11-26 19:32:30 -05:00
package_json refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
prefer_fast_check_graph fix: support bun specifiers in JSR publish (#24588) 2024-11-28 14:51:24 +01:00
set_version feat(publish): add --set-version <version> flag (#26141) 2024-11-20 00:00:47 +00:00
sloppy_imports fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
successful fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
symlink fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00
unanalyzable_dynamic_import fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
unsupported_jsx_tsx fix(publish): warn about missing license file (#24677) 2024-07-22 15:46:37 -04:00
workspace fix: update dry run success message (#24885) 2024-08-06 08:14:06 +00:00