diff --git a/.changeset/stale-buses-dream.md b/.changeset/stale-buses-dream.md new file mode 100644 index 00000000..11313816 --- /dev/null +++ b/.changeset/stale-buses-dream.md @@ -0,0 +1,5 @@ +--- +"mdxts": minor +--- + +Moves `@types` packages from dependencies to dev dependencies to reduce npm install size. These should be included in the project `mdxts` is used in now e.g. `npm install @types/react`. diff --git a/packages/mdxts/package.json b/packages/mdxts/package.json index e9699d83..95960e60 100644 --- a/packages/mdxts/package.json +++ b/packages/mdxts/package.json @@ -100,6 +100,12 @@ "@swc/cli": "^0.3.12", "@swc/core": "^1.4.17", "@types/glob-parent": "5.1.3", + "@types/hast": "^3.0.4", + "@types/mdast": "^4.0.3", + "@types/mdx": "^2.0.13", + "@types/react": "^18.3.1", + "@types/react-dom": "^18.3.0", + "@types/title": "^3.4.3", "@types/webpack-env": "1.18.4", "@types/ws": "^8.5.10", "next": "14.2.3", @@ -121,12 +127,6 @@ "@remark-embedder/transformer-codesandbox": "^3.0.0", "@sindresorhus/slugify": "^2.2.1", "@tsxmod/utils": "^0.5.1", - "@types/hast": "^3.0.4", - "@types/mdast": "^4.0.3", - "@types/mdx": "^2.0.13", - "@types/react": "^18.3.1", - "@types/react-dom": "^18.3.0", - "@types/title": "^3.4.3", "case-anything": "^2.1.13", "chalk": "^4.1.2", "chokidar": "^3.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93e907c8..00c430f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -137,24 +137,6 @@ importers: '@tsxmod/utils': specifier: ^0.5.1 version: 0.5.1(ts-morph@22.0.0) - '@types/hast': - specifier: ^3.0.4 - version: 3.0.4 - '@types/mdast': - specifier: ^4.0.3 - version: 4.0.3 - '@types/mdx': - specifier: ^2.0.13 - version: 2.0.13 - '@types/react': - specifier: ^18.3.1 - version: 18.3.1 - '@types/react-dom': - specifier: ^18.3.0 - version: 18.3.0 - '@types/title': - specifier: ^3.4.3 - version: 3.4.3 case-anything: specifier: ^2.1.13 version: 2.1.13 @@ -273,6 +255,24 @@ importers: '@types/glob-parent': specifier: 5.1.3 version: 5.1.3 + '@types/hast': + specifier: ^3.0.4 + version: 3.0.4 + '@types/mdast': + specifier: ^4.0.3 + version: 4.0.3 + '@types/mdx': + specifier: ^2.0.13 + version: 2.0.13 + '@types/react': + specifier: ^18.3.1 + version: 18.3.1 + '@types/react-dom': + specifier: ^18.3.0 + version: 18.3.0 + '@types/title': + specifier: ^3.4.3 + version: 3.4.3 '@types/webpack-env': specifier: 1.18.4 version: 1.18.4