sf-plugin-permission-sets 0.0.0-dev.9 → 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.9"
112
+ "version": "0.1.0"
51
113
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-plugin-permission-sets",
3
3
  "description": "",
4
- "version": "0.0.0-dev.9",
4
+ "version": "0.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
@@ -9,7 +9,10 @@
9
9
  "dependencies": {
10
10
  "@oclif/core": "^4",
11
11
  "@salesforce/core": "^8",
12
- "@salesforce/sf-plugins-core": "^12"
12
+ "@salesforce/sf-plugins-core": "^12",
13
+ "globby": "^16.2.0",
14
+ "yaml": "^2.9.0",
15
+ "zod": "^4.4.3"
13
16
  },
14
17
  "devDependencies": {
15
18
  "@salesforce/dev-scripts": "^10",
@@ -17,7 +20,8 @@
17
20
  "husky": "^7.0.4",
18
21
  "oclif": "^4.14.0",
19
22
  "ts-node": "^10.9.2",
20
- "typescript": "^5.4.5"
23
+ "typescript": "^5.4.5",
24
+ "vitest": "^4.1.9"
21
25
  },
22
26
  "engines": {
23
27
  "node": ">=18.0.0"
@@ -91,54 +95,38 @@
91
95
  "clean": "if-file-deleted"
92
96
  },
93
97
  "format": {
94
- "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
98
+ "command": "prettier --write \"src/**/*.+(ts|js|json)\"",
95
99
  "files": [
96
100
  "src/**/*.ts",
97
- "test/**/*.ts",
98
- "schemas/**/*.json",
99
- "command-snapshot.json",
100
101
  ".prettier*"
101
102
  ],
102
103
  "output": []
103
104
  },
104
105
  "lint": {
105
- "command": "eslint src test --color --cache --cache-location .eslintcache",
106
+ "command": "eslint src --color --cache --cache-location .eslintcache",
106
107
  "files": [
107
108
  "src/**/*.ts",
108
- "test/**/*.ts",
109
109
  "messages/**",
110
110
  "**/.eslint*",
111
111
  "**/tsconfig.json"
112
112
  ],
113
113
  "output": []
114
114
  },
115
- "test:compile": {
116
- "command": "tsc -p \"./test\" --pretty",
117
- "files": [
118
- "test/**/*.ts",
119
- "**/tsconfig.json"
120
- ],
121
- "output": []
122
- },
123
115
  "test": {
124
116
  "dependencies": [
125
- "test:compile",
126
117
  "test:only",
127
118
  "lint"
128
119
  ]
129
120
  },
130
121
  "test:only": {
131
- "command": "nyc mocha \"test/**/*.test.ts\"",
122
+ "command": "vitest run",
132
123
  "env": {
133
124
  "FORCE_COLOR": "2"
134
125
  },
135
126
  "files": [
136
- "test/**/*.ts",
137
127
  "src/**/*.ts",
138
- "**/tsconfig.json",
139
- ".mocha*",
140
- "!*.nut.ts",
141
- ".nycrc"
128
+ "vitest.config.ts",
129
+ "**/tsconfig.json"
142
130
  ],
143
131
  "output": []
144
132
  }