diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-12 19:51:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 19:51:58 -0400 |
commit | 39a21fd78eb6d9a13d46d108af35c58a3f550332 (patch) | |
tree | 0fb56fc064be968506d4ccb4798fabf178e29ca3 /tests/specs | |
parent | 631e175498203294f474031d169354d1cf648ca8 (diff) |
feat(publish): error on missing license file (#25011)
Closes https://github.com/denoland/deno/issues/24676
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/publish/missing_license/__test__.jsonc | 3 | ||||
-rw-r--r-- | tests/specs/publish/missing_license/mod.out | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/specs/publish/missing_license/__test__.jsonc b/tests/specs/publish/missing_license/__test__.jsonc index 774d5a534..1b96278a0 100644 --- a/tests/specs/publish/missing_license/__test__.jsonc +++ b/tests/specs/publish/missing_license/__test__.jsonc @@ -1,4 +1,5 @@ { "args": "publish --token 'sadfasdf'", - "output": "mod.out" + "output": "mod.out", + "exitCode": 1 } diff --git a/tests/specs/publish/missing_license/mod.out b/tests/specs/publish/missing_license/mod.out index 721fefd9c..d3e183662 100644 --- a/tests/specs/publish/missing_license/mod.out +++ b/tests/specs/publish/missing_license/mod.out @@ -1,12 +1,10 @@ Check file:///[WILDLINE]/missing_license/mod.ts Checking for slow types in the public API... Check file:///[WILDLINE]/missing_license/mod.ts -warning[missing-license]: missing license file +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 docs: https://jsr.io/go/missing-license -Publishing @scope/pkg@1.0.0 ... -Successfully published @scope/pkg@1.0.0 -Visit http://127.0.0.1:4250/@scope/pkg@1.0.0 for details +error: Found 1 problem |