@casomoltd/tooling 0.23.0 → 0.23.2

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 (2) hide show
  1. package/bin/pre-push.sh +10 -8
  2. package/package.json +1 -1
package/bin/pre-push.sh CHANGED
@@ -4,14 +4,16 @@
4
4
  PRE_PUSH_REFS=$(cat)
5
5
  export PRE_PUSH_REFS
6
6
 
7
- # Uniform pre-push for every repo: check, build, then the version/tag gates.
8
- # `npm run build` must exist in EVERY repo so this line never has to special-case
9
- # one. Where a repo produces no build output (a source-only repo like tooling,
10
- # consumed as a git-dep), define build as a no-op (`"build": "echo ..."`) rather
11
- # than omitting it — a missing script would abort the push with "Missing script:
12
- # build", which once made it ambiguous whether a source-only repo was even
13
- # pushable. No-op keeps the step honest and uniform.
7
+ # Uniform pre-push for every repo: the repo's own health gate, then the
8
+ # release-protocol gates.
9
+ #
10
+ # Building belongs to `check`, not here. A repo whose build fails is not
11
+ # healthy, and any assertion that reads build output (SSR, page meta, sitemap)
12
+ # has to run after the build inside that same script — so `check` is where the
13
+ # step already has to live. Declaring it here as well would give the build two
14
+ # owners and run it twice wherever `check` builds. A repo that needs a build
15
+ # gate adds `npm run build` to its own `check`; one that produces no artifact
16
+ # simply doesn't.
14
17
  npm run check \
15
- && npm run build \
16
18
  && echo "$PRE_PUSH_REFS" | check-version \
17
19
  && echo "$PRE_PUSH_REFS" | check-tags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casomoltd/tooling",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Casomo's shared dev config: ESLint, Prettier, commitlint, knip & jscpd presets and dev CLIs (git hooks, readability, screenshots)",
5
5
  "license": "MIT",
6
6
  "repository": {