@astrojs/mdx 1.0.0-beta.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -19
- package/dist/index.d.ts +4 -2
- package/dist/index.js +83 -35
- package/dist/plugins.d.ts +4 -5
- package/dist/plugins.js +36 -80
- package/dist/rehype-collect-headings.d.ts +1 -1
- package/dist/rehype-meta-string.js +2 -3
- package/dist/rehype-optimize-static.d.ts +11 -0
- package/dist/rehype-optimize-static.js +62 -0
- package/dist/remark-images-to-component.d.ts +2 -0
- package/dist/remark-images-to-component.js +83 -0
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +23 -15
- package/package.json +39 -30
- package/template/content-module-types.d.ts +9 -0
- package/.turbo/turbo-build.log +0 -5
- package/CHANGELOG.md +0 -469
- package/src/index.ts +0 -201
- package/src/plugins.ts +0 -246
- package/src/rehype-collect-headings.ts +0 -11
- package/src/rehype-meta-string.ts +0 -17
- package/src/remark-prism.ts +0 -18
- package/src/remark-shiki.ts +0 -95
- package/src/utils.ts +0 -102
- package/test/fixtures/mdx-astro-markdown-remarkRehype/src/pages/index.mdx +0 -5
- package/test/fixtures/mdx-component/src/components/Test.mdx +0 -3
- package/test/fixtures/mdx-component/src/components/WithFragment.mdx +0 -3
- package/test/fixtures/mdx-component/src/pages/glob.astro +0 -20
- package/test/fixtures/mdx-component/src/pages/index.astro +0 -5
- package/test/fixtures/mdx-component/src/pages/w-fragment.astro +0 -5
- package/test/fixtures/mdx-escape/src/components/Em.astro +0 -7
- package/test/fixtures/mdx-escape/src/components/P.astro +0 -1
- package/test/fixtures/mdx-escape/src/components/Title.astro +0 -1
- package/test/fixtures/mdx-escape/src/pages/html-tag.mdx +0 -5
- package/test/fixtures/mdx-escape/src/pages/index.mdx +0 -13
- package/test/fixtures/mdx-frontmatter/src/layouts/Base.astro +0 -38
- package/test/fixtures/mdx-frontmatter/src/pages/glob.json.js +0 -9
- package/test/fixtures/mdx-frontmatter/src/pages/index.mdx +0 -10
- package/test/fixtures/mdx-frontmatter/src/pages/with-headings.mdx +0 -7
- package/test/fixtures/mdx-frontmatter-injection/astro.config.mjs +0 -12
- package/test/fixtures/mdx-frontmatter-injection/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-frontmatter-injection/package.json +0 -12
- package/test/fixtures/mdx-frontmatter-injection/src/layouts/Base.astro +0 -17
- package/test/fixtures/mdx-frontmatter-injection/src/markdown-plugins.mjs +0 -27
- package/test/fixtures/mdx-frontmatter-injection/src/pages/glob.json.js +0 -6
- package/test/fixtures/mdx-frontmatter-injection/src/pages/page-1.mdx +0 -8
- package/test/fixtures/mdx-frontmatter-injection/src/pages/page-2.mdx +0 -24
- package/test/fixtures/mdx-get-headings/src/pages/pages.json.js +0 -11
- package/test/fixtures/mdx-get-headings/src/pages/test-with-jsx-expressions.mdx +0 -8
- package/test/fixtures/mdx-get-headings/src/pages/test.mdx +0 -9
- package/test/fixtures/mdx-get-static-paths/src/content/1.mdx +0 -5
- package/test/fixtures/mdx-get-static-paths/src/pages/[slug].astro +0 -34
- package/test/fixtures/mdx-infinite-loop/astro.config.ts +0 -6
- package/test/fixtures/mdx-infinite-loop/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-infinite-loop/package.json +0 -10
- package/test/fixtures/mdx-infinite-loop/src/components/Test.js +0 -3
- package/test/fixtures/mdx-infinite-loop/src/pages/doc.mdx +0 -6
- package/test/fixtures/mdx-infinite-loop/src/pages/index.astro +0 -5
- package/test/fixtures/mdx-namespace/astro.config.mjs +0 -6
- package/test/fixtures/mdx-namespace/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-namespace/package.json +0 -10
- package/test/fixtures/mdx-namespace/src/components/Component.jsx +0 -6
- package/test/fixtures/mdx-namespace/src/pages/object.mdx +0 -3
- package/test/fixtures/mdx-namespace/src/pages/star.mdx +0 -3
- package/test/fixtures/mdx-page/astro.config.ts +0 -5
- package/test/fixtures/mdx-page/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-page/package.json +0 -9
- package/test/fixtures/mdx-page/src/pages/index.mdx +0 -3
- package/test/fixtures/mdx-page/src/styles.css +0 -3
- package/test/fixtures/mdx-plugins/src/pages/with-plugins.mdx +0 -25
- package/test/fixtures/mdx-plus-react/astro.config.mjs +0 -6
- package/test/fixtures/mdx-plus-react/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-plus-react/package.json +0 -10
- package/test/fixtures/mdx-plus-react/src/components/Component.jsx +0 -5
- package/test/fixtures/mdx-plus-react/src/pages/index.astro +0 -11
- package/test/fixtures/mdx-slots/src/components/Slotted.astro +0 -4
- package/test/fixtures/mdx-slots/src/components/Test.mdx +0 -15
- package/test/fixtures/mdx-slots/src/pages/glob.astro +0 -11
- package/test/fixtures/mdx-slots/src/pages/index.astro +0 -5
- package/test/fixtures/mdx-syntax-hightlighting/src/pages/index.mdx +0 -9
- package/test/fixtures/mdx-url-export/src/pages/pages.json.js +0 -9
- package/test/fixtures/mdx-url-export/src/pages/test-1.mdx +0 -1
- package/test/fixtures/mdx-url-export/src/pages/test-2.mdx +0 -1
- package/test/fixtures/mdx-url-export/src/pages/with-url-override.mdx +0 -3
- package/test/fixtures/mdx-vite-env-vars/astro.config.mjs +0 -9
- package/test/fixtures/mdx-vite-env-vars/node_modules/.bin/astro +0 -17
- package/test/fixtures/mdx-vite-env-vars/package.json +0 -7
- package/test/fixtures/mdx-vite-env-vars/src/pages/frontmatter.json.js +0 -7
- package/test/fixtures/mdx-vite-env-vars/src/pages/vite-env-vars.mdx +0 -38
- package/test/mdx-astro-markdown-remarkRehype.test.js +0 -85
- package/test/mdx-component.test.js +0 -191
- package/test/mdx-escape.test.js +0 -32
- package/test/mdx-frontmatter-injection.test.js +0 -53
- package/test/mdx-frontmatter.test.js +0 -77
- package/test/mdx-get-headings.test.js +0 -151
- package/test/mdx-get-static-paths.test.js +0 -32
- package/test/mdx-infinite-loop.test.js +0 -30
- package/test/mdx-namespace.test.js +0 -83
- package/test/mdx-page.test.js +0 -64
- package/test/mdx-plugins.test.js +0 -250
- package/test/mdx-plus-react.test.js +0 -25
- package/test/mdx-slots.js +0 -124
- package/test/mdx-syntax-highlighting.test.js +0 -145
- package/test/mdx-url-export.test.js +0 -28
- package/test/mdx-vite-env-vars.test.js +0 -54
- package/tsconfig.json +0 -10
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { visit } from "estree-util-visit";
|
|
2
|
+
import { toHtml } from "hast-util-to-html";
|
|
3
|
+
const exportConstComponentsRe = /export\s+const\s+components\s*=/;
|
|
4
|
+
function rehypeOptimizeStatic(options) {
|
|
5
|
+
return (tree) => {
|
|
6
|
+
const customComponentNames = new Set(options?.customComponentNames);
|
|
7
|
+
for (const child of tree.children) {
|
|
8
|
+
if (child.type === "mdxjsEsm" && exportConstComponentsRe.test(child.value)) {
|
|
9
|
+
const objectPropertyNodes = child.data.estree.body[0]?.declarations?.[0]?.init?.properties;
|
|
10
|
+
if (objectPropertyNodes) {
|
|
11
|
+
for (const objectPropertyNode of objectPropertyNodes) {
|
|
12
|
+
const componentName = objectPropertyNode.key?.name ?? objectPropertyNode.key?.value;
|
|
13
|
+
if (componentName) {
|
|
14
|
+
customComponentNames.add(componentName);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const allPossibleElements = /* @__PURE__ */ new Set();
|
|
21
|
+
const elementStack = [];
|
|
22
|
+
visit(tree, {
|
|
23
|
+
enter(node) {
|
|
24
|
+
const isCustomComponent = node.tagName && customComponentNames.has(node.tagName);
|
|
25
|
+
if (node.type.startsWith("mdx") || isCustomComponent) {
|
|
26
|
+
for (const el of elementStack) {
|
|
27
|
+
allPossibleElements.delete(el);
|
|
28
|
+
}
|
|
29
|
+
elementStack.length = 0;
|
|
30
|
+
}
|
|
31
|
+
if (node.type === "element" || node.type === "mdxJsxFlowElement") {
|
|
32
|
+
elementStack.push(node);
|
|
33
|
+
allPossibleElements.add(node);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
leave(node, _, __, parents) {
|
|
37
|
+
if (node.type === "element" || node.type === "mdxJsxFlowElement") {
|
|
38
|
+
elementStack.pop();
|
|
39
|
+
const parent = parents[parents.length - 1];
|
|
40
|
+
if (allPossibleElements.has(parent)) {
|
|
41
|
+
allPossibleElements.delete(node);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
for (const el of allPossibleElements) {
|
|
47
|
+
if (el.type === "mdxJsxFlowElement") {
|
|
48
|
+
el.attributes.push({
|
|
49
|
+
type: "mdxJsxAttribute",
|
|
50
|
+
name: "set:html",
|
|
51
|
+
value: toHtml(el.children)
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
el.properties["set:html"] = toHtml(el.children);
|
|
55
|
+
}
|
|
56
|
+
el.children = [];
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
rehypeOptimizeStatic
|
|
62
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { visit } from "unist-util-visit";
|
|
2
|
+
import { jsToTreeNode } from "./utils.js";
|
|
3
|
+
function remarkImageToComponent() {
|
|
4
|
+
return function(tree, file) {
|
|
5
|
+
if (!file.data.imagePaths)
|
|
6
|
+
return;
|
|
7
|
+
const importsStatements = [];
|
|
8
|
+
const importedImages = /* @__PURE__ */ new Map();
|
|
9
|
+
visit(tree, "image", (node, index, parent) => {
|
|
10
|
+
if (file.data.imagePaths?.has(node.url)) {
|
|
11
|
+
let importName = importedImages.get(node.url);
|
|
12
|
+
if (!importName) {
|
|
13
|
+
importName = `__${importedImages.size}_${node.url.replace(/\W/g, "_")}__`;
|
|
14
|
+
importsStatements.push({
|
|
15
|
+
type: "mdxjsEsm",
|
|
16
|
+
value: "",
|
|
17
|
+
data: {
|
|
18
|
+
estree: {
|
|
19
|
+
type: "Program",
|
|
20
|
+
sourceType: "module",
|
|
21
|
+
body: [
|
|
22
|
+
{
|
|
23
|
+
type: "ImportDeclaration",
|
|
24
|
+
source: { type: "Literal", value: node.url, raw: JSON.stringify(node.url) },
|
|
25
|
+
specifiers: [
|
|
26
|
+
{
|
|
27
|
+
type: "ImportDefaultSpecifier",
|
|
28
|
+
local: { type: "Identifier", name: importName }
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
importedImages.set(node.url, importName);
|
|
37
|
+
}
|
|
38
|
+
const componentElement = {
|
|
39
|
+
name: "__AstroImage__",
|
|
40
|
+
type: "mdxJsxFlowElement",
|
|
41
|
+
attributes: [
|
|
42
|
+
{
|
|
43
|
+
name: "src",
|
|
44
|
+
type: "mdxJsxAttribute",
|
|
45
|
+
value: {
|
|
46
|
+
type: "mdxJsxAttributeValueExpression",
|
|
47
|
+
value: importName,
|
|
48
|
+
data: {
|
|
49
|
+
estree: {
|
|
50
|
+
type: "Program",
|
|
51
|
+
sourceType: "module",
|
|
52
|
+
comments: [],
|
|
53
|
+
body: [
|
|
54
|
+
{
|
|
55
|
+
type: "ExpressionStatement",
|
|
56
|
+
expression: { type: "Identifier", name: importName }
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{ name: "alt", type: "mdxJsxAttribute", value: node.alt || "" }
|
|
64
|
+
],
|
|
65
|
+
children: []
|
|
66
|
+
};
|
|
67
|
+
if (node.title) {
|
|
68
|
+
componentElement.attributes.push({
|
|
69
|
+
type: "mdxJsxAttribute",
|
|
70
|
+
name: "title",
|
|
71
|
+
value: node.title
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
parent.children.splice(index, 1, componentElement);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
tree.children.unshift(...importsStatements);
|
|
78
|
+
tree.children.unshift(jsToTreeNode(`import { Image as __AstroImage__ } from "astro:assets";`));
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
remarkImageToComponent
|
|
83
|
+
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluggableList } from '@mdx-js/mdx/lib/core.js';
|
|
1
2
|
import type { Options as AcornOpts } from 'acorn';
|
|
2
3
|
import type { AstroConfig } from 'astro';
|
|
3
4
|
import matter from 'gray-matter';
|
|
@@ -14,5 +15,5 @@ export declare function getFileInfo(id: string, config: AstroConfig): FileInfo;
|
|
|
14
15
|
*/
|
|
15
16
|
export declare function parseFrontmatter(code: string, id: string): matter.GrayMatterFile<string>;
|
|
16
17
|
export declare function jsToTreeNode(jsString: string, acornOpts?: AcornOpts): MdxjsEsm;
|
|
17
|
-
export declare function
|
|
18
|
+
export declare function ignoreStringPlugins(plugins: any[]): PluggableList;
|
|
18
19
|
export {};
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { parse } from "acorn";
|
|
2
2
|
import matter from "gray-matter";
|
|
3
|
+
import { bold, yellow } from "kleur/colors";
|
|
3
4
|
function appendForwardSlash(path) {
|
|
4
5
|
return path.endsWith("/") ? path : path + "/";
|
|
5
6
|
}
|
|
@@ -17,7 +18,7 @@ function getFileInfo(id, config) {
|
|
|
17
18
|
const isPage = fileId.includes("/pages/");
|
|
18
19
|
if (isPage) {
|
|
19
20
|
fileUrl = fileId.replace(/^.*?\/pages\//, sitePathname).replace(/(\/index)?\.mdx$/, "");
|
|
20
|
-
} else if (url
|
|
21
|
+
} else if (url?.pathname.startsWith(config.root.pathname)) {
|
|
21
22
|
fileUrl = url.pathname.slice(config.root.pathname.length);
|
|
22
23
|
} else {
|
|
23
24
|
fileUrl = fileId;
|
|
@@ -59,23 +60,30 @@ function jsToTreeNode(jsString, acornOpts = {
|
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
function ignoreStringPlugins(plugins) {
|
|
64
|
+
let validPlugins = [];
|
|
65
|
+
let hasInvalidPlugin = false;
|
|
66
|
+
for (const plugin of plugins) {
|
|
67
|
+
if (typeof plugin === "string") {
|
|
68
|
+
console.warn(yellow(`[MDX] ${bold(plugin)} not applied.`));
|
|
69
|
+
hasInvalidPlugin = true;
|
|
70
|
+
} else if (Array.isArray(plugin) && typeof plugin[0] === "string") {
|
|
71
|
+
console.warn(yellow(`[MDX] ${bold(plugin[0])} not applied.`));
|
|
72
|
+
hasInvalidPlugin = true;
|
|
73
|
+
} else {
|
|
74
|
+
validPlugins.push(plugin);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (hasInvalidPlugin) {
|
|
78
|
+
console.warn(
|
|
79
|
+
`To inherit Markdown plugins in MDX, please use explicit imports in your config instead of "strings." See Markdown docs: https://docs.astro.build/en/guides/markdown-content/#markdown-plugins`
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
return validPlugins;
|
|
75
83
|
}
|
|
76
84
|
export {
|
|
77
85
|
getFileInfo,
|
|
78
|
-
|
|
86
|
+
ignoreStringPlugins,
|
|
79
87
|
jsToTreeNode,
|
|
80
88
|
parseFrontmatter
|
|
81
89
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/mdx",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "1.0.0
|
|
3
|
+
"description": "Add support for MDX pages in your Astro site",
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -22,49 +22,58 @@
|
|
|
22
22
|
".": "./dist/index.js",
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"template"
|
|
28
|
+
],
|
|
25
29
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"es-module-lexer": "^0.10.5",
|
|
32
|
-
"estree-util-visit": "^1.2.0",
|
|
33
|
-
"github-slugger": "^1.4.0",
|
|
30
|
+
"@mdx-js/mdx": "^2.3.0",
|
|
31
|
+
"acorn": "^8.10.0",
|
|
32
|
+
"es-module-lexer": "^1.3.0",
|
|
33
|
+
"estree-util-visit": "^1.2.1",
|
|
34
|
+
"github-slugger": "^2.0.0",
|
|
34
35
|
"gray-matter": "^4.0.3",
|
|
36
|
+
"hast-util-to-html": "^8.0.4",
|
|
35
37
|
"kleur": "^4.1.4",
|
|
36
38
|
"rehype-raw": "^6.1.1",
|
|
37
39
|
"remark-frontmatter": "^4.0.1",
|
|
38
40
|
"remark-gfm": "^3.0.1",
|
|
39
41
|
"remark-smartypants": "^2.0.0",
|
|
40
|
-
"shiki": "^0.
|
|
41
|
-
"
|
|
42
|
-
"
|
|
42
|
+
"shiki": "^0.14.3",
|
|
43
|
+
"source-map": "^0.7.4",
|
|
44
|
+
"unist-util-visit": "^4.1.2",
|
|
45
|
+
"vfile": "^5.3.7",
|
|
46
|
+
"@astrojs/markdown-remark": "3.0.0",
|
|
47
|
+
"@astrojs/prism": "3.0.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"astro": "^3.0.0"
|
|
43
51
|
},
|
|
44
52
|
"devDependencies": {
|
|
45
|
-
"@types/chai": "^4.3.
|
|
46
|
-
"@types/estree": "^1.0.
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/mocha": "^9.1.1",
|
|
53
|
+
"@types/chai": "^4.3.5",
|
|
54
|
+
"@types/estree": "^1.0.1",
|
|
55
|
+
"@types/mdast": "^3.0.12",
|
|
56
|
+
"@types/mocha": "^10.0.1",
|
|
50
57
|
"@types/yargs-parser": "^21.0.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"mdast-util-to-string": "^3.1.0",
|
|
58
|
-
"mocha": "^9.2.2",
|
|
58
|
+
"chai": "^4.3.7",
|
|
59
|
+
"cheerio": "1.0.0-rc.12",
|
|
60
|
+
"linkedom": "^0.15.1",
|
|
61
|
+
"mdast-util-mdx": "^2.0.1",
|
|
62
|
+
"mdast-util-to-string": "^3.2.0",
|
|
63
|
+
"mocha": "^10.2.0",
|
|
59
64
|
"reading-time": "^1.5.0",
|
|
60
|
-
"rehype-
|
|
65
|
+
"rehype-mathjax": "^4.0.3",
|
|
66
|
+
"rehype-pretty-code": "^0.10.0",
|
|
67
|
+
"remark-math": "^5.1.1",
|
|
61
68
|
"remark-rehype": "^10.1.0",
|
|
62
|
-
"remark-shiki-twoslash": "^3.1.
|
|
69
|
+
"remark-shiki-twoslash": "^3.1.3",
|
|
63
70
|
"remark-toc": "^8.0.1",
|
|
64
|
-
"vite": "^4.
|
|
71
|
+
"vite": "^4.4.9",
|
|
72
|
+
"astro": "3.0.0",
|
|
73
|
+
"astro-scripts": "0.0.14"
|
|
65
74
|
},
|
|
66
75
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
76
|
+
"node": ">=18.14.1"
|
|
68
77
|
},
|
|
69
78
|
"scripts": {
|
|
70
79
|
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
[34m@astrojs/mdx:build: [0mcache hit, replaying output [2me3662492a73790a4[0m
|
|
2
|
-
[34m@astrojs/mdx:build: [0m
|
|
3
|
-
[34m@astrojs/mdx:build: [0m> @astrojs/mdx@1.0.0-beta.2 build /home/runner/work/astro/astro/packages/integrations/mdx
|
|
4
|
-
[34m@astrojs/mdx:build: [0m> astro-scripts build "src/**/*.ts" && tsc
|
|
5
|
-
[34m@astrojs/mdx:build: [0m
|