Skip to content

Commit

Permalink
Add module: node16 to tsconfig.json
Browse files Browse the repository at this point in the history
Closes GH-2211.
Closes GH-2228.
  • Loading branch information
ChristianMurphy authored Feb 8, 2023
1 parent b85947b commit 3911148
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 27 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/esbuild/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @typedef {import('esbuild').Message} Message
* @typedef {import('hast').Root} Root
* @typedef {import('vfile').VFile} VFile
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXContent} MDXContent
*
* @typedef {import('remark-mdx')}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/loader/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXContent} MDXContent
* @typedef {import('preact').FunctionComponent<unknown>} PreactComponent
* @typedef {import('vue').Component} VueComponent
* @typedef {import('vue').SetupContext} SetupContext
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx/lib/evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('vfile').VFileCompatible} VFileCompatible
* @typedef {import('./util/resolve-evaluate-options.js').EvaluateOptions} EvaluateOptions
*
* @typedef {import('mdx/types').MDXModule} ExportMap
* @typedef {import('mdx/types.js').MDXModule} ExportMap
*/

import {compile, compileSync} from './compile.js'
Expand Down
1 change: 1 addition & 0 deletions packages/mdx/lib/plugin/rehype-remove-raw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @typedef {import('hast').Root} Root
* @typedef {import('mdast-util-to-hast')} DoNotRemoveUsedToAddRawToNodeType
*/

import {visit} from 'unist-util-visit'
Expand Down
4 changes: 2 additions & 2 deletions packages/mdx/test/compile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import('mdx/types').MDXModule} MDXModule
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXModule} MDXModule
* @typedef {import('mdx/types.js').MDXContent} MDXContent
* @typedef {import('hast').Root} Root
* @typedef {import('../lib/compile.js').VFileCompatible} VFileCompatible
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/node-loader/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXContent} MDXContent
*/

import {promises as fs} from 'fs'
Expand Down
2 changes: 1 addition & 1 deletion packages/preact/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import('preact').ComponentChildren} ComponentChildren
* @typedef {import('mdx/types').MDXComponents} Components
* @typedef {import('mdx/types.js').MDXComponents} Components
*
* @typedef Props
* Configuration.
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import('react').ReactNode} ReactNode
* @typedef {import('mdx/types').MDXComponents} Components
* @typedef {import('mdx/types.js').MDXComponents} Components
*
* @typedef Props
* Configuration.
Expand Down
2 changes: 1 addition & 1 deletion packages/register/test/index.test.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXContent} MDXContent
*/

'use strict'
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXContent} MDXContent
*/

import {promises as fs} from 'fs'
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('mdx/types').MDXComponents} Components
* @typedef {import('mdx/types.js').MDXComponents} Components
*/

import {provide, inject, createVNode, Fragment} from 'vue'
Expand Down
6 changes: 3 additions & 3 deletions packages/vue/test/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @typedef {import('mdx/types').MDXComponents} Components
* @typedef {import('mdx/types').MDXContent} MDXContent
* @typedef {import('mdx/types').MDXModule} MDXModule
* @typedef {import('mdx/types.js').MDXComponents} Components
* @typedef {import('mdx/types.js').MDXContent} MDXContent
* @typedef {import('mdx/types.js').MDXModule} MDXModule
* @typedef {import('vue').Component} AnyComponent
*/

Expand Down
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"module": "ES2020",
"moduleResolution": "node",
"allowJs": true,
"target": "es2021",
"lib": ["es2021"],
"module": "node16",
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"strict": true
}
Expand Down

1 comment on commit 3911148

@vercel
Copy link

@vercel vercel bot commented on 3911148 Feb 8, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

mdx – ./

mdxjs.com
mdx-git-main-mdx.vercel.app
mdx-mdx.vercel.app
v2.mdxjs.com

Please sign in to comment.