UNPKG

next-mdx-remote-client

Version:

A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.

133 lines (132 loc) 3.96 kB
{ "name": "next-mdx-remote-client", "description": "A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.", "version": "2.1.11", "type": "module", "main": "./dist/csr/index.js", "types": "./dist/csr/index.d.ts", "exports": { ".": { "types": "./dist/csr/index.d.ts", "import": "./dist/csr/index.js", "default": "./dist/csr/index.js" }, "./csr": { "types": "./dist/csr/index.d.ts", "import": "./dist/csr/index.js", "default": "./dist/csr/index.js" }, "./serialize": { "types": "./dist/csr/serialize.d.ts", "import": "./dist/csr/serialize.js", "default": "./dist/csr/serialize.js" }, "./rsc": { "types": "./dist/rsc/index.d.ts", "import": "./dist/rsc/index.js", "default": "./dist/rsc/index.js" }, "./utils": { "types": "./dist/utils/index.d.ts", "import": "./dist/utils/index.js", "default": "./dist/utils/index.js" } }, "scripts": { "build": "rimraf dist && tsc --build tsconfig.build.json && type-coverage", "format": "npm run prettier && npm run lint", "prettier": "prettier --write .", "lint": "eslint .", "pretest": "npm run build && npm pack --pack-destination ./dist", "test:watch": "vitest --pool=vmThreads", "test:file": "vitest --pool=vmThreads test.serialize-hydrate.spec.tsx", "test": "npm run test:esm && npm run test:rest", "test:esm": "vitest --pool=vmThreads run esm", "test:rest": "vitest --pool=forks run --exclude 'tests/*esm*'", "test-coverage": "vitest --pool=vmThreads run --coverage", "prepublishOnly": "npm run format && npm run test-coverage" }, "files": [ "dist/", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/ipikuka/next-mdx-remote-client.git" }, "keywords": [ "markdown", "MDX", "@mdx-js/mdx", "nextjs", "next-mdx-remote", "@next/mdx" ], "author": "ipikuka <talatkuyuk@gmail.com>", "license": "MPL 2.0", "homepage": "https://github.com/ipikuka/next-mdx-remote-client#readme", "bugs": { "url": "https://github.com/ipikuka/next-mdx-remote-client/issues" }, "dependencies": { "@babel/code-frame": "^7.29.7", "@mdx-js/mdx": "^3.1.1", "@mdx-js/react": "^3.1.1", "@types/mdx": "^2.0.13", "remark-mdx-remove-esm": "^1.3.2", "serialize-error": "^13.0.1", "vfile": "^6.0.3", "vfile-matter": "^5.0.1" }, "devDependencies": { "@eslint/js": "^9.39.4", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", "@types/babel__code-frame": "^7.27.0", "@types/eslint-config-prettier": "^6.11.3", "@types/node": "^24.12.4", "@types/react": "^19.2.15", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react-swc": "^4.3.1", "@vitest/coverage-v8": "^3.2.4", "dedent": "^1.7.2", "eslint": "^9.39.4", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.6", "eslint-plugin-react": "^7.37.5", "globals": "^17.6.0", "jsdom": "^29.1.1", "prettier": "^3.8.3", "recma-mdx-change-props": "^1.2.5", "recma-mdx-escape-missing-components": "^1.2.5", "recma-mdx-import-react": "^1.2.5", "remark-emoji": "^5.0.2", "remark-flexible-markers": "^1.3.5", "remark-flexible-paragraphs": "^1.3.4", "rimraf": "^6.1.3", "type-coverage": "^2.29.7", "typescript": "^5.9.3", "typescript-eslint": "^8.60.0", "unified": "^11.0.5", "vitest": "^3.2.4" }, "peerDependencies": { "react": ">= 19.1.0", "react-dom": ">= 19.1.0" }, "engines": { "node": ">=20.9.0" }, "typeCoverage": { "atLeast": 100, "detail": true, "ignoreAsAssertion": true, "ignoreCatch": true, "strict": true, "ignoreFiles": [ "tests/**/*" ] } }