You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2022/07/16 04:27:03 UTC

[cordova-docs] branch master updated: Correct "plugins" section syntax in package.json (#1246)

This is an automated email from the ASF dual-hosted git repository.

normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new cbfac1a4c Correct "plugins" section syntax in package.json (#1246)
cbfac1a4c is described below

commit cbfac1a4c7059cdae6a6f78ef83731b731df31bf
Author: JF Ravelo <jf...@gmail.com>
AuthorDate: Sat Jul 16 06:26:56 2022 +0200

    Correct "plugins" section syntax in package.json (#1246)
---
 www/docs/en/dev/platform_plugin_versioning_ref/index.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/docs/en/dev/platform_plugin_versioning_ref/index.md b/www/docs/en/dev/platform_plugin_versioning_ref/index.md
index 31f994c14..dd0945247 100644
--- a/www/docs/en/dev/platform_plugin_versioning_ref/index.md
+++ b/www/docs/en/dev/platform_plugin_versioning_ref/index.md
@@ -199,9 +199,9 @@ After running the above command, the **`package.json`** should contain something
 
 ```json
 "cordova": {
-  "plugins": [
-    "cordova-plugin-device"
-  ]
+  "plugins": {
+    "cordova-plugin-device": {}
+  }
 },
 "devDependencies": {
   "cordova-plugin-device": "^1.0.0"
@@ -301,9 +301,9 @@ Suppose you have defined in `config.xml` and `package.json` a plugin and version
 
 ```json
 "cordova": {
-  "plugins": [
-    "cordova-plugin-splashscreen"
-  ]
+  "plugins": {
+    "cordova-plugin-splashscreen": {}
+  }
 },
 "devDependencies": {
   "cordova-plugin-splashscreen": "1.0.0"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org