Skip to content

Commit

Permalink
refactor: create @docusaurus/bundler and @docusaurus/babel packag…
Browse files Browse the repository at this point in the history
…es (#10511)
  • Loading branch information
slorber authored Sep 21, 2024
1 parent fd14d6a commit 9ecff80
Show file tree
Hide file tree
Showing 65 changed files with 1,921 additions and 1,588 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/babel": "3.5.2",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/create-docusaurus/templates/classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/babel": "3.5.2",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: ['@docusaurus/babel/preset'],
};
3 changes: 3 additions & 0 deletions packages/docusaurus-babel/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.tsbuildinfo*
tsconfig*
__tests__
3 changes: 3 additions & 0 deletions packages/docusaurus-babel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@docusaurus/babel`

Docusaurus package for Babel-related utils.
50 changes: 50 additions & 0 deletions packages/docusaurus-babel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@docusaurus/babel",
"version": "3.5.2",
"description": "Docusaurus package for Babel-related utils.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
"./preset": {
"types": "./lib/preset.d.ts",
"default": "./lib/preset.js"
},
".": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"scripts": {
"build": "tsc",
"watch": "tsc --watch"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/docusaurus.git",
"directory": "packages/docusaurus-babel"
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.23.3",
"@babel/generator": "^7.23.3",
"@babel/traverse": "^7.22.8",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@babel/runtime-corejs3": "^7.22.6",
"@docusaurus/logger": "3.5.2",
"@docusaurus/utils": "3.5.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"fs-extra": "^11.1.1",
"tslib": "^2.6.0"
},
"engines": {
"node": ">=18.0"
}
}
Loading

0 comments on commit 9ecff80

Please sign in to comment.