From b4345888923a10a57023ea77c348f084f5fd2eed Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:52:56 +0700 Subject: [PATCH 1/6] chore(ci): add `jsr:` when installing package from deno --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 076e553..a2b28c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: deno-version: ${{ matrix.deno }} - name: Install packages - run: deno add @cross/test @std/assert + run: deno add jsr:@cross/test jsr:@std/assert - name: Run tests canary run: deno task test @@ -74,4 +74,4 @@ jobs: deno-version: canary - name: Check linting - run: deno task lint \ No newline at end of file + run: deno task lint From c0c77c52e22de617274fc79ea37cd5b481c21e4a Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:04:04 +0700 Subject: [PATCH 2/6] tweak --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2b28c7..b18c2c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: deno-version: ${{ matrix.deno }} - name: Install packages - run: deno add jsr:@cross/test jsr:@std/assert + run: deno install - name: Run tests canary run: deno task test From 966a242b9fe9a878784e89957d0fa8c19b74bd28 Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:08:26 +0700 Subject: [PATCH 3/6] tweak --- package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index 7e971b1..3dbc1ca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,3 @@ { - "type": "module", - "dependencies": { - "@cross/test": "npm:@jsr/cross__test@^0.0.9", - "@std/assert": "npm:@jsr/std__assert@^1.0.2" - } + "type": "module" } From ac87902f6284356fb7b9ecbb6d0df60a74211829 Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:13:08 +0700 Subject: [PATCH 4/6] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b18c2c7..3f2e228 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,9 @@ jobs: - name: Install packages run: npx jsr add @cross/test @std/assert + - name: Add package.json + run: "echo '{ \"type\": \"module\" }' > package.json" + - name: Run tests run: deno task test:node From e906b0509c7cca0c3187db27c5ad793b352d45f6 Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:15:30 +0700 Subject: [PATCH 5/6] Delete package.json --- package.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 package.json diff --git a/package.json b/package.json deleted file mode 100644 index 3dbc1ca..0000000 --- a/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} From ee50e40b312ee22e7421570e4b3d700818f86620 Mon Sep 17 00:00:00 2001 From: David Luis <95457148+babiabeo@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:18:16 +0700 Subject: [PATCH 6/6] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f2e228..55f01fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: run: deno install - name: Run tests canary - run: deno task test + run: deno task test:deno node-test: runs-on: ${{ matrix.os }}