@hublo/sentinel 1.4.2 → 1.5.0-alpha.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.
- package/dist/bin/sentinel.js +15 -6
- package/dist/chunk-3VJGWCAG.js +83 -0
- package/dist/chunk-3VJGWCAG.js.map +1 -0
- package/dist/{chunk-BGS5DL44.js → chunk-AKAAYAB2.js} +513 -66
- package/dist/{chunk-TDNPPNGK.js → chunk-E3MYVYEZ.js} +35 -7
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4 -3
- package/dist/roles/static-analysis/config.d.ts +50 -0
- package/dist/roles/static-analysis/config.js +7 -0
- package/dist/roles/static-analysis/config.js.map +1 -0
- package/dist/roles/test/setup/file-boundary.js +3 -3
- package/dist/{validate-3QMCX2HW.js → validate-STUK2AGG.js} +2 -2
- package/docs/static-analysis-study.md +788 -0
- package/docs/typescript-traces.md +7 -7
- package/package.json +7 -1
|
@@ -991,7 +991,7 @@ $ sentinel --report --typescript --max-diagnostics 3.9 --module bff-admin
|
|
|
991
991
|
```console
|
|
992
992
|
$ sentinel --init --dry-run
|
|
993
993
|
dry run: no files written
|
|
994
|
-
wrote .oxlintrc.json extending ./node_modules/@hublo/sentinel/lint/nest.json (@hublo/sentinel
|
|
994
|
+
wrote .oxlintrc.json extending ./node_modules/@hublo/sentinel/lint/nest.json (@hublo/sentinel@<version>)
|
|
995
995
|
2 rule(s) not enforced by this preset (1 no-barrel-files, 1 core). Run --inspect --lint for each rule and why.
|
|
996
996
|
run `pnpm install`, then `pnpm run lint`
|
|
997
997
|
|
|
@@ -1003,7 +1003,7 @@ $ sentinel --init --dry-run
|
|
|
1003
1003
|
+ "ignorePatterns": [
|
|
1004
1004
|
+ "**/dist/**",
|
|
1005
1005
|
+ "**/node_modules/**",
|
|
1006
|
-
+ "
|
|
1006
|
+
+ "coverage/**",
|
|
1007
1007
|
+ "**/jest.*.{ts,js,cjs,mjs}",
|
|
1008
1008
|
+ "**/eslint.config.{js,cjs,mjs}",
|
|
1009
1009
|
+ "**/*.timestamp*",
|
|
@@ -1022,7 +1022,7 @@ $ sentinel --init --dry-run
|
|
|
1022
1022
|
+ "lint": "sentinel --run --lint"
|
|
1023
1023
|
+ },
|
|
1024
1024
|
+ "devDependencies": {
|
|
1025
|
-
+ "@hublo/sentinel": "
|
|
1025
|
+
+ "@hublo/sentinel": "<version>"
|
|
1026
1026
|
+ },
|
|
1027
1027
|
+ "nx": {
|
|
1028
1028
|
+ "targets": {
|
|
@@ -1058,7 +1058,7 @@ $ sentinel --init --dry-run
|
|
|
1058
1058
|
+ "typecheck": "sentinel --run --typescript"
|
|
1059
1059
|
+ },
|
|
1060
1060
|
+ "devDependencies": {
|
|
1061
|
-
+ "@hublo/sentinel": "
|
|
1061
|
+
+ "@hublo/sentinel": "<version>"
|
|
1062
1062
|
+ },
|
|
1063
1063
|
+ "nx": {
|
|
1064
1064
|
+ "targets": {
|
|
@@ -1076,13 +1076,13 @@ $ sentinel --init --dry-run
|
|
|
1076
1076
|
build: no Vite config in this module, so there is nothing to point at sentinel. This role moves an existing config's imports; it does not introduce a bundler. If this module builds another way (38 services here build through `@nx/webpack`), the build role does not apply to it.
|
|
1077
1077
|
test: this module has no test and no jest leftovers, so there is nothing to do here.
|
|
1078
1078
|
dry run: no files written
|
|
1079
|
-
materialized the nest format preset into .oxfmtrc.json (@hublo/sentinel
|
|
1079
|
+
materialized the nest format preset into .oxfmtrc.json (@hublo/sentinel@<version>). oxfmt has no `extends`, so the values live here; `sentinel --status --format` reports modules left behind by a preset change
|
|
1080
1080
|
|
|
1081
1081
|
create .oxfmtrc.json
|
|
1082
1082
|
+ {
|
|
1083
1083
|
+ "$sentinel": {
|
|
1084
1084
|
+ "preset": "nest",
|
|
1085
|
-
+ "version": "
|
|
1085
|
+
+ "version": "<version>",
|
|
1086
1086
|
+ "local": []
|
|
1087
1087
|
+ },
|
|
1088
1088
|
+ "printWidth": 80,
|
|
@@ -1133,7 +1133,7 @@ $ sentinel --init --dry-run
|
|
|
1133
1133
|
+ "format:fix": "sentinel --run --format --fix"
|
|
1134
1134
|
+ },
|
|
1135
1135
|
+ "devDependencies": {
|
|
1136
|
-
+ "@hublo/sentinel": "
|
|
1136
|
+
+ "@hublo/sentinel": "<version>"
|
|
1137
1137
|
+ },
|
|
1138
1138
|
+ "nx": {
|
|
1139
1139
|
+ "targets": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-alpha.1",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"types": "./dist/roles/build/nest/toolchain.d.ts",
|
|
47
47
|
"import": "./dist/roles/build/nest/toolchain.js"
|
|
48
48
|
},
|
|
49
|
+
"./static-analysis": {
|
|
50
|
+
"types": "./dist/roles/static-analysis/config.d.ts",
|
|
51
|
+
"import": "./dist/roles/static-analysis/config.js"
|
|
52
|
+
},
|
|
49
53
|
"./test/react": {
|
|
50
54
|
"types": "./dist/roles/test/react/toolchain.d.ts",
|
|
51
55
|
"import": "./dist/roles/test/react/toolchain.js"
|
|
@@ -117,6 +121,7 @@
|
|
|
117
121
|
"eslint-plugin-storybook": "10.3.5",
|
|
118
122
|
"eslint-plugin-styled-components-a11y": "2.2.0",
|
|
119
123
|
"html-validate": "^11.16.0",
|
|
124
|
+
"jscpd": "5.4.0",
|
|
120
125
|
"jsdom": "^24.1.3",
|
|
121
126
|
"jsonc-parser": "^3.3.1",
|
|
122
127
|
"msw": "1.3.3",
|
|
@@ -180,6 +185,7 @@
|
|
|
180
185
|
"test": "vitest run",
|
|
181
186
|
"test:watch": "vitest",
|
|
182
187
|
"test:e2e": "vitest run tests/e2e",
|
|
188
|
+
"test:coverage": "vitest run --coverage --testTimeout=60000",
|
|
183
189
|
"cli": "node --import tsx bin/sentinel.ts",
|
|
184
190
|
"docs:traces": "pnpm build && bash scripts/gen-traces.sh",
|
|
185
191
|
"docs:traces:check": "pnpm build && bash scripts/gen-traces.sh --check",
|