diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-16 09:12:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 13:12:52 +0000 |
commit | 57cd2951f193b02cbd3fb15f0ee14d83107a2855 (patch) | |
tree | 129294ae1f462a40bd75de5c88efa7982aed19c5 /tests | |
parent | 105d27bc7db5c0d2fd18cb26f41bd3193be74639 (diff) |
feat(config/jsr): add license field (#25056)
1. Adds a new "license" field.
1. Adds this field by default when doing `deno init --lib`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/specs/publish/javascript_decl_file/LICENSE | 0 | ||||
-rw-r--r-- | tests/specs/publish/javascript_decl_file/deno.json | 3 | ||||
-rw-r--r-- | tests/specs/publish/missing_license/mod.out | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/specs/publish/javascript_decl_file/LICENSE b/tests/specs/publish/javascript_decl_file/LICENSE deleted file mode 100644 index e69de29bb..000000000 --- a/tests/specs/publish/javascript_decl_file/LICENSE +++ /dev/null diff --git a/tests/specs/publish/javascript_decl_file/deno.json b/tests/specs/publish/javascript_decl_file/deno.json index e5dbfa8d3..66368bf00 100644 --- a/tests/specs/publish/javascript_decl_file/deno.json +++ b/tests/specs/publish/javascript_decl_file/deno.json @@ -3,5 +3,6 @@ "version": "1.0.0", "exports": { ".": "./mod.js" - } + }, + "license": "MIT" } diff --git a/tests/specs/publish/missing_license/mod.out b/tests/specs/publish/missing_license/mod.out index d3e183662..f5fbb9b7e 100644 --- a/tests/specs/publish/missing_license/mod.out +++ b/tests/specs/publish/missing_license/mod.out @@ -1,9 +1,9 @@ Check file:///[WILDLINE]/missing_license/mod.ts Checking for slow types in the public API... Check file:///[WILDLINE]/missing_license/mod.ts -error[missing-license]: missing license file - --> [WILDLINE]LICENSE - = hint: add a LICENSE file to the package and ensure it is not ignored from being published +error[missing-license]: missing license field or file + --> [WILDLINE]deno.json + = hint: add a "license" field. Alternatively, add a LICENSE file to the package and ensure it is not ignored from being published docs: https://jsr.io/go/missing-license |