Skip to content

Commit

Permalink
fix: http resolution (#7)
Browse files Browse the repository at this point in the history
* chore: add test env

* fix: http resolution

* chore: fix lint errors

* fix: formatting

* chore: detect Deno

* chore: add Deno to CI

* chore: build fixtures on CI

* chore: follow vite naming convention

* drop! debug lgos

* chore: use canary Deno

* chore: update action name

* fix: await promise

* fix: missing return

* chore: more debug

* chore: add task

* chore: make lsp happy

* drop! debug logs

* fix

* chore: remove unused import

* logs

* fix: let vite handle npm resolution

* chore: remove logs

* fix: windows `deno info`

* chore: remove provenance flag for now
  • Loading branch information
marvinhagemeister authored Sep 26, 2024
1 parent f58a05f commit 73ec147
Show file tree
Hide file tree
Showing 23 changed files with 1,017 additions and 238 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: CI

on:
push:
Expand All @@ -12,6 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- run: deno fmt --check
- run: deno lint

Expand All @@ -25,11 +27,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: npm i
- run: npm run build --if-present
- name: Build fixture
working-directory: ./tests/fixture
run: npx vite build --debug

- run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish --provenance --access public
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 9 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"unstable": ["sloppy-imports"],
"lint": {
"rules": {
"exclude": ["no-sloppy-imports"]
},
"exclude": ["tests/fixture/dist/", "dist/"]
}
}
Loading

0 comments on commit 73ec147

Please sign in to comment.