@salesforce/plugin-schema 1.0.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.0.0](https://github.com/salesforcecli/plugin-schema/compare/v1.1.0...v2.0.0) (2022-04-06)
6
+
7
+ ### Bug Fixes
8
+
9
+ - parking orbit plugin-schema ([ea87123](https://github.com/salesforcecli/plugin-schema/commit/ea87123101d6a34e0d017f124c3caba62a0ad63b))
10
+
11
+ ## [1.1.0](https://github.com/salesforcecli/plugin-schema/compare/v1.0.10...v1.1.0) (2021-12-02)
12
+
13
+ ### Features
14
+
15
+ - bump deps ([75830fa](https://github.com/salesforcecli/plugin-schema/commit/75830fa414f40d1fc4f0731eaba9f6d977ceb779))
16
+
17
+ ### [1.0.10](https://github.com/salesforcecli/plugin-schema/compare/v1.0.9...v1.0.10) (2021-10-12)
18
+
19
+ ### Bug Fixes
20
+
21
+ - update dependencies ([299c7e9](https://github.com/salesforcecli/plugin-schema/commit/299c7e9582ccc16026c27b4a27afdc072013b697))
22
+
5
23
  ### [1.0.9](https://github.com/salesforcecli/plugin-schema/compare/v1.0.8...v1.0.9) (2021-10-12)
6
24
 
7
25
  ### [1.0.8](https://github.com/salesforcecli/plugin-schema/compare/v1.0.7...v1.0.8) (2021-07-01)
@@ -12,28 +30,25 @@ All notable changes to this project will be documented in this file. See [standa
12
30
 
13
31
  ### [1.0.5](https://github.com/salesforcecli/plugin-schema/compare/v1.0.4...v1.0.5) (2021-04-01)
14
32
 
15
-
16
33
  ### Bug Fixes
17
34
 
18
- * leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
35
+ - leif .yml merge [skip-validate-pr] ([95bb8e0](https://github.com/salesforcecli/plugin-schema/commit/95bb8e0014ff5df3c6f59aa701762732b9a5c568))
19
36
 
20
37
  ### [1.0.4](https://github.com/salesforcecli/plugin-schema/compare/v1.0.3...v1.0.4) (2021-02-19)
21
38
 
22
39
  ### [1.0.3](https://github.com/salesforcecli/plugin-schema/compare/v1.0.2...v1.0.3) (2020-12-17)
23
40
 
24
-
25
41
  ### Bug Fixes
26
42
 
27
- * bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
43
+ - bumped npm release to v4 ([f31cf21](https://github.com/salesforcecli/plugin-schema/commit/f31cf213a24066f60f3884ffee2f64855cc19f4e))
28
44
 
29
45
  ### [1.0.2](https://github.com/salesforcecli/plugin-schema/compare/v1.0.1...v1.0.2) (2020-12-10)
30
46
 
31
47
  ### [1.0.1](https://github.com/salesforcecli/plugin-schema/compare/v1.0.0...v1.0.1) (2020-11-04)
32
48
 
33
-
34
49
  ### Bug Fixes
35
50
 
36
- * added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
37
- * update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))
51
+ - added github-release: true to circleci config ([95eddac](https://github.com/salesforcecli/plugin-schema/commit/95eddac37fe43e0e36e741af2d00ffc7b499c663))
52
+ - update readme ([63658f2](https://github.com/salesforcecli/plugin-schema/commit/63658f2bdd94e0c64b18bfe78398d9175da11ed1))
38
53
 
39
54
  ### [1.0.1](https://github.com/salesforcecli/plugin-schema/compare/v1.0.0...v1.0.1) (2020-10-29)
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, Salesforce.com, Inc.
1
+ Copyright (c) 2022, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
package/README.md CHANGED
@@ -69,8 +69,9 @@ sfdx plugins
69
69
  ## Commands
70
70
 
71
71
  <!-- commands -->
72
- * [`sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectdescribe--s-string--t--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
73
- * [`sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectlist--c-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
72
+
73
+ - [`sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectdescribe--s-string--t--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
+ - [`sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceschemasobjectlist--c-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
75
 
75
76
  ## `sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
76
77
 
@@ -78,33 +79,33 @@ displays the metadata for a standard or custom object
78
79
 
79
80
  ```
80
81
  USAGE
81
- $ sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel
82
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
82
+ $ sfdx force:schema:sobject:describe -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel
83
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
83
84
 
84
- OPTIONS
85
- -s, --sobjecttype=sobjecttype (required) the API name of the
85
+ FLAGS
86
+ -s, --sobjecttype=<value> (required) the API name of the
86
87
  object to describe
87
-
88
88
  -t, --usetoolingapi execute with Tooling API
89
-
90
- -u, --targetusername=targetusername username or alias for the target
89
+ -u, --targetusername=<value> username or alias for the target
91
90
  org; overrides default target org
92
-
93
- --apiversion=apiversion override the api version used for
91
+ --apiversion=<value> override the api version used for
94
92
  api requests made by this command
95
-
96
93
  --json format output as json
97
-
98
94
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
99
95
  this command invocation
100
96
 
97
+ DESCRIPTION
98
+ displays the metadata for a standard or custom object
99
+
101
100
  EXAMPLES
102
- sfdx force:schema:sobject:describe -s Account
103
- sfdx force:schema:sobject:describe -s MyObject__c
104
- sfdx force:schema:sobject:describe -s ApexClass -t
101
+ $ sfdx force:schema:sobject:describe -s Account
102
+
103
+ $ sfdx force:schema:sobject:describe -s MyObject__c
104
+
105
+ $ sfdx force:schema:sobject:describe -s ApexClass -t
105
106
  ```
106
107
 
107
- _See code: [src/commands/force/schema/sobject/describe.ts](https://github.com/salesforcecli/plugin-schema/blob/v1.0.8/src/commands/force/schema/sobject/describe.ts)_
108
+ _See code: [src/commands/force/schema/sobject/describe.ts](https://github.com/salesforcecli/plugin-schema/blob/v2.0.0/src/commands/force/schema/sobject/describe.ts)_
108
109
 
109
110
  ## `sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
110
111
 
@@ -112,29 +113,31 @@ list all objects of a specified category
112
113
 
113
114
  ```
114
115
  USAGE
115
- $ sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
116
- trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
116
+ $ sfdx force:schema:sobject:list [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
117
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
117
118
 
118
- OPTIONS
119
- -c, --sobjecttypecategory=sobjecttypecategory [default: ALL] the type of objects
119
+ FLAGS
120
+ -c, --sobjecttypecategory=<value> [default: ALL] the type of objects
120
121
  to list (all|custom|standard)
121
-
122
- -u, --targetusername=targetusername username or alias for the target
122
+ -u, --targetusername=<value> username or alias for the target
123
123
  org; overrides default target org
124
-
125
- --apiversion=apiversion override the api version used for
124
+ --apiversion=<value> override the api version used for
126
125
  api requests made by this command
127
-
128
126
  --json format output as json
129
-
130
127
  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
131
128
  this command invocation
132
129
 
130
+ DESCRIPTION
131
+ list all objects of a specified category
132
+
133
133
  EXAMPLES
134
- sfdx force:schema:sobject:list -c all
135
- sfdx force:schema:sobject:list -c custom
136
- sfdx force:schema:sobject:list -c standard
134
+ $ sfdx force:schema:sobject:list -c all
135
+
136
+ $ sfdx force:schema:sobject:list -c custom
137
+
138
+ $ sfdx force:schema:sobject:list -c standard
137
139
  ```
138
140
 
139
- _See code: [src/commands/force/schema/sobject/list.ts](https://github.com/salesforcecli/plugin-schema/blob/v1.0.8/src/commands/force/schema/sobject/list.ts)_
141
+ _See code: [src/commands/force/schema/sobject/list.ts](https://github.com/salesforcecli/plugin-schema/blob/v2.0.0/src/commands/force/schema/sobject/list.ts)_
142
+
140
143
  <!-- commandsstop -->
@@ -55,7 +55,7 @@ SchemaSobjectList.flagsConfig = {
55
55
  const capitalized = val.toUpperCase();
56
56
  const result = capitalized === 'ALL' || capitalized === 'STANDARD' || capitalized === 'CUSTOM';
57
57
  if (!result) {
58
- throw core_1.SfdxError.create('@salesforce/plugin-schema', 'list', 'flags.invalidTypeError');
58
+ throw messages.createError('flags.invalidTypeError');
59
59
  }
60
60
  return result;
61
61
  },
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/force/schema/sobject/list.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AACzB,iDAAsE;AACtE,2CAAmE;AAGnE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAE5E,qCAAqC;AACrC,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,2CAAG,CAAA;IACH,qDAAQ,CAAA;IACR,iDAAM,CAAA;AACR,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,MAAa,iBAAkB,SAAQ,qBAAW;IAoBzC,KAAK,CAAC,GAAG;QACd,MAAM,QAAQ,GAAI,IAAI,CAAC,KAAK,CAAC,mBAA8B,CAAC,WAAW,EAA8B,CAAC;QACtG,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;QAEnC,MAAM,gBAAgB,GAAa,EAAE,CAAC;QAEtC,MAAM,IAAI,GAAe,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAClD,MAAM,eAAe,GAAyB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAE1E,IAAI,WAAW,GAAG,KAAK,CAAC;QAExB,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAoC,EAAE,EAAE;YACxE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC;YACzC,MAAM,OAAO,GACX,IAAI,KAAK,WAAW,CAAC,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sobject:describe":{"id":"force:schema:sobject:describe","description":"displays the metadata for a standard or custom object","usage":"<%= command.id %> -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:describe -s Account","sfdx force:schema:sobject:describe -s MyObject__c","sfdx force:schema:sobject:describe -s ApexClass -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the API name of the object to describe","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute with Tooling API","allowNo":false}},"args":[]},"force:schema:sobject:list":{"id":"force:schema:sobject:list","description":"list all objects of a specified category","usage":"<%= command.id %> [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:list -c all","sfdx force:schema:sobject:list -c custom","sfdx force:schema:sobject:list -c standard"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttypecategory":{"name":"sobjecttypecategory","type":"option","char":"c","description":"the type of objects to list (all|custom|standard)","default":"ALL"}},"args":[]}}}
1
+ {"version":"2.0.0","commands":{"force:schema:sobject:describe":{"id":"force:schema:sobject:describe","description":"displays the metadata for a standard or custom object","strict":true,"usage":"<%= command.id %> -s <string> [-t] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginAlias":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:describe -s Account","sfdx force:schema:sobject:describe -s MyObject__c","sfdx force:schema:sobject:describe -s ApexClass -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the API name of the object to describe","required":true,"multiple":false},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute with Tooling API","allowNo":false}},"args":[],"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the API name of the object to describe","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"execute with Tooling API","allowNo":false,"type":"boolean"}},"requiresUsername":true},"force:schema:sobject:list":{"id":"force:schema:sobject:list","description":"list all objects of a specified category","strict":true,"usage":"<%= command.id %> [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-schema","pluginAlias":"@salesforce/plugin-schema","pluginType":"core","aliases":[],"examples":["sfdx force:schema:sobject:list -c all","sfdx force:schema:sobject:list -c custom","sfdx force:schema:sobject:list -c standard"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttypecategory":{"name":"sobjecttypecategory","type":"option","char":"c","description":"the type of objects to list (all|custom|standard)","multiple":false,"default":"ALL"}},"args":[],"flagsConfig":{"sobjecttypecategory":{"kind":"string","char":"c","default":"ALL","description":"the type of objects to list (all|custom|standard)","input":[],"multiple":false,"type":"option"}},"requiresUsername":true}}}
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-schema",
3
3
  "description": "Commands to interact with salesforce sobject schemas",
4
- "version": "1.0.9",
4
+ "version": "2.0.0",
5
5
  "author": "Salesforce",
6
+ "main": "lib/index.js",
6
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
8
  "dependencies": {
8
- "@oclif/config": "^1",
9
- "@salesforce/command": "^3.0.3",
10
- "@salesforce/core": "^2.14.0",
9
+ "@oclif/core": "^1.6.3",
10
+ "@salesforce/command": "^5.0.4",
11
+ "@salesforce/core": "^3.12.1",
11
12
  "tslib": "^2"
12
13
  },
13
14
  "devDependencies": {
14
- "@oclif/dev-cli": "^1",
15
- "@oclif/plugin-command-snapshot": "^2.0.0",
16
- "@salesforce/cli-plugins-testkit": "^1.1.5",
17
- "@salesforce/dev-config": "^2.1.2",
18
- "@salesforce/dev-scripts": "^0.9.15",
15
+ "oclif": "^2.6.3",
16
+ "@oclif/plugin-command-snapshot": "^3",
17
+ "@salesforce/cli-plugins-testkit": "^1.4.11",
18
+ "@salesforce/dev-config": "^3.0.1",
19
+ "@salesforce/dev-scripts": "^2.0.1",
19
20
  "@salesforce/plugin-command-reference": "^1.3.0",
20
21
  "@salesforce/prettier-config": "^0.0.2",
21
22
  "@salesforce/ts-sinon": "1.3.21",
@@ -27,18 +28,18 @@
27
28
  "eslint-config-prettier": "^8.3.0",
28
29
  "eslint-config-salesforce": "^0.1.6",
29
30
  "eslint-config-salesforce-license": "^0.1.6",
30
- "eslint-config-salesforce-typescript": "^0.2.7",
31
+ "eslint-config-salesforce-typescript": "^0.2.8",
31
32
  "eslint-plugin-header": "^3.0.0",
32
- "eslint-plugin-import": "^2.20.2",
33
+ "eslint-plugin-import": "2.25.4",
33
34
  "eslint-plugin-jsdoc": "^35.1.2",
34
35
  "eslint-plugin-prettier": "^3.1.3",
35
- "husky": "^4.3.8",
36
+ "husky": "^7.0.4",
36
37
  "lint-staged": "^11.0.0",
37
- "mocha": "^8.4.0",
38
+ "mocha": "^9.1.3",
38
39
  "nyc": "^15.1.0",
39
40
  "prettier": "^2.0.5",
40
41
  "pretty-quick": "^3.1.0",
41
- "shx": "0.3.3",
42
+ "shx": "0.3.4",
42
43
  "sinon": "10.0.0",
43
44
  "ts-node": "^10.0.0",
44
45
  "typescript": "^4.1.3"
@@ -109,20 +110,13 @@
109
110
  "test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
110
111
  "test:deprecation-policy": "./bin/run snapshot:compare",
111
112
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
112
- "version": "oclif-dev readme"
113
- },
114
- "husky": {
115
- "hooks": {
116
- "pre-commit": "sf-husky-pre-commit",
117
- "commit-msg": "sf-husky-commit-msg",
118
- "pre-push": "sf-husky-pre-push"
119
- }
113
+ "version": "oclif readme"
120
114
  },
121
115
  "publishConfig": {
122
116
  "access": "public"
123
117
  },
124
118
  "sfdx": {
125
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/1.0.9.crt",
126
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/1.0.9.sig"
119
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/2.0.0.crt",
120
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-schema/2.0.0.sig"
127
121
  }
128
122
  }