Skip to content

Commit

Permalink
swap babel for swc, update readme, add dprint to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyd committed Aug 21, 2024
1 parent fe184a2 commit 94db595
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 1,685 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
- run: npm run lint
- run: npm run test:coverage
- run: npm run build
- run: npm run fmt:check
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
17 changes: 17 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"jsc": {
"parser": {
"syntax": "typescript"
}
},
"module": {
"type": "commonjs",
"strict": true
},
"env": {
"targets": "> 0.25%, not dead",
"mode": "usage",
"coreJs": "3.37"
}
}

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ const components: PortableTextComponents = {

const tree = nodeParse(richTextContent);
const portableText = transformToPortableText(tree);

// your logic to modify the portable text

const validManagementApiFormat = toManagementApiFormat(portableText);
```
Expand Down
Loading

0 comments on commit 94db595

Please sign in to comment.