Skip to content

Commit 1ed3365

Browse files
committed
upgrade deps and avoid esbuild warning
1 parent a783196 commit 1ed3365

File tree

13 files changed

+149
-125
lines changed

13 files changed

+149
-125
lines changed

examples/next-contentlayer-example

examples/next-images/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"react-dom": "18.2.0"
1717
},
1818
"devDependencies": {
19-
"@types/react": "18.2.7",
19+
"@types/react": "18.2.14",
2020
"autoprefixer": "^10.4.14",
2121
"postcss": "^8.4.24",
2222
"tailwindcss": "^3.3.2",
23-
"typescript": "5.1.5"
23+
"typescript": "5.1.6"
2424
}
2525
}

examples/next-rsc-dynamic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"react-dom": "18.2.0"
1717
},
1818
"devDependencies": {
19-
"@types/react": "18.2.7",
19+
"@types/react": "18.2.14",
2020
"autoprefixer": "^10.4.14",
2121
"postcss": "^8.4.24",
2222
"tailwindcss": "^3.3.2",
23-
"typescript": "5.1.5"
23+
"typescript": "5.1.6"
2424
}
2525
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
"devDependencies": {
2929
"@changesets/cli": "2.19.0-temp.0",
3030
"@effect-ts/tracing-plugin": "^0.20.0",
31-
"@types/prettier": "^2.7.2",
32-
"@typescript-eslint/eslint-plugin": "^5.59.8",
33-
"@typescript-eslint/parser": "^5.59.8",
34-
"eslint": "^8.41.0",
31+
"@types/prettier": "^2.7.3",
32+
"@typescript-eslint/eslint-plugin": "^5.60.1",
33+
"@typescript-eslint/parser": "^5.60.1",
34+
"eslint": "^8.43.0",
3535
"eslint-config-prettier": "^8.8.0",
3636
"eslint-plugin-import": "^2.27.5",
3737
"eslint-plugin-react-hooks": "^4.6.0",
3838
"eslint-plugin-simple-import-sort": "^10.0.0",
3939
"prettier": "^2.8.8",
4040
"ts-patch": "^2.1.0",
41-
"typescript": "^5.1.5"
41+
"typescript": "^5.1.6"
4242
},
4343
"resolutions": {
4444
"esbuild": "0.18.0",

packages/@contentlayer/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"typanion": "^3.12.1"
2020
},
2121
"devDependencies": {
22-
"@types/node": "^20.2.5"
22+
"@types/node": "^20.3.2"
2323
},
2424
"license": "MIT"
2525
}

packages/@contentlayer/core/src/markdown/mdx.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const bundleMDX = ({
3232
resolveCwd,
3333
cwd: cwd_,
3434
mdxOptions: mapMdxOptions,
35+
esbuildOptions: mapEsbuildOptions,
3536
...restOptions
3637
} = options ?? {}
3738

@@ -60,6 +61,11 @@ export const bundleMDX = ({
6061
},
6162
// User-provided cwd trumps resolution
6263
cwd: cwd_ ?? getCwd(),
64+
esbuildOptions: (opts, frontmatter) => {
65+
// NOTE this is needed to avoid `esbuild` from logging a warning regarding the `tsconfig.json` target option not being used
66+
opts.target = 'es2020'
67+
return mapEsbuildOptions ? mapEsbuildOptions(opts, frontmatter) : opts
68+
},
6369
// NOTE `restOptions` should be spread at the end to allow for user overrides
6470
...restOptions,
6571
}

packages/@contentlayer/source-contentful/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "echo No tests yet"
1414
},
1515
"devDependencies": {
16-
"@types/node": "^20.2.5"
16+
"@types/node": "^20.3.2"
1717
},
1818
"dependencies": {
1919
"@contentlayer/core": "workspace:*",

packages/@contentlayer/source-files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@faker-js/faker": "^8.0.2",
4545
"@types/micromatch": "^4.0.2",
46-
"@types/node": "^20.2.5",
46+
"@types/node": "^20.3.2",
4747
"@types/sharp": "^0.32.0",
4848
"@types/yaml": "^1.9.7",
4949
"sharp": "^0.32.1",

packages/contentlayer-stackbit-yaml-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"contentlayer": "workspace:*",
27-
"typescript": "^5.1.5",
27+
"typescript": "^5.1.6",
2828
"vite": "^4.3.1",
2929
"vitest": "0.30.1"
3030
}

packages/contentlayer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@contentlayer/utils": "workspace:*"
7070
},
7171
"devDependencies": {
72-
"typescript": "^5.1.5"
72+
"typescript": "^5.1.6"
7373
},
7474
"author": "schickling",
7575
"homepage": "https://github.com/contentlayerdev/contentlayer",

0 commit comments

Comments
 (0)