You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Provide example of reading package.json for plugins meta (#18530)
* docs: Provide example of reading package.json for plugins meta
fixes#18462
* Update docs/src/extend/plugins.md
Co-authored-by: Francesco Trotta <github@fasttime.org>
---------
Co-authored-by: Francesco Trotta <github@fasttime.org>
Copy file name to clipboardExpand all lines: docs/src/extend/plugins.md
+21-1
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,27 @@ export default plugin;
62
62
module.exports= plugin;
63
63
```
64
64
65
-
The `meta.name` property should match the npm package name for your plugin and the `meta.version` property should match the npm package version for your plugin. The easiest way to accomplish this is by reading this information from your `package.json`.
65
+
The `meta.name` property should match the npm package name for your plugin and the `meta.version` property should match the npm package version for your plugin. The easiest way to accomplish this is by reading this information from your `package.json`, as in this example:
While there are no restrictions on plugin names, it helps others to find your plugin on [npm](https://npmjs.com) when you follow these naming conventions:
0 commit comments