Skip to content

Commit

Permalink
fix(cjs): compile commonjs in **/cjs and publish(#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettjay authored Jul 10, 2023
1 parent c3c7c65 commit a2bd002
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ This library uses the first method for two reasons:
The choice to use [Ava](https://avajs.dev) was made because it

1. supports TypeScript and ESM out of the box
2. parallelizes tests in separate environments making it typically faster
2. parallelizes tests in separate environments making ava typically faster
3. does not mutate Node.js globals like Jest
4. follows a similar convention as the node test runner which we may adopt eventually
4. follows a similar convention as the node test runner which we may eventually adopt

Running tests requires building the source code first, which should be handled for you by lerna.

Expand Down
6 changes: 3 additions & 3 deletions packages/fastify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

```javascript
import Fastify from 'fastify'
import {ByuLogger} from '@byu-oit/logger'
import {ByuJwtProvider} from '@byu-oit/fastify-jwt'
import { ByuLogger } from '@byu-oit/logger'
import { ByuJwtProvider } from '@byu-oit/fastify-jwt'

const logger = ByuLogger()
const fastify = Fastify({logger})
const fastify = Fastify({ logger })

fastify.register(ByuJwtProvider, {
/** Only authenticate routes matching this prefix */
Expand Down
8 changes: 4 additions & 4 deletions packages/jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
## Usage

```javascript
import {ByuJwt} from '@byu-oit/jwt'
import { ByuJwt } from '@byu-oit/jwt'

const byuJwt = new ByuJwt({issuer: 'https://api.byu.edu'})
const byuJwt = new ByuJwt({ issuer: 'https://api.byu.edu' })

const jwt = byuJwt.verify('[your jwt]')

/** Access the jwt payload information */
const {byuId} = jwt.payload
const { byuId } = jwt.payload

/** Access the jwt header information */
const {alg} = jwt.header
const { alg } = jwt.header
```

> **Note**
Expand Down

0 comments on commit a2bd002

Please sign in to comment.