0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix astro-prism package (#170)

* fix: properly include astro-prism

* chore: add changeset

* Update `astro-prism` description
This commit is contained in:
Nate Moore 2021-05-04 12:15:13 -05:00 committed by GitHub
parent 94038d3297
commit d924fcbeb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View file

@ -0,0 +1,6 @@
---
'astro': patch
'astro-prism': patch
---
Fix issue with Prism component missing dependency

View file

@ -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'",

View file

@ -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>
<pre class={className}><code class={className}>{html}</code></pre>

View file

@ -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",