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

upgrade for deno2, publish to jsr https://jsr.io/@y0/postgres #1034

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

i18nsite
Copy link

fix #839

deno2 & jsr : https://deno.com/blog/jsr_open_beta

publish method

  1. get token for https://jsr.io/account/tokens

export DENO_AUTH_TOKENS=

  1. npm run deno:publish

test

deno add jsr:@y0/postgres

crate mod.js

import postgres from '@y0/postgres'
const pg = postgres(process.env.PG_URL)
console.log( await pg`SELECT 1` )

deno -A mod.js

deno2 & jsr : https://deno.com/blog/jsr_open_beta

deno add jsr:@y0/postgres

1. get token for https://jsr.io/account/tokens

export DENO_AUTH_TOKENS=

2. npm run deno:publish

create file mod.js

```
import postgres from '@y0/postgres'
const pg = postgres(process.env.PG_URL)
console.log( await pg`SELECT 1` )
```

deno -A mod.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not available on jsr.io
1 participant