|
11 | 11 | },
|
12 | 12 | "type": "module",
|
13 | 13 | "workspaces": [
|
14 |
| - "packages/remark-mdx", |
15 |
| - "packages/mdx", |
16 |
| - "packages/react", |
17 |
| - "packages/preact", |
18 |
| - "packages/vue", |
19 |
| - "packages/esbuild", |
20 |
| - "packages/loader", |
21 |
| - "packages/node-loader", |
22 |
| - "packages/register", |
23 |
| - "packages/rollup" |
| 14 | + "packages/remark-mdx/", |
| 15 | + "packages/mdx/", |
| 16 | + "packages/react/", |
| 17 | + "packages/preact/", |
| 18 | + "packages/vue/", |
| 19 | + "packages/esbuild/", |
| 20 | + "packages/loader/", |
| 21 | + "packages/node-loader/", |
| 22 | + "packages/register/", |
| 23 | + "packages/rollup/" |
24 | 24 | ],
|
25 | 25 | "devDependencies": {
|
| 26 | + "@babel/core": "^7.0.0", |
| 27 | + "@emotion/react": "^11.0.0", |
26 | 28 | "@node-loader/core": "^2.0.0",
|
27 |
| - "@types/dlv": "^1.1.2", |
| 29 | + "@types/babel__core": "^7.0.0", |
| 30 | + "@types/dlv": "^1.0.0", |
| 31 | + "@types/mdx": "^2.0.0", |
| 32 | + "@types/react": "^18.0.0", |
| 33 | + "@types/react-dom": "^18.0.0", |
| 34 | + "@vue/babel-plugin-jsx": "^1.0.0", |
| 35 | + "@vue/server-renderer": "^3.0.0", |
28 | 36 | "@wooorm/starry-night": "^3.0.0",
|
29 | 37 | "acorn": "^8.0.0",
|
30 |
| - "ajv": "^8.12.0", |
31 | 38 | "ap-style-title-case": "^2.0.0",
|
32 | 39 | "autoprefixer": "^10.0.0",
|
| 40 | + "babel-loader": "^9.0.0", |
33 | 41 | "c8": "^8.0.0",
|
34 | 42 | "capture-website": "^3.0.0",
|
35 | 43 | "chrome-aws-lambda": "^10.0.0",
|
|
49 | 57 | "hast-util-to-jsx-runtime": "^2.0.0",
|
50 | 58 | "hast-util-to-text": "^4.0.0",
|
51 | 59 | "hastscript": "^8.0.0",
|
| 60 | + "nanoid": "^4.0.0", |
52 | 61 | "p-all": "^5.0.0",
|
53 | 62 | "periscopic": "^3.0.0",
|
54 | 63 | "postcss": "^8.0.0",
|
55 | 64 | "postcss-cli": "^10.0.0",
|
| 65 | + "preact": "^10.0.0", |
| 66 | + "preact-render-to-string": "^6.0.0", |
56 | 67 | "prettier": "^3.0.0",
|
57 | 68 | "puppeteer-core": "^20.0.0",
|
58 | 69 | "react": "^18.0.0",
|
|
63 | 74 | "rehype-infer-description-meta": "^2.0.0",
|
64 | 75 | "rehype-infer-reading-time-meta": "^2.0.0",
|
65 | 76 | "rehype-infer-title-meta": "^2.0.0",
|
| 77 | + "rehype-katex": "^7.0.0", |
66 | 78 | "rehype-meta": "^4.0.0",
|
67 | 79 | "rehype-minify-url": "^5.0.0",
|
68 | 80 | "rehype-parse": "^9.0.0",
|
|
79 | 91 | "remark-gemoji": "^8.0.0",
|
80 | 92 | "remark-gfm": "^4.0.0",
|
81 | 93 | "remark-github": "^12.0.0",
|
| 94 | + "remark-math": "^6.0.0", |
82 | 95 | "remark-mdx-frontmatter": "^3.0.0",
|
| 96 | + "remark-parse": "^11.0.0", |
83 | 97 | "remark-preset-wooorm": "^9.0.0",
|
84 | 98 | "remark-squeeze-paragraphs": "^6.0.0",
|
| 99 | + "remark-stringify": "^11.0.0", |
85 | 100 | "remark-strip-badges": "^7.0.0",
|
86 | 101 | "remark-toc": "^9.0.0",
|
| 102 | + "rollup": "^4.0.0", |
| 103 | + "source-map-support": "^0.5.0", |
87 | 104 | "type-coverage": "^2.0.0",
|
88 | 105 | "typescript": "^5.0.0",
|
89 |
| - "unified": "^11.0.0", |
| 106 | + "unified": "^11.0.3", |
90 | 107 | "unist-builder": "^4.0.0",
|
91 | 108 | "unist-util-remove-position": "^5.0.0",
|
92 | 109 | "unist-util-visit": "^5.0.0",
|
93 | 110 | "vfile": "^6.0.0",
|
| 111 | + "vfile-message": "^4.0.0", |
| 112 | + "vue": "^3.0.0", |
| 113 | + "webpack": "^5.0.0", |
94 | 114 | "xast-util-feed": "^2.0.0",
|
95 | 115 | "xast-util-sitemap": "^2.0.0",
|
96 | 116 | "xast-util-to-xml": "^4.0.0",
|
97 | 117 | "xo": "^0.56.0"
|
98 | 118 | },
|
99 | 119 | "scripts": {
|
100 |
| - "docs-js": "esbuild docs/_asset/index.js --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/index.js --target=es2020 && esbuild docs/_asset/editor.jsx --bundle --conditions=browser,production --define:process.env.NODE_ENV=\\\"production\\\" --log-level=warning --minify --outfile=public/editor.js --target=es2020", |
101 |
| - "docs-css": "postcss docs/_asset/index.css -o public/index.css", |
102 |
| - "docs-prep": "node website/prep.js && npm run docs-js && npm run docs-css", |
103 |
| - "docs-generate": "cross-env NODE_LOADER_CONFIG=website/loader.js node --no-warnings --experimental-loader @node-loader/core website/generate.js", |
104 |
| - "docs-post": "node website/post.js", |
| 120 | + "build": "tsc --build --clean && tsc --build && type-coverage", |
105 | 121 | "docs": "npm run docs-prep && npm run docs-generate && npm run docs-post",
|
| 122 | + "docs-css": "postcss --output public/index.css docs/_asset/index.css", |
106 | 123 | "docs-deploy": "vercel && vercel alias $(pbpaste) mdxjs.com && vercel alias $(pbpaste) www.mdxjs.com",
|
107 |
| - "#": "remark . -qfo && remark . -e mdx -u mdx -qfo && ", |
108 |
| - "##": "remark . -qf && remark . -e mdx -u mdx -qf && ", |
109 |
| - "format": "prettier . -w --log-level warn && xo --fix", |
110 |
| - "lint": "prettier . -c --log-level warn && xo", |
111 |
| - "build": "tsc --build --clean && tsc --build && type-coverage", |
| 124 | + "docs-generate": "cross-env NODE_LOADER_CONFIG=website/loader.js node --no-warnings --loader @node-loader/core website/generate.js", |
| 125 | + "docs-js": "npm run docs-js-default && npm run docs-js-editor", |
| 126 | + "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", |
| 127 | + "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", |
| 128 | + "docs-post": "node website/post.js", |
| 129 | + "docs-prep": "node website/prep.js && npm run docs-js && npm run docs-css", |
| 130 | + "#": "remark . --frail --output --quiet && remark . --ext mdx --frail --output --plugin remark-mdx --quiet", |
| 131 | + "format": "prettier . --log-level warn --write && xo --fix", |
| 132 | + "test": "npm run build && npm run format && npm run test-coverage", |
112 | 133 | "test-api": "npm run test-api --workspaces --if-present",
|
113 |
| - "test-coverage": "npm run test-coverage --workspaces --if-present", |
114 |
| - "test": "npm run build && npm run format && npm run test-coverage" |
| 134 | + "test-coverage": "npm run test-coverage --workspaces --if-present" |
115 | 135 | },
|
116 | 136 | "browserslist": [
|
117 | 137 | "last 2 versions",
|
118 | 138 | "not dead"
|
119 | 139 | ],
|
| 140 | + "postcss": { |
| 141 | + "plugins": { |
| 142 | + "autoprefixer": true, |
| 143 | + "cssnano": { |
| 144 | + "preset": "default" |
| 145 | + } |
| 146 | + } |
| 147 | + }, |
120 | 148 | "prettier": {
|
121 |
| - "singleQuote": true, |
122 | 149 | "bracketSpacing": false,
|
| 150 | + "singleQuote": true, |
123 | 151 | "semi": false,
|
124 |
| - "trailingComma": "none" |
| 152 | + "tabWidth": 2, |
| 153 | + "trailingComma": "none", |
| 154 | + "useTabs": false |
| 155 | + }, |
| 156 | + "remarkConfig": { |
| 157 | + "plugins": [ |
| 158 | + "remark-preset-wooorm", |
| 159 | + [ |
| 160 | + "remark-lint-no-html", |
| 161 | + false |
| 162 | + ], |
| 163 | + [ |
| 164 | + "remark-lint-file-extension", |
| 165 | + false |
| 166 | + ] |
| 167 | + ] |
| 168 | + }, |
| 169 | + "typeCoverage": { |
| 170 | + "atLeast": 100, |
| 171 | + "detail": true, |
| 172 | + "ignoreCatch": true, |
| 173 | + "strict": true |
125 | 174 | },
|
126 | 175 | "xo": {
|
127 | 176 | "envs": [
|
|
161 | 210 | }
|
162 | 211 | }
|
163 | 212 | ]
|
164 |
| - }, |
165 |
| - "postcss": { |
166 |
| - "plugins": { |
167 |
| - "autoprefixer": true, |
168 |
| - "cssnano": { |
169 |
| - "preset": "default" |
170 |
| - } |
171 |
| - } |
172 |
| - }, |
173 |
| - "remarkConfig": { |
174 |
| - "plugins": [ |
175 |
| - "remark-preset-wooorm", |
176 |
| - [ |
177 |
| - "remark-lint-no-html", |
178 |
| - false |
179 |
| - ], |
180 |
| - [ |
181 |
| - "remark-lint-file-extension", |
182 |
| - false |
183 |
| - ] |
184 |
| - ] |
185 | 213 | }
|
186 | 214 | }
|
0 commit comments