{ "private": true, "name": "monorepo", "license": "MIT", "homepage": "https://mdxjs.com", "repository": "mdx-js/mdx", "bugs": "https://github.com/mdx-js/mdx/issues", "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" }, "type": "module", "workspaces": [ "packages/remark-mdx/", "packages/mdx/", "packages/react/", "packages/preact/", "packages/vue/", "packages/esbuild/", "packages/loader/", "packages/node-loader/", "packages/rollup/" ], "#": "note: `lz-string` is included because `@typescript/vfs` (through `twoslash`) types use it w/o marking it as a dep", "devDependencies": { "@babel/types": "^7.0.0", "@floating-ui/dom": "^1.0.0", "@next/mdx": "^14.0.0", "@node-loader/core": "^2.0.0", "@rollup/plugin-babel": "^6.0.0", "@sparticuz/chromium": "^123.0.0", "@types/babel__core": "^7.0.0", "@types/dlv": "^1.0.0", "@types/mdx": "^2.0.0", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@types/ungap__structured-clone": "^1.0.0", "@ungap/structured-clone": "^1.0.0", "@vitejs/plugin-react": "^4.0.0", "@vue/server-renderer": "^3.0.0", "@wooorm/starry-night": "^3.0.0", "acorn": "^8.0.0", "ap-style-title-case": "^2.0.0", "autoprefixer": "^10.0.0", "c8": "^10.0.0", "copy-to-clipboard": "^3.0.0", "cross-env": "^7.0.0", "cssnano": "^7.0.0", "devlop": "^1.0.0", "dlv": "^1.0.0", "esbuild": "^0.23.0", "eslint-config-xo-react": "^0.27.0", "eslint-plugin-es": "^4.0.0", "eslint-plugin-react": "^7.0.0", "eslint-plugin-react-hooks": "^4.0.0", "estree-to-babel": "^9.0.0", "estree-util-value-to-estree": "^3.0.0", "globby": "^14.0.0", "hast-util-from-html": "^2.0.0", "hast-util-sanitize": "^5.0.0", "hast-util-select": "^6.0.0", "hast-util-to-html": "^9.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "hast-util-to-text": "^4.0.0", "hastscript": "^9.0.0", "ink": "^5.0.0", "lz-string": "^1.0.0", "p-all": "^5.0.0", "periscopic": "^3.0.0", "postcss": "^8.0.0", "postcss-cli": "^11.0.0", "preact": "^10.0.0", "preact-render-to-string": "^6.0.0", "prettier": "^3.0.0", "puppeteer": "^22.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", "react-error-boundary": "^4.0.0", "rehype-autolink-headings": "^7.0.0", "rehype-document": "^7.0.0", "rehype-infer-description-meta": "^2.0.0", "rehype-infer-reading-time-meta": "^2.0.0", "rehype-infer-title-meta": "^2.0.0", "rehype-katex": "^7.0.0", "rehype-meta": "^4.0.0", "rehype-minify-url": "^5.0.0", "rehype-parse": "^9.0.0", "rehype-preset-minify": "^7.0.0", "rehype-raw": "^7.0.0", "rehype-remove-comments": "^6.0.0", "rehype-shift-heading": "^2.0.0", "rehype-slug": "^6.0.0", "rehype-starry-night": "^2.0.0", "rehype-stringify": "^10.0.0", "rehype-twoslash": "^1.0.0", "remark-cli": "^12.0.0", "remark-directive": "^3.0.0", "remark-frontmatter": "^5.0.0", "remark-gemoji": "^8.0.0", "remark-gfm": "^4.0.0", "remark-github": "^12.0.0", "remark-math": "^6.0.0", "remark-mdx-frontmatter": "^5.0.0", "remark-parse": "^11.0.0", "remark-preset-wooorm": "^10.0.0", "remark-squeeze-paragraphs": "^6.0.0", "remark-stringify": "^11.0.0", "remark-strip-badges": "^7.0.0", "remark-toc": "^9.0.0", "rollup": "^4.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", "unified": "^11.0.0", "unist-util-remove-position": "^5.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0", "vfile-matter": "^5.0.0", "vfile-message": "^4.0.0", "vite": "^5.0.0", "vue": "^3.0.0", "webpack": "^5.0.0", "xast-util-feed": "^2.0.0", "xast-util-sitemap": "^2.0.0", "xast-util-to-xml": "^4.0.0", "xo": "^0.58.0" }, "scripts": { "build": "tsc --build --clean && tsc --build && type-coverage", "docs": "npm run docs-prep && npm run docs-generate && npm run docs-post", "docs-css": "postcss --output public/index.css docs/_asset/index.css", "docs-deploy": "vercel && vercel alias $(pbpaste) mdxjs.com && vercel alias $(pbpaste) www.mdxjs.com", "docs-generate": "cross-env NODE_LOADER_CONFIG=website/loader.js node --no-warnings --loader @node-loader/core website/generate.js", "docs-js": "npm run docs-js-default && npm run docs-js-editor", "docs-js-default": "esbuild --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/index.js --target=es2020 docs/_asset/index.js", "docs-js-editor": "esbuild --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/editor.js --target=es2020 docs/_asset/editor.jsx", "docs-post": "node website/post.js", "docs-prep": "node website/prep.js && npm run docs-js && npm run docs-css", "format": "remark . --frail --output --quiet && remark . --ext mdx --frail --output --quiet --use remark-mdx && prettier . --log-level warn --write && xo --fix", "test": "npm run build && npm run format && npm run test-coverage", "test-api": "npm run test-api --workspaces --if-present", "test-coverage": "npm run test-coverage --workspaces --if-present" }, "browserslist": [ "last 2 versions", "not dead" ], "postcss": { "plugins": { "autoprefixer": true, "cssnano": { "preset": "default" } } }, "prettier": { "bracketSpacing": false, "singleQuote": true, "semi": false, "tabWidth": 2, "trailingComma": "none", "useTabs": false }, "remarkConfig": { "plugins": [ "remark-preset-wooorm", [ "remark-lint-no-html", false ] ] }, "typeCoverage": { "atLeast": 100, "detail": true, "ignoreCatch": true, "strict": true }, "xo": { "envs": [ "shared-node-browser" ], "overrides": [ { "files": [ "docs/_asset/editor.jsx", "docs/_asset/index.js" ], "envs": [ "browser" ] }, { "files": [ "docs/**/*.jsx", "docs/**/*.js" ], "extends": "xo-react", "rules": { "react/react-in-jsx-scope": "off" } }, { "files": [ "**/*.ts" ], "rules": { "@typescript-eslint/array-type": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/consistent-type-definitions": "off" } } ], "prettier": true, "rules": { "complexity": "off", "logical-assignment-operators": "off", "n/file-extension-in-import": "off", "react/jsx-no-bind": "off", "react/prop-types": "off" } } }