Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use deno 2 #738

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
deno-version: v2.x

- name: Check license headers
run: deno task lint:license
Expand All @@ -39,7 +39,7 @@ jobs:
working-directory: frontend

- name: Typecheck
run: deno check main.ts
run: deno check --allow-import main.ts
working-directory: frontend

- name: Build Fresh
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
deno-version: v2.x

- name: Install terraform
uses: hashicorp/setup-terraform@v3
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
deno-version: v2.x

- name: Install terraform
uses: hashicorp/setup-terraform@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/orama_package_reindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
deno-version: v2.x
- name: Deploy
env:
ORAMA_PACKAGE_INDEX_ID: ${{ secrets.ORAMA_PACKAGE_INDEX_ID }}
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev:frontend": "cd frontend && OLTP_ENDPOINT=http://localhost:4318 deno task start",
"prod:frontend": "deno run -A --watch ./tools/prod_proxy.ts & cd frontend && API_ROOT=https://api.jsr.io deno task start",
"lint": "deno task lint:frontend && deno task lint:license",
"lint:frontend": "cd frontend && deno lint && deno check main.ts",
"lint:frontend": "cd frontend && deno lint && deno check --allow-import main.ts",
"lint:license": "deno run --allow-read jsr:@kt3k/[email protected]/main -q",
"lint:license:fix": "deno run --allow-read --allow-write jsr:@kt3k/[email protected]/main -q --inject",
"tools:orama:package_reindex": "deno run --allow-env --allow-net tools/orama_package_reindex.ts",
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:alpine-2.0.0-rc.1
FROM denoland/deno:alpine-2.0.1
WORKDIR /app
RUN mkdir /deno_dir
ENV DENO_DIR /deno_dir
Expand Down
3 changes: 2 additions & 1 deletion frontend/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ body .ddoc {
@apply rounded no-underline !important;
}

code ~ .context_button:hover, code:hover ~ .context_button {
code ~ .context_button:hover,
code:hover ~ .context_button {
@apply md:visible;
}

Expand Down
6 changes: 3 additions & 3 deletions tools/generate_global_symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const output = await (new Deno.Command(Deno.execPath(), {
})).output();

const docNodes = await doc("asset:types.ts", {
async load(specifier) {
return {
load(specifier) {
return Promise.resolve({
kind: "module",
specifier,
content: output.stdout,
};
});
},
});

Expand Down
Loading