diff options
author | 2021-12-07 14:04:53 +0000 | |
---|---|---|
committer | 2021-12-07 14:04:53 +0000 | |
commit | 317c62a2476691023491b2b53fcf1e11b7048b83 (patch) | |
tree | 5fb9a30f6dc02f9e85a8d96dc94e7014c1bbd267 /docs/src | |
parent | eb707327047ec717638a0159cfa6f0a5ccdbc123 (diff) | |
download | astro-317c62a2476691023491b2b53fcf1e11b7048b83.tar.gz astro-317c62a2476691023491b2b53fcf1e11b7048b83.tar.zst astro-317c62a2476691023491b2b53fcf1e11b7048b83.zip |
chore(lint): Prettier fix
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pages/guides/publish-to-npm.md | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/docs/src/pages/guides/publish-to-npm.md b/docs/src/pages/guides/publish-to-npm.md index b3e0e55a1..2b3d88932 100644 --- a/docs/src/pages/guides/publish-to-npm.md +++ b/docs/src/pages/guides/publish-to-npm.md @@ -17,7 +17,7 @@ Looking for inspiration? Check out some of [our favorite themes & components][/t ## Creating a package > Before diving in, it will help have a basic understanding of: -> +> > - [Node Modules](https://docs.npmjs.com/creating-node-js-modules) > - [JSON Manifest (`package.json`)](https://docs.npmjs.com/creating-a-package-json-file) > - [Workspaces](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#workspaces) @@ -43,10 +43,7 @@ This is configured in the project root’s `package.json` file. ```json { "name": "my-project", - "workspaces": [ - "demo", - "packages/*" - ] + "workspaces": ["demo", "packages/*"] } ``` @@ -73,16 +70,8 @@ The `package.json` in the package directory includes all of the information rela "./astro": "./MyAstroComponent.astro", "./react": "./MyReactComponent.jsx" }, - "files": [ - "index.js", - "MyAstroComponent.astro", - "MyReactComponent.jsx" - ], - "keywords": [ - "astro-component", - "... etc", - "... etc" - ] + "files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"], + "keywords": ["astro-component", "... etc", "... etc"] } ``` @@ -92,7 +81,7 @@ The short description of your component used to help others know what it does. ```json { - "description": "An Astro Element Generator", + "description": "An Astro Element Generator" } ``` @@ -128,11 +117,7 @@ In this example, importing `my-component` would use `index.js`, while importing ```json { - "files": [ - "index.js", - "MyAstroComponent.astro", - "MyReactComponent.jsx" - ] + "files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"] } ``` @@ -144,11 +129,7 @@ We recommend adding the `astro-component` as a special keyword to maximize its d ```json { - "keywords": [ - "astro-component", - "... etc", - "... etc" - ] + "keywords": ["astro-component", "... etc", "... etc"] } ``` |