repopo 0.2.2 → 0.3.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +20 -5
  3. package/esm/baseCommand.d.ts +52 -0
  4. package/esm/baseCommand.d.ts.map +1 -0
  5. package/esm/baseCommand.js +87 -0
  6. package/esm/baseCommand.js.map +1 -0
  7. package/esm/commands/check.d.ts +7 -11
  8. package/esm/commands/check.d.ts.map +1 -1
  9. package/esm/commands/check.js +20 -150
  10. package/esm/commands/check.js.map +1 -1
  11. package/esm/commands/list.d.ts +13 -0
  12. package/esm/commands/list.d.ts.map +1 -0
  13. package/esm/commands/list.js +19 -0
  14. package/esm/commands/list.js.map +1 -0
  15. package/esm/config.d.ts +9 -9
  16. package/esm/config.d.ts.map +1 -1
  17. package/esm/config.js +7 -1
  18. package/esm/config.js.map +1 -1
  19. package/esm/index.d.ts +1 -1
  20. package/esm/index.d.ts.map +1 -1
  21. package/esm/index.js.map +1 -1
  22. package/esm/perf.d.ts +12 -0
  23. package/esm/perf.d.ts.map +1 -0
  24. package/esm/perf.js +31 -0
  25. package/esm/perf.js.map +1 -0
  26. package/esm/policies/PackageJsonProperties.d.ts.map +1 -1
  27. package/esm/policies/PackageJsonProperties.js +2 -1
  28. package/esm/policies/PackageJsonProperties.js.map +1 -1
  29. package/esm/policies/PackageJsonRepoDirectoryProperty.d.ts.map +1 -1
  30. package/esm/policies/PackageJsonRepoDirectoryProperty.js +2 -1
  31. package/esm/policies/PackageJsonRepoDirectoryProperty.js.map +1 -1
  32. package/esm/policies/PackageJsonSortedPolicy.d.ts.map +1 -1
  33. package/esm/policies/PackageJsonSortedPolicy.js +2 -1
  34. package/esm/policies/PackageJsonSortedPolicy.js.map +1 -1
  35. package/esm/policy.d.ts +17 -0
  36. package/esm/policy.d.ts.map +1 -1
  37. package/esm/policy.js +0 -12
  38. package/esm/policy.js.map +1 -1
  39. package/oclif.manifest.json +65 -32
  40. package/package.json +6 -6
@@ -4,29 +4,6 @@
4
4
  "aliases": [],
5
5
  "args": {},
