Skip to content

Commit

Permalink
upgrade deps and avoid esbuild warning
Browse files Browse the repository at this point in the history
  • Loading branch information
schickling committed Jun 29, 2023
1 parent a783196 commit 1ed3365
Show file tree
Hide file tree
Showing 13 changed files with 149 additions and 125 deletions.
2 changes: 1 addition & 1 deletion examples/next-contentlayer-example
4 changes: 2 additions & 2 deletions examples/next-images/package.json
Expand Up @@ -16,10 +16,10 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/react": "18.2.7",
"@types/react": "18.2.14",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2",
"typescript": "5.1.5"
"typescript": "5.1.6"
}
}
4 changes: 2 additions & 2 deletions examples/next-rsc-dynamic/package.json
Expand Up @@ -16,10 +16,10 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/react": "18.2.7",
"@types/react": "18.2.14",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2",
"typescript": "5.1.5"
"typescript": "5.1.6"
}
}
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -28,17 +28,17 @@
"devDependencies": {
"@changesets/cli": "2.19.0-temp.0",
"@effect-ts/tracing-plugin": "^0.20.0",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.41.0",
"@types/prettier": "^2.7.3",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.8",
"ts-patch": "^2.1.0",
"typescript": "^5.1.5"
"typescript": "^5.1.6"
},
"resolutions": {
"esbuild": "0.18.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/cli/package.json
Expand Up @@ -19,7 +19,7 @@
"typanion": "^3.12.1"
},
"devDependencies": {
"@types/node": "^20.2.5"
"@types/node": "^20.3.2"
},
"license": "MIT"
}
6 changes: 6 additions & 0 deletions packages/@contentlayer/core/src/markdown/mdx.ts
Expand Up @@ -32,6 +32,7 @@ export const bundleMDX = ({
resolveCwd,
cwd: cwd_,
mdxOptions: mapMdxOptions,
esbuildOptions: mapEsbuildOptions,
...restOptions
} = options ?? {}

Expand Down Expand Up @@ -60,6 +61,11 @@ export const bundleMDX = ({
},
// User-provided cwd trumps resolution
cwd: cwd_ ?? getCwd(),
esbuildOptions: (opts, frontmatter) => {
// NOTE this is needed to avoid `esbuild` from logging a warning regarding the `tsconfig.json` target option not being used
opts.target = 'es2020'
return mapEsbuildOptions ? mapEsbuildOptions(opts, frontmatter) : opts
},
// NOTE `restOptions` should be spread at the end to allow for user overrides
...restOptions,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/source-contentful/package.json
Expand Up @@ -13,7 +13,7 @@
"test": "echo No tests yet"
},
"devDependencies": {
"@types/node": "^20.2.5"
"@types/node": "^20.3.2"
},
"dependencies": {
"@contentlayer/core": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/source-files/package.json
Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"@types/micromatch": "^4.0.2",
"@types/node": "^20.2.5",
"@types/node": "^20.3.2",
"@types/sharp": "^0.32.0",
"@types/yaml": "^1.9.7",
"sharp": "^0.32.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer-stackbit-yaml-generator/package.json
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"contentlayer": "workspace:*",
"typescript": "^5.1.5",
"typescript": "^5.1.6",
"vite": "^4.3.1",
"vitest": "0.30.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer/package.json
Expand Up @@ -69,7 +69,7 @@
"@contentlayer/utils": "workspace:*"
},
"devDependencies": {
"typescript": "^5.1.5"
"typescript": "^5.1.6"
},
"author": "schickling",
"homepage": "https://github.com/contentlayerdev/contentlayer",
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"contentlayer": "workspace:*",
"remark-mdx-images": "^2.0.0",
"typescript": "^5.1.5",
"typescript": "^5.1.6",
"vite": "^4.3.1",
"vitest": "0.12.10"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/next-contentlayer/package.json
Expand Up @@ -48,11 +48,11 @@
"react-dom": "*"
},
"devDependencies": {
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"next": "^13.4.7",
"typescript": "^5.1.5",
"webpack": "^5.88.0"
"typescript": "^5.1.6",
"webpack": "^5.88.1"
},
"author": "schickling",
"homepage": "https://github.com/contentlayerdev/contentlayer",
Expand Down

0 comments on commit 1ed3365

Please sign in to comment.