Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 21, 2022
1 parent b9aad3e commit add4250
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const jose = require('jose')

**`example`** Deno import
```js
import * as jose from 'https://deno.land/x/jose/index.ts'
import * as jose from 'https://deno.land/x/jose@v4.11.0/index.ts'
```

- JSON Web Tokens (JWT)
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const jose = require('jose')

**`example`** Deno import
```js
import * as jose from 'https://deno.land/x/jose/index.ts'
import * as jose from 'https://deno.land/x/jose@v4.11.0/index.ts'
```

- JSON Web Tokens (JWT)
Expand Down
8 changes: 8 additions & 0 deletions tools/postbump.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ execSync(
)
execSync('git add docs/**/*.md', opts)
execSync('git add dist/**/* -f', opts)

for (const path of ['./README.md', './docs/README.md']) {
writeFileSync(
path,
readFileSync(path, { encoding: 'utf-8' }).replace(/jose@v\d+\.\d+\.\d+/gm, `jose@v${version}`),
)
execSync(`git add ${path}`, { stdio: 'inherit' })
}

0 comments on commit add4250

Please sign in to comment.