6
6
  "flags": {
7
- "verbose": {
8
- "char": "v",
9
- "description": "Enable verbose logging.",
10
- "exclusive": [
11
- "quiet"
12
- ],
13
- "helpGroup": "LOGGING",
14
- "name": "verbose",
15
- "required": false,
16
- "allowNo": false,
17
- "type": "boolean"
18
- },
19
- "quiet": {
20
- "description": "Disable all logging.",
21
- "exclusive": [
22
- "verbose"
23
- ],
24
- "helpGroup": "LOGGING",
25
- "name": "quiet",
26
- "required": false,
27
- "allowNo": false,
28
- "type": "boolean"
29
- },
30
7
  "fix": {
31
8
  "aliases": [
32
9
  "resolve"
@@ -38,6 +15,13 @@
38
15
  "allowNo": false,
39
16
  "type": "boolean"
40
17
  },
18
+ "stdin": {
19
+ "description": "Read list of files from stdin.",
20
+ "name": "stdin",
21
+ "required": false,
22
+ "allowNo": false,
23
+ "type": "boolean"
24
+ },
41
25
  "policy": {
42
26
  "char": "d",
43
27
  "description": "Filter policies to apply by <regex>. Only policies with a name matching the regex will be applied.",
@@ -67,13 +51,6 @@
67
51
  "multiple": false,
68
52
  "type": "option"
69
53
  },
70
- "stdin": {
71
- "description": "Read list of files from stdin.",
72
- "name": "stdin",
73
- "required": false,
74
- "allowNo": false,
75
- "type": "boolean"
76
- },
77
54
  "config": {
78
55
  "description": "The path to a configuration file.",
79
56
  "helpGroup": "CONFIGURATION",
@@ -90,7 +67,6 @@
90
67
  "pluginAlias": "repopo",
91
68
  "pluginName": "repopo",
92
69
  "pluginType": "core",
93
- "strict": true,
94
70
  "summary": "Checks and applies policies to the files in the repository.",
95
71
  "isESM": true,
96
72
  "relativePath": [
@@ -98,7 +74,64 @@
98
74
  "commands",
99
75
  "check.js"
100
76
  ]
77
+ },
78
+ "list": {
79
+ "aliases": [],
80
+ "args": {},
81
+ "flags": {
82
+ "policy": {
83
+ "char": "d",
84
+ "description": "Filter policies to apply by <regex>. Only policies with a name matching the regex will be applied.",
85
+ "name": "policy",
86
+ "required": false,
87
+ "hasDynamicHelp": false,
88
+ "multiple": false,
89
+ "type": "option"
90
+ },
91
+ "excludePolicy": {
92
+ "char": "D",
93
+ "description": "Exclude policies by name. Can be specified multiple times to exclude multiple policies.",
94
+ "exclusive": [
95
+ "policy"
96
+ ],
97
+ "name": "excludePolicy",
98
+ "hasDynamicHelp": false,
99
+ "multiple": true,
100
+ "type": "option"
101
+ },
102
+ "path": {
103
+ "char": "p",
104
+ "description": "Filter file paths by <regex>.",
105
+ "name": "path",
106
+ "required": false,
107
+ "hasDynamicHelp": false,
108
+ "multiple": false,
109
+ "type": "option"
110
+ },
111
+ "config": {
112
+ "description": "The path to a configuration file.",
113
+ "helpGroup": "CONFIGURATION",
114
+ "hidden": true,
115
+ "name": "config",
116
+ "hasDynamicHelp": false,
117
+ "multiple": false,
118
+ "type": "option"
119
+ }
120
+ },
121
+ "hasDynamicHelp": false,
122
+ "hiddenAliases": [],
123
+ "id": "list",
124
+ "pluginAlias": "repopo",
125
+ "pluginName": "repopo",
126
+ "pluginType": "core",
127
+ "summary": "Lists the policies configured to run.",
128
+ "isESM": true,
129
+ "relativePath": [
130
+ "esm",
131
+ "commands",
132
+ "list.js"
133
+ ]
101
134
  }
102
135
  },
103
- "version": "0.2.2"
136
+ "version": "0.3.1"
104
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repopo",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "description": "Enforce policies on all or some of the files in a git repository.",
5
5
  "keywords": [
6
6
  "policy",
@@ -45,23 +45,23 @@
45
45
  "repositoryPrefix": "<%- repo %>/blob/main/packages/repopo/<%- commandPath %>"
46
46
  },
47
47
  "dependencies": {
48
- "@fluidframework/build-tools": "^0.44.0",
48
+ "@fluidframework/build-tools": "^0.51.0",
49
49
  "@oclif/core": "^4.0.19",
50
50
  "@oclif/plugin-help": "^6.2.10",
51
51
  "@rushstack/node-core-library": "^5.7.0",
52
52
  "chalk": "^5.3.0",
53
53
  "cosmiconfig": "^9.0.0",
54
- "fs-extra": "^11.2.0",
54
+ "jsonfile": "^6.1.0",
55
55
  "sort-package-json": "2.10.0",
56
- "@tylerbu/cli-api": "^0.4.0",
57
- "sort-tsconfig": "^0.1.1"
56
+ "@tylerbu/cli-api": "^0.6.0",
57
+ "sort-tsconfig": "^0.1.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@biomejs/biome": "1.8.3",
61
61
  "@microsoft/api-extractor": "^7.43.4",
62
62
  "@oclif/plugin-command-snapshot": "^5.2.14",
63
63
  "@oclif/test": "^4.0.9",
64
- "@types/fs-extra": "^11.0.4",
64
+ "@types/jsonfile": "^6.1.4",
65
65
  "@types/node": "^20.12.7",
66
66
  "@types/tmp": "^0.2.6",
67
67
  "lefthook": "^1.6.11",