From 6445c18117bd6f49f55db2e0b75839da66a27746 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 7 Jun 2021 15:35:23 -0400 Subject: [PATCH] Move the prism package to the scope name (#317) * Move the prism package to the scope name `astro-prism` -> `@astrojs/prism` * move the version to 0.2.0 --- packages/astro-prism/CHANGELOG.md | 2 +- packages/astro-prism/package.json | 4 ++-- packages/astro/components/Prism.astro | 2 +- packages/astro/package.json | 2 +- packages/astro/src/external.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/astro-prism/CHANGELOG.md b/packages/astro-prism/CHANGELOG.md index 0b0ba60b9..886809e43 100644 --- a/packages/astro-prism/CHANGELOG.md +++ b/packages/astro-prism/CHANGELOG.md @@ -1,4 +1,4 @@ -# astro-prism +# @astrojs/prism ## 0.0.2 diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json index 7e75e1e7b..b885b0bb4 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -1,6 +1,6 @@ { - "name": "astro-prism", - "version": "0.0.2", + "name": "@astrojs/prism", + "version": "0.2.0", "description": "IYKYK", "main": "index.mjs", "scripts": { diff --git a/packages/astro/components/Prism.astro b/packages/astro/components/Prism.astro index cc971a11b..674a6cc67 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'; +import { addAstro } from '@astrojs/prism'; import * as loadLanguages from 'prismjs/components/index.js'; export let lang; diff --git a/packages/astro/package.json b/packages/astro/package.json index d6e72b63d..e5d296492 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -37,6 +37,7 @@ }, "dependencies": { "@astrojs/markdown-support": "0.1.1", + "@astrojs/prism": "0.2.0", "@astrojs/renderer-preact": "0.1.0", "@astrojs/renderer-react": "0.1.0", "@astrojs/renderer-svelte": "0.1.0", @@ -51,7 +52,6 @@ "acorn": "^7.4.0", "astring": "^1.7.4", "astro-parser": "0.12.1", - "astro-prism": "0.0.2", "autoprefixer": "^10.2.5", "cheerio": "^1.0.0-rc.6", "del": "^6.0.0", diff --git a/packages/astro/src/external.ts b/packages/astro/src/external.ts index a6ab86bea..c3f99281f 100644 --- a/packages/astro/src/external.ts +++ b/packages/astro/src/external.ts @@ -9,7 +9,7 @@ const pkg = require('../package.json'); */ // These packages SHOULD be built by `esinstall` -const allowList = new Set(['astring', 'astro-prism', 'estree-util-value-to-estree', 'prismjs', 'shorthash']); +const allowList = new Set(['astring', '@astrojs/prism', 'estree-util-value-to-estree', 'prismjs', 'shorthash']); const isAstroRenderer = (name: string) => { return name.startsWith(`@astrojs/renderer-`);