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:
parent
94038d3297
commit
d924fcbeb4
4 changed files with 11 additions and 5 deletions
6
.changeset/twelve-forks-pull.md
Normal file
6
.changeset/twelve-forks-pull.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'astro': patch
|
||||
'astro-prism': patch
|
||||
---
|
||||
|
||||
Fix issue with Prism component missing dependency
|
|
@ -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'",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue