diff --git a/README.md b/README.md index 0fe9c38..a4e117f 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ And all is done! ## Astro -With Astro, you just need to import the `Garlic` and `Clove` components into your layout: +install the package with `npm i garlic-astro`. With Astro, you just need to import the `Garlic` and `Clove` components into your layout: ```astro import {Garlic, Clove} from 'garlic-astro'; diff --git a/demos/astro/strong-singularity/package.json b/demos/astro/strong-singularity/package.json index 17205c9..061d2cc 100644 --- a/demos/astro/strong-singularity/package.json +++ b/demos/astro/strong-singularity/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/mdx": "^0.17.2", "astro": "^2.0.16", - "garlic-astro": "file:../../../garlic-astro", + "garlic-astro": "^0.0.1", "jsdom": "^21.1.0" } } diff --git a/garlic-astro/package.json b/garlic-astro/package.json index 1470d55..7e144ad 100644 --- a/garlic-astro/package.json +++ b/garlic-astro/package.json @@ -2,6 +2,8 @@ "name": "garlic-astro", "version": "0.0.1", "type": "module", + "author": "Daniel Alves Rosel", + "homepage": "https://github.com/velocitatem/garlic/tree/main", "exports": { ".": "./index.ts" }, diff --git a/garlic-astro/src/MyComponent.astro b/garlic-astro/src/MyComponent.astro deleted file mode 100644 index 6ad20a0..0000000 --- a/garlic-astro/src/MyComponent.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- -// Write your component code in this file! -export interface Props { - prefix?: string; -} ---- - -
{Astro.props.prefix} My special component