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", "name": "astro-prism",
"version": "1.0.0", "version": "0.0.1",
"description": "This is not published at this time.", "description": "IYKYK",
"main": "index.mjs", "main": "index.mjs",
"scripts": { "scripts": {
"build": "echo 'build'", "build": "echo 'build'",

View file

@ -1,6 +1,6 @@
--- ---
import Prism from 'prismjs'; import Prism from 'prismjs';
import { addAstro } from '../astro-prism/index.mjs'; import { addAstro } from 'astro-prism';
import * as loadLanguages from 'prismjs/components/index.js'; import * as loadLanguages from 'prismjs/components/index.js';
export let lang; export let lang;

View file

@ -22,7 +22,6 @@
"components", "components",
"lib", "lib",
"runtime", "runtime",
"astro-prism",
"snowpack-plugin.cjs", "snowpack-plugin.cjs",
"astro.mjs" "astro.mjs"
], ],
@ -43,6 +42,7 @@
"@vue/server-renderer": "^3.0.10", "@vue/server-renderer": "^3.0.10",
"acorn": "^7.4.0", "acorn": "^7.4.0",
"astro-parser": "0.0.9", "astro-parser": "0.0.9",
"astro-prism": "0.0.1",
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
"cheerio": "^1.0.0-rc.5", "cheerio": "^1.0.0-rc.5",
"domhandler": "^4.1.0", "domhandler": "^4.1.0",