Skip to content

Commit

Permalink
Upgrading marked-terminal to its latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Jul 22, 2024
1 parent 0e991a4 commit 4dde146
Show file tree
Hide file tree
Showing 4 changed files with 2,832 additions and 2,163 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"cli-table3": "^0.6.3",
"commander": "^10.0.1",
"marked": "^9.1.2",
"marked-terminal": "^6.0.0",
"marked-terminal": "^7.1.0",
"semver": "^7.5.4"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# [email protected] --definitely-typed /workspaces/arethetypeswrong/packages/core/test/fixtures/@[email protected]

```
$ attw [email protected] --definitely-typed /workspaces/arethetypeswrong/packages/core/test/fixtures/@[email protected]
big.js v6.2.1
@types/big.js v6.2.0
🎭 Import resolved to a CommonJS type declaration file, but an ESM JavaScript file. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md
❌ Import resolved to JavaScript files, but no type declarations were found. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/UntypedResolution.md
⚠️ A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md
┌───────────────────┬────────────────────────┬──────────────────────────────┬─────────────────┬───────────────────────┐
│ │ "big.js" │ "big.js/big.mjs" │ "big.js/big.js" │ "big.js/package.json" │
├───────────────────┼────────────────────────┼──────────────────────────────┼─────────────────┼───────────────────────┤
│ node10 │ 🟢 │ ❌ No types │ ❌ No types │ 🟢 (JSON) │
├───────────────────┼────────────────────────┼──────────────────────────────┼─────────────────┼───────────────────────┤
│ node16 (from CJS) │ 🟢 (CJS) │ ❌ No types │ ❌ No types │ 🟢 (JSON) │
│ │ │ ⚠️ ESM (dynamic import only) │ │ │
├───────────────────┼────────────────────────┼──────────────────────────────┼─────────────────┼───────────────────────┤
│ node16 (from ESM) │ 🎭 Masquerading as CJS │ ❌ No types │ ❌ No types │ 🟢 (JSON) │
├───────────────────┼────────────────────────┼──────────────────────────────┼─────────────────┼───────────────────────┤
│ bundler │ 🟢 │ ❌ No types │ ❌ No types │ 🟢 (JSON) │
└───────────────────┴────────────────────────┴──────────────────────────────┴─────────────────┴───────────────────────┘
```

Exit code: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [email protected] --definitely-typed /workspaces/arethetypeswrong/packages/core/test/fixtures/@[email protected]

```
$ attw [email protected] --definitely-typed /workspaces/arethetypeswrong/packages/core/test/fixtures/@[email protected]
react v18.2.0
@types/react v18.2.21
No problems found 🌟
┌─────────────────────────┬───────────┬───────────────────┬───────────────────┬───────────┐
│ │ node10 │ node16 (from CJS) │ node16 (from ESM) │ bundler │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react/package.json" │ 🟢 (JSON) │ 🟢 (JSON) │ 🟢 (JSON) │ 🟢 (JSON) │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react/jsx-runtime" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react/jsx-dev-runtime" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react/canary" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │
├─────────────────────────┼───────────┼───────────────────┼───────────────────┼───────────┤
│ "react/experimental" │ 🟢 │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 │
└─────────────────────────┴───────────┴───────────────────┴───────────────────┴───────────┘
```

Exit code: 0
Loading

0 comments on commit 4dde146

Please sign in to comment.