Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "5.0.0",
"description": "Toolkit of handy utility functions for dealing with Portable Text",
"keywords": [
"sanity",
"cms",
"content",
"headless",
"portable-text-toolkit",
"realtime",
"content",
"portable-text-toolkit"
"sanity"
],
"homepage": "https://github.com/portabletext/toolkit#readme",
"bugs": {
Expand All @@ -18,15 +18,15 @@
"type": "git",
"url": "git+ssh://[email protected]/portabletext/toolkit.git"
},
"license": "MIT",
"author": "Sanity.io <[email protected]>",
"license": "MIT",
"sideEffects": false,
"type": "module",
"main": "./dist/index.js",
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion test/nestLists.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function createBlocks(
spans: string[],
options: {level?: number; type?: string; startIndex?: number} = {},
): PortableTextListItemBlock[] {
const { level = 1, type = 'bullet', startIndex = 0} = options
const {level = 1, type = 'bullet', startIndex = 0} = options
return spans.map((span, i) => ({
_type: 'block',
_key: `${String.fromCharCode(65 + startIndex + i)}${i}`,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.dist.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["./tsconfig.json", "@sanity/tsconfig/isolated-declarations"],
"include": ["./src"],
"include": ["./src"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"rootDir": ".",
"outDir": "./dist",

"noUncheckedIndexedAccess": true,
},
"noUncheckedIndexedAccess": true
}
}