sf-plugin-permission-sets 0.0.0-dev.8 → 0.1.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.
@@ -1,5 +1,67 @@
1
1
  {
2
2
  "commands": {
3
+ "ps:check": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Parse and validate the YAML files offline. Reports invalid YAML, schema violations, duplicate keys, duplicate targets, and empty entries. Run it in a pre-commit hook or in CI before validate, plan, or apply.",
7
+ "examples": [
8
+ "Check every file under permissions:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\"",
9
+ "Check specific files:\n<%= config.bin %> <%= command.id %> --file permissions/sales.yml --file permissions/service.yml"
10
+ ],
11
+ "flags": {
12
+ "json": {
13
+ "description": "Format output as json.",
14
+ "helpGroup": "GLOBAL",
15
+ "name": "json",
16
+ "allowNo": false,
17
+ "type": "boolean"
18
+ },
19
+ "flags-dir": {
20
+ "helpGroup": "GLOBAL",
21
+ "name": "flags-dir",
22
+ "summary": "Import flag values from a directory.",
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
26
+ },
27
+ "file": {
28
+ "char": "f",
29
+ "name": "file",
30
+ "required": true,
31
+ "summary": "YAML file or glob to check. Repeatable.",
32
+ "hasDynamicHelp": false,
33
+ "multiple": true,
34
+ "type": "option"
35
+ },
36
+ "strict": {
37
+ "name": "strict",
38
+ "summary": "Treat warnings as errors.",
39
+ "allowNo": false,
40
+ "type": "boolean"
41
+ }
42
+ },
43
+ "hasDynamicHelp": false,
44
+ "hiddenAliases": [],
45
+ "id": "ps:check",
46
+ "pluginAlias": "sf-plugin-permission-sets",
47
+ "pluginName": "sf-plugin-permission-sets",
48
+ "pluginType": "core",
49
+ "strict": true,
50
+ "summary": "Statically check permission set assignment files, with no org connection.",
51
+ "enableJsonFlag": true,
52
+ "isESM": true,
53
+ "relativePath": [
54
+ "lib",
55
+ "commands",
56
+ "ps",
57
+ "check.js"
58
+ ],
59
+ "aliasPermutations": [],
60
+ "permutations": [
61
+ "ps:check",
62
+ "check:ps"
63
+ ]
64
+ },
3
65
  "ps:info": {
4
66
  "aliases": [],
5
67
  "args": {},
@@ -47,5 +109,5 @@
47
109
  ]
48
110
  }
49
111
  },
50
- "version": "0.0.0-dev.8"
112
+ "version": "0.1.0"
51
113
  }
package/package.json CHANGED
@@ -1,191 +1,137 @@
1
1
  {
2
- "name": "sf-plugin-permission-sets",
3
- "description": "",
4
- "version": "0.0.0-dev.8",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
8
- },
9
- "dependencies": {
10
- "@oclif/core": "^4",
11
- "@salesforce/core": "^8",
12
- "@salesforce/sf-plugins-core": "^12"
13
- },
14
- "devDependencies": {
15
- "@oclif/plugin-command-snapshot": "^5.1.9",
16
- "@salesforce/cli-plugins-testkit": "^5.3.10",
17
- "@salesforce/dev-scripts": "^10",
18
- "eslint-plugin-sf-plugin": "^1.18.6",
19
- "husky": "^7.0.4",
20
- "oclif": "^4.14.0",
21
- "ts-node": "^10.9.2",
22
- "typescript": "^5.4.5"
23
- },
24
- "engines": {
25
- "node": ">=18.0.0"
26
- },
27
- "files": [
28
- "/lib",
29
- "/messages",
30
- "/oclif.manifest.json",
31
- "/oclif.lock"
32
- ],
33
- "keywords": [
34
- "force",
35
- "salesforce",
36
- "salesforcedx",
37
- "sf",
38
- "sf-plugin",
39
- "sfdx",
40
- "sfdx-plugin"
41
- ],
42
- "license": "BSD-3-Clause",
43
- "oclif": {
44
- "commands": "./lib/commands",
45
- "bin": "sf",
46
- "topicSeparator": " ",
47
- "devPlugins": [
48
- "@oclif/plugin-help"
49
- ],
50
- "topics": {
51
- "ps": {
52
- "description": "Manage permission set assignments declaratively."
53
- }
54
- },
55
- "flexibleTaxonomy": true
56
- },
57
- "scripts": {
58
- "build": "wireit",
59
- "clean": "sf-clean",
60
- "clean-all": "sf-clean all",
61
- "compile": "wireit",
62
- "docs": "sf-docs",
63
- "format": "wireit",
64
- "link-check": "wireit",
65
- "lint": "wireit",
66
- "prepare": "husky install",
67
- "postpack": "sf-clean --ignore-signing-artifacts",
68
- "prepack": "sf-prepack",
69
- "test": "wireit",
70
- "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
71
- "test:only": "wireit",
72
- "version": "oclif readme"
73
- },
74
- "publishConfig": {
75
- "access": "public"
76
- },
77
- "wireit": {
78
- "build": {
79
- "dependencies": [
80
- "compile",
81
- "lint"
82
- ]
83
- },
84
- "compile": {
85
- "command": "tsc -p . --pretty --incremental",
86
- "files": [
87
- "src/**/*.ts",
88
- "**/tsconfig.json",
89
- "messages/**"
90
- ],
91
- "output": [
92
- "lib/**",
93
- "*.tsbuildinfo"
94
- ],
95
- "clean": "if-file-deleted"
2
+ "name": "sf-plugin-permission-sets",
3
+ "description": "",
4
+ "version": "0.1.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
96
8
  },
97
- "format": {
98
- "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
99
- "files": [
100
- "src/**/*.ts",
101
- "test/**/*.ts",
102
- "schemas/**/*.json",
103
- "command-snapshot.json",
104
- ".prettier*"
105
- ],
106
- "output": []
9
+ "dependencies": {
10
+ "@oclif/core": "^4",
11
+ "@salesforce/core": "^8",
12
+ "@salesforce/sf-plugins-core": "^12",
13
+ "globby": "^16.2.0",
14
+ "yaml": "^2.9.0",
15
+ "zod": "^4.4.3"
107
16
  },
108
- "lint": {
109
- "command": "eslint src test --color --cache --cache-location .eslintcache",
110
- "files": [
111
- "src/**/*.ts",
112
- "test/**/*.ts",
113
- "messages/**",
114
- "**/.eslint*",
115
- "**/tsconfig.json"
116
- ],
117
- "output": []
17
+ "devDependencies": {
18
+ "@salesforce/dev-scripts": "^10",
19
+ "eslint-plugin-sf-plugin": "^1.18.6",
20
+ "husky": "^7.0.4",
21
+ "oclif": "^4.14.0",
22
+ "ts-node": "^10.9.2",
23
+ "typescript": "^5.4.5",
24
+ "vitest": "^4.1.9"
118
25
  },
119
- "test:compile": {
120
- "command": "tsc -p \"./test\" --pretty",
121
- "files": [
122
- "test/**/*.ts",
123
- "**/tsconfig.json"
124
- ],
125
- "output": []
26
+ "engines": {
27
+ "node": ">=18.0.0"
126
28
  },
127
- "test": {
128
- "dependencies": [
129
- "test:compile",
130
- "test:only",
131
- "lint"
132
- ]
133
- },
134
- "test:only": {
135
- "command": "nyc mocha \"test/**/*.test.ts\"",
136
- "env": {
137
- "FORCE_COLOR": "2"
138
- },
139
- "files": [
140
- "test/**/*.ts",
141
- "src/**/*.ts",
142
- "**/tsconfig.json",
143
- ".mocha*",
144
- "!*.nut.ts",
145
- ".nycrc"
146
- ],
147
- "output": []
29
+ "files": [
30
+ "/lib",
31
+ "/messages",
32
+ "/oclif.manifest.json",
33
+ "/oclif.lock"
34
+ ],
35
+ "keywords": [
36
+ "force",
37
+ "salesforce",
38
+ "salesforcedx",
39
+ "sf",
40
+ "sf-plugin",
41
+ "sfdx",
42
+ "sfdx-plugin"
43
+ ],
44
+ "license": "BSD-3-Clause",
45
+ "oclif": {
46
+ "commands": "./lib/commands",
47
+ "bin": "sf",
48
+ "topicSeparator": " ",
49
+ "devPlugins": [
50
+ "@oclif/plugin-help"
51
+ ],
52
+ "topics": {
53
+ "ps": {
54
+ "description": "Manage permission set assignments declaratively."
55
+ }
56
+ },
57
+ "flexibleTaxonomy": true
148
58
  },
149
- "test:command-reference": {
150
- "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
151
- "files": [
152
- "src/**/*.ts",
153
- "messages/**",
154
- "package.json"
155
- ],
156
- "output": [
157
- "tmp/root"
158
- ]
59
+ "scripts": {
60
+ "build": "wireit",
61
+ "clean": "sf-clean",
62
+ "clean-all": "sf-clean all",
63
+ "compile": "wireit",
64
+ "docs": "sf-docs",
65
+ "format": "wireit",
66
+ "lint": "wireit",
67
+ "prepare": "husky install",
68
+ "postpack": "sf-clean --ignore-signing-artifacts",
69
+ "prepack": "sf-prepack",
70
+ "test": "wireit",
71
+ "test:only": "wireit",
72
+ "version": "oclif readme"
159
73
  },
160
- "test:deprecation-policy": {
161
- "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare",
162
- "files": [
163
- "src/**/*.ts"
164
- ],
165
- "output": [],
166
- "dependencies": [
167
- "compile"
168
- ]
74
+ "publishConfig": {
75
+ "access": "public"
169
76
  },
170
- "test:json-schema": {
171
- "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
172
- "files": [
173
- "src/**/*.ts",
174
- "schemas"
175
- ],
176
- "output": []
77
+ "wireit": {
78
+ "build": {
79
+ "dependencies": [
80
+ "compile",
81
+ "lint"
82
+ ]
83
+ },
84
+ "compile": {
85
+ "command": "tsc -p . --pretty --incremental",
86
+ "files": [
87
+ "src/**/*.ts",
88
+ "**/tsconfig.json",
89
+ "messages/**"
90
+ ],
91
+ "output": [
92
+ "lib/**",
93
+ "*.tsbuildinfo"
94
+ ],
95
+ "clean": "if-file-deleted"
96
+ },
97
+ "format": {
98
+ "command": "prettier --write \"src/**/*.+(ts|js|json)\"",
99
+ "files": [
100
+ "src/**/*.ts",
101
+ ".prettier*"
102
+ ],
103
+ "output": []
104
+ },
105
+ "lint": {
106
+ "command": "eslint src --color --cache --cache-location .eslintcache",
107
+ "files": [
108
+ "src/**/*.ts",
109
+ "messages/**",
110
+ "**/.eslint*",
111
+ "**/tsconfig.json"
112
+ ],
113
+ "output": []
114
+ },
115
+ "test": {
116
+ "dependencies": [
117
+ "test:only",
118
+ "lint"
119
+ ]
120
+ },
121
+ "test:only": {
122
+ "command": "vitest run",
123
+ "env": {
124
+ "FORCE_COLOR": "2"
125
+ },
126
+ "files": [
127
+ "src/**/*.ts",
128
+ "vitest.config.ts",
129
+ "**/tsconfig.json"
130
+ ],
131
+ "output": []
132
+ }
177
133
  },
178
- "link-check": {
179
- "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
180
- "files": [
181
- "./*.md",
182
- "./!(CHANGELOG).md",
183
- "messages/**/*.md"
184
- ],
185
- "output": []
186
- }
187
- },
188
- "exports": "./lib/index.js",
189
- "type": "module",
190
- "author": "Isaac Ferreira"
134
+ "exports": "./lib/index.js",
135
+ "type": "module",
136
+ "author": "Isaac Ferreira"
191
137
  }