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
4 changes: 4 additions & 0 deletions notNeededPackages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3149,6 +3149,10 @@
"libraryName": "markdownlint",
"asOfVersion": "0.18.0"
},
"marked": {
"libraryName": "marked",
"asOfVersion": "6.0.0"
},
"match-sorter": {
"libraryName": "match-sorter",
"asOfVersion": "6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion types/marked-terminal/marked-terminal-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import chalk from "chalk";
import * as marked from "marked";
import { marked } from "marked";
import * as TerminalRenderer from "marked-terminal";

marked.setOptions({
Expand Down
3 changes: 2 additions & 1 deletion types/marked-terminal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"dependencies": {
"chalk": "^2.4.1"
"chalk": "^2.4.1",
"marked": "^6.0.0"
}
}
4 changes: 1 addition & 3 deletions types/marked-terminal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"typeRoots": [
"../"
],
"paths": {
"marked": [ "marked/v3" ]
},
"target": "es6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"target": "es6",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed since marked uses private methods

error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok according to the docs:

You may edit the tsconfig.json to add new test files, to add "target": "es6"

"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
Expand Down
1 change: 0 additions & 1 deletion types/marked/OTHER_FILES.txt

This file was deleted.

1 change: 0 additions & 1 deletion types/marked/index.d.mts

This file was deleted.

Loading