Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thin-mangos-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-tunnel": patch
---

chore: update dependencies
27 changes: 21 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,40 @@ on:
branches:
- main

permissions:
id-token: write
contents: write
pull-requests: write

jobs:
release:
name: Release
if: ${{ github.repository_owner == 'morinokami' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run build

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Install the latest npm
run: bun install -g npm@latest

- name: Build
run: bun run build

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: bunx changeset version
publish: bunx changeset publish
publish: npx changeset publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
"source.fixAll.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
Expand Down
17 changes: 11 additions & 6 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "error",
"noUndeclaredVariables": "error",
"noUnusedVariables": "error"
}
}
Expand All @@ -30,5 +27,13 @@
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
401 changes: 238 additions & 163 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"build": "bun run --cwd packages/astro-tunnel build"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.29.5",
"pkg-pr-new": "0.0.54"
"@biomejs/biome": "2.3.8",
"@changesets/changelog-github": "0.5.2",
"@changesets/cli": "2.29.8",
"pkg-pr-new": "0.0.62"
}
}
2 changes: 1 addition & 1 deletion packages/astro-tunnel/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Astro Tunnel

![Screenshot](./.github/assets/screenshot.png)
![Screenshot](https://github.com/morinokami/astro-tunnel/blob/main/.github/assets/screenshot.png?raw=true)

Astro Tunnel is an [Astro Dev Toolbar App](https://docs.astro.build/en/reference/dev-toolbar-app-reference/) that enables your local Astro server to be accessible from the internet. Internally, it uses Cloudflare's [Quick Tunnels](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/) via [unjs/untun](https://github.com/unjs/untun), so no additional configuration is required to start tunneling.

Expand Down
10 changes: 5 additions & 5 deletions packages/astro-tunnel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
],
"scripts": {
"build": "tsdown",
"typecheck": "tsc --noEmit"
"typecheck": "tsgo --noEmit"
},
"dependencies": {
"untun": "0.1.3"
},
"devDependencies": {
"@types/node": "24.2.1",
"astro": "5.12.9",
"tsdown": "0.14.0",
"typescript": "5.9.2"
"@types/node": "24.10.1",
"@typescript/native-preview": "7.0.0-dev.20251203.1",
"astro": "5.16.3",
"tsdown": "0.14.0"
},
"peerDependencies": {
"astro": ">=4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-tunnel/src/astro-tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default defineToolbarApp({
toggle.input.addEventListener("change", (e) => {
import.meta.hot?.send("astro-tunnel:toggled", {
// Send the state of the toggle to the server
// @ts-ignore
// @ts-expect-error
checked: e.currentTarget?.checked,
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-tunnel/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import type { AstroIntegration } from "astro";
import { startTunnel } from "untun";
import type { Tunnel, TunnelOptions } from "untun";
import { startTunnel } from "untun";

type AstroTunnelOptions = TunnelOptions;

Expand Down
2 changes: 1 addition & 1 deletion packages/astro-tunnel/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function closeOnOutsideClick(eventTarget: EventTarget) {
}),
);
}
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
// biome-ignore lint/suspicious/noExplicitAny: explanation
eventTarget.addEventListener("app-toggled", (event: any) => {
if (event.detail.state === true) {
document.addEventListener("click", onPageClick, true);
Expand Down
6 changes: 3 additions & 3 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.12.9",
"astro": "5.16.3",
"astro-tunnel": "workspace:*",
"@astrojs/check": "^0.9.4",
"typescript": "^5.9.2"
"@astrojs/check": "0.9.6",
"typescript": "5.9.3"
}
}
Loading