@outcomeeng/spx 0.5.5 → 0.6.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/README.md +8 -5
- package/dist/cli.js +3772 -1124
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +15 -9
package/README.md
CHANGED
|
@@ -131,12 +131,13 @@ pnpm run test:coverage # Tests with coverage
|
|
|
131
131
|
### Validation (Required Before Commits)
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
pnpm run validate # Source CLI: full validation pipeline
|
|
135
|
-
pnpm run validate:production # Source CLI: production scope only
|
|
134
|
+
pnpm run validate # Source CLI: full validation pipeline, excluding circular checks
|
|
135
|
+
pnpm run validate:production # Source CLI: production scope only, excluding circular checks
|
|
136
136
|
pnpm run lint # Source CLI: ESLint only
|
|
137
137
|
pnpm run lint:fix # Source CLI: ESLint with auto-fix
|
|
138
138
|
pnpm run typecheck # Source CLI: TypeScript only
|
|
139
139
|
pnpm run circular # Source CLI: circular dependency detection
|
|
140
|
+
pnpm run circular:published # Packaged executable circular dependency detection
|
|
140
141
|
pnpm run knip # Source CLI: unused code detection
|
|
141
142
|
```
|
|
142
143
|
|
|
@@ -145,11 +146,11 @@ The development validation scripts run `tsx src/cli.ts`, so they validate the cu
|
|
|
145
146
|
### Publish Validation
|
|
146
147
|
|
|
147
148
|
```bash
|
|
148
|
-
pnpm run publish:check # Source validation, build, tests, packaged validation
|
|
149
|
-
pnpm run validate:published # Packaged executable validation; requires dist/cli.js
|
|
149
|
+
pnpm run publish:check # Source validation, circular check, build, tests, packaged validation
|
|
150
|
+
pnpm run validate:published # Packaged executable validation excluding circular checks; requires dist/cli.js
|
|
150
151
|
```
|
|
151
152
|
|
|
152
|
-
`pnpm run publish:check` is the required pre-publish gate. It runs source validation, builds `dist/`, runs the test suite, and then runs
|
|
153
|
+
`pnpm run publish:check` is the required pre-publish gate. It runs source validation, source circular dependency detection, builds `dist/`, runs the test suite, and then runs packaged validation plus packaged circular dependency detection against the built executable.
|
|
153
154
|
|
|
154
155
|
### Code Quality (SonarCloud)
|
|
155
156
|
|
|
@@ -163,6 +164,8 @@ sonar auth login -o outcomeeng # opens a browser; the token is stored in the O
|
|
|
163
164
|
|
|
164
165
|
Until then the MCP server entry is inert: it does not affect builds, tests, or validation.
|
|
165
166
|
|
|
167
|
+
A Lefthook **pre-push** hook runs `sonar analyze --base origin/main` so SonarQube Cloud findings on the pushed changeset surface before the code leaves your machine, and a finding blocks the push. It uses the same `sonar` CLI and authentication as the MCP server above, so install the CLI and run `sonar auth login` before pushing. When the CLI is genuinely unavailable, `git push --no-verify` skips the hook.
|
|
168
|
+
|
|
166
169
|
## CI/CD
|
|
167
170
|
|
|
168
171
|
The project uses GitHub Actions for continuous integration and publishing:
|