Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
2wce committed May 27, 2024
1 parent 379eb66 commit c2827a2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 27 deletions.
3 changes: 1 addition & 2 deletions packages/contentful-slatejs-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"lodash.camelcase": "^4.3.0",
"prompt": "^1.0.0",
"rimraf": "^2.6.1",
"ts-jest": "^29.1.2",
"typescript": "^5.3.2"
"ts-jest": "^29.1.2"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 1 addition & 2 deletions packages/rich-text-from-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"faker": "^4.1.0",
"rimraf": "^2.6.3",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typescript": "^5.3.2"
"tslint": "^6.1.3"
},
"bugs": {
"url": "https://github.com/contentful/rich-text/issues"
Expand Down
24 changes: 12 additions & 12 deletions packages/rich-text-from-markdown/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import _ from 'lodash';
import unified from 'unified';
import markdown from 'remark-parse';
import gfm from 'remark-gfm';
import {
Document,
Node,
Block,
BLOCKS,
TopLevelBlock,
INLINES,
Block,
Document,
Hyperlink,
Text,
INLINES,
Inline,
Node,
Text,
TopLevelBlock,
} from '@contentful/rich-text-types';
import { MarkdownNode, MarkdownLinkNode, MarkdownTree } from './types';
import _ from 'lodash';
import gfm from 'remark-gfm';
import markdown from 'remark-parse';
import unified from 'unified';
import { MarkdownLinkNode, MarkdownNode, MarkdownTree } from './types';

const markdownNodeTypes = new Map<string, string>([
['paragraph', BLOCKS.PARAGRAPH],
Expand Down Expand Up @@ -194,7 +194,7 @@ const buildText = async (
): Promise<Array<Inline | Text>> => {
const nodeType = nodeTypeFor(node);
const markType = markTypeFor(node);
const marks = [...appliedMarksTypes];
const marks = Array.from(appliedMarksTypes);
if (markType) {
marks.push(markType);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/rich-text-html-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"lodash.clonedeep": "^4.5.0",
"rimraf": "^2.6.3",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typescript": "^5.3.2"
"tslint": "^6.1.3"
}
}
3 changes: 1 addition & 2 deletions packages/rich-text-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"devDependencies": {
"rimraf": "^2.6.3",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typescript": "^5.3.2"
"tslint": "^6.1.3"
}
}
3 changes: 1 addition & 2 deletions packages/rich-text-plain-text-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"devDependencies": {
"rimraf": "^2.6.3",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
"typescript": "^5.3.2"
"tslint": "^6.1.3"
}
}
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7552,11 +7552,6 @@ [email protected], "typescript@>=3 < 6":
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==

typescript@^5.3.2:
version "5.3.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz"
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==

typescript@~5.1.0:
version "5.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
Expand Down

0 comments on commit c2827a2

Please sign in to comment.