summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-14 14:15:43 -0400
committerGitHub <noreply@github.com>2024-05-14 18:15:43 +0000
commitc0e3b6ed9d955bc59a8d88e177219b541881c63d (patch)
tree36a763a6d4d62d03bec703d73fd048cd57499a32 /tests
parent432792a46c71b402408e1bed0affdb1c3a90d8c6 (diff)
fix(publish): always include config file when publishing (#23797)
Closes https://github.com/denoland/deno/issues/23796
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/publish/byonm_dep/publish.out1
-rw-r--r--tests/specs/publish/excluded_deno_jsonc/__test__.jsonc14
-rw-r--r--tests/specs/publish/excluded_deno_jsonc/deno.jsonc5
-rw-r--r--tests/specs/publish/excluded_deno_jsonc/mod.out6
-rw-r--r--tests/specs/publish/excluded_deno_jsonc/mod.ts2
5 files changed, 28 insertions, 0 deletions
diff --git a/tests/specs/publish/byonm_dep/publish.out b/tests/specs/publish/byonm_dep/publish.out
index f3b8a0dcc..a7433f86f 100644
--- a/tests/specs/publish/byonm_dep/publish.out
+++ b/tests/specs/publish/byonm_dep/publish.out
@@ -2,5 +2,6 @@ Check file:///[WILDLINE]/mod.ts
Checking for slow types in the public API...
Check file:///[WILDLINE]/mod.ts
Simulating publish of @scope/package@0.0.0 with files:
+ file:///[WILDLINE]/deno.jsonc (300B)
file:///[WILDLINE]/mod.ts (129B)
Warning Aborting due to --dry-run
diff --git a/tests/specs/publish/excluded_deno_jsonc/__test__.jsonc b/tests/specs/publish/excluded_deno_jsonc/__test__.jsonc
new file mode 100644
index 000000000..4e8607ae8
--- /dev/null
+++ b/tests/specs/publish/excluded_deno_jsonc/__test__.jsonc
@@ -0,0 +1,14 @@
+{
+ "tempDir": true,
+ "steps": [{
+ "args": [
+ "eval",
+ "Deno.writeTextFileSync('.gitignore', 'deno.jsonc')"
+ ],
+ "output": "[WILDCARD]"
+ }, {
+ "args": "publish --dry-run",
+ "output": "mod.out",
+ "exitCode": 0
+ }]
+}
diff --git a/tests/specs/publish/excluded_deno_jsonc/deno.jsonc b/tests/specs/publish/excluded_deno_jsonc/deno.jsonc
new file mode 100644
index 000000000..fe4300ad6
--- /dev/null
+++ b/tests/specs/publish/excluded_deno_jsonc/deno.jsonc
@@ -0,0 +1,5 @@
+{
+ "name": "@scope/pkg",
+ "version": "1.0.0",
+ "exports": "./mod.ts"
+}
diff --git a/tests/specs/publish/excluded_deno_jsonc/mod.out b/tests/specs/publish/excluded_deno_jsonc/mod.out
new file mode 100644
index 000000000..7c8db25a2
--- /dev/null
+++ b/tests/specs/publish/excluded_deno_jsonc/mod.out
@@ -0,0 +1,6 @@
+Check file:///[WILDLINE]mod.ts
+Checking for slow types in the public API...
+Simulating publish of @scope/pkg@1.0.0 with files:
+ file:///[WILDLINE]/deno.jsonc (74B)
+ file:///[WILDLINE]/mod.ts (22B)
+Warning Aborting due to --dry-run
diff --git a/tests/specs/publish/excluded_deno_jsonc/mod.ts b/tests/specs/publish/excluded_deno_jsonc/mod.ts
new file mode 100644
index 000000000..816fdefaa
--- /dev/null
+++ b/tests/specs/publish/excluded_deno_jsonc/mod.ts
@@ -0,0 +1,2 @@
+export class Test {
+}