breakage 0.8.3 → 0.8.4

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/README.md +6 -6
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -82,8 +82,8 @@ Add these scripts to the tested package, preserving your existing runner and cer
82
82
  ```json
83
83
  {
84
84
  "scripts": {
85
- "test:breaks:prelude": "breakage prelude --out .breakage/baseline.json",
86
- "test:breaks": "breakage --baseline-file .breakage/baseline.json"
85
+ "test:breakage:prelude": "breakage prelude --out .breakage/baseline.json",
86
+ "test:breakage": "breakage --baseline-file .breakage/baseline.json"
87
87
  }
88
88
  }
89
89
  ```
@@ -93,11 +93,11 @@ Use [Turbo's deferred hashing](https://turborepo.dev/docs/reference/configuratio
93
93
  ```json
94
94
  {
95
95
  "tasks": {
96
- "test:breaks:prelude": {
96
+ "test:breakage:prelude": {
97
97
  "cache": false
98
98
  },
99
- "test:breaks": {
100
- "dependsOn": ["test:breaks:prelude", "^build"],
99
+ "test:breakage": {
100
+ "dependsOn": ["test:breakage:prelude", "^build"],
101
101
  "inputs": [
102
102
  "$TURBO_DEFAULT$",
103
103
  { "mode": "jit", "globs": [".breakage/baseline.json"] }
@@ -108,7 +108,7 @@ Use [Turbo's deferred hashing](https://turborepo.dev/docs/reference/configuratio
108
108
  }
109
109
  ```
110
110
 
111
- Run `turbo run test:breaks` as usual. The prelude runs even when the compatibility check hits its cache; a failed prelude prevents the downstream task from replaying a cached success. Keep all additional runner, helper, configuration, environment, and certification inputs in the compatibility task's hash, including release-plan files outside the package directory. Keep upstream `^build` prerequisites; the tested package does not need a self-build preflight. For runners without deferred hashing, finish the prelude before starting the task runner and include its snapshot in the check's cache key.
111
+ Run `turbo run test:breakage` as usual. The prelude runs even when the compatibility check hits its cache; a failed prelude prevents the downstream task from replaying a cached success. Keep all additional runner, helper, configuration, environment, and certification inputs in the compatibility task's hash, including release-plan files outside the package directory. Keep upstream `^build` prerequisites; the tested package does not need a self-build preflight. For runners without deferred hashing, finish the prelude before starting the task runner and include its snapshot in the check's cache key.
112
112
 
113
113
  The JavaScript API exports `breakagePrelude({ out, tagPattern, baseDirname })` and accepts `baselineFile` in `breakage` options. Without `baselineFile`, the existing single-command discovery behavior is preserved.
114
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "breakage",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Run yesterday’s tests against tomorrow’s release.",
5
5
  "homepage": "https://github.com/jeremybanka/breakage#readme",
6
6
  "bugs": "https://github.com/jeremybanka/breakage/issues",
@@ -45,7 +45,8 @@
45
45
  "postversion": "dprint fmt package.json",
46
46
  "schema": "bun src/breakage.x.ts --outdir=dist -- schema",
47
47
  "pretest": "pnpm run build",
48
- "test": "bun test -- ./__tests__",
49
- "test:watch": "bun test --watch -- ./__tests__"
48
+ "test": "BREAKAGE_CLI_ENTRYPOINT=./src/breakage.x.ts bun test -- ./__tests__ ./tests/public",
49
+ "test:public": "BREAKAGE_CLI_ENTRYPOINT=./src/breakage.x.ts bun test -- ./tests/public",
50
+ "test:watch": "BREAKAGE_CLI_ENTRYPOINT=./src/breakage.x.ts bun test --watch -- ./__tests__ ./tests/public"
50
51
  }
51
52
  }