summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-05-04 12:15:13 -0500
committerGravatar GitHub <noreply@github.com> 2021-05-04 12:15:13 -0500
commitd924fcbeb4cf0b198736a8b6e2eba115cfe0027c (patch)
tree6c0a86328822882bbf87096489046ccb014f7f77
parent94038d329705acb79a0f804458821d43f59121db (diff)
downloadastro-d924fcbeb4cf0b198736a8b6e2eba115cfe0027c.tar.gz
astro-d924fcbeb4cf0b198736a8b6e2eba115cfe0027c.tar.zst
astro-d924fcbeb4cf0b198736a8b6e2eba115cfe0027c.zip
Fix `astro-prism` package (#170)
* fix: properly include astro-prism * chore: add changeset * Update `astro-prism` description
-rw-r--r--.changeset/twelve-forks-pull.md6
-rw-r--r--packages/astro-prism/package.json4
-rw-r--r--packages/astro/components/Prism.astro4
-rw-r--r--packages/astro/package.json2
4 files changed, 11 insertions, 5 deletions
diff --git a/.changeset/twelve-forks-pull.md b/.changeset/twelve-forks-pull.md
new file mode 100644
index 000000000..a77e5622e
--- /dev/null
+++ b/.changeset/twelve-forks-pull.md
@@ -0,0 +1,6 @@
+---
+'astro': patch
+'astro-prism': patch
+---
+
+Fix issue with Prism component missing dependency
diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json
index 47e6b3dea..b18d710d6 100644
--- a/packages/astro-prism/package.json
+++ b/packages/astro-prism/package.json
@@ -1,7 +1,7 @@
{
"name": "astro-prism",
- "version": "1.0.0",
- "description": "This is not published at this time.",
+ "version": "0.0.1",
+ "description": "IYKYK",
"main": "index.mjs",
"scripts": {
"build": "echo 'build'",
diff --git a/packages/astro/components/Prism.astro b/packages/astro/components/Prism.astro
index a1d504882..5207d8bda 100644
--- a/packages/astro/components/Prism.astro
+++ b/packages/astro/components/Prism.astro
@@ -1,6 +1,6 @@
---
import Prism from 'prismjs';
-import { addAstro } from '../astro-prism/index.mjs';
+import { addAstro } from 'astro-prism';
import * as loadLanguages from 'prismjs/components/index.js';
export let lang;
@@ -39,4 +39,4 @@ let html = Prism.highlight(code, grammar, lang);
let className = `language-${lang}`;
---
-<pre class={className}><code class={className}>{html}</code></pre> \ No newline at end of file
+<pre class={className}><code class={className}>{html}</code></pre>
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 2da876873..77d770ea3 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -22,7 +22,6 @@
"components",
"lib",
"runtime",
- "astro-prism",
"snowpack-plugin.cjs",
"astro.mjs"
],
@@ -43,6 +42,7 @@
"@vue/server-renderer": "^3.0.10",
"acorn": "^7.4.0",
"astro-parser": "0.0.9",
+ "astro-prism": "0.0.1",
"autoprefixer": "^10.2.5",
"cheerio": "^1.0.0-rc.5",
"domhandler": "^4.1.0",