@diff-cov/cli 0.1.0 → 0.1.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/index.cjs CHANGED
@@ -287,7 +287,7 @@ function parseNumber(value) {
287
287
  }
288
288
  function createProgram() {
289
289
  const program = new import_commander.Command();
290
- program.name("diff-cov").description("Line coverage of the lines a git diff adds or modifies.").version("0.1.0").option("--cwd <dir>", "working directory", process.cwd()).option("--config <path>", "config file").option("--base <ref>", 'base ref, "auto" or "new"').addOption(new import_commander.Option("--scope <scope>", "diff scope").choices(["committed", "worktree"])).option("--push", "pre-push mode: read refs from stdin").option("--coverage <path>", "coverage report path or glob (repeatable)", collect, []).option("--threshold <percent>", "total diff coverage threshold", parseNumber).option("--per-file <percent>", "per-file diff coverage threshold", parseNumber).addOption(
290
+ program.name("diff-cov").description("Line coverage of the lines a git diff adds or modifies.").version("0.1.1").option("--cwd <dir>", "working directory", process.cwd()).option("--config <path>", "config file").option("--base <ref>", 'base ref, "auto" or "new"').addOption(new import_commander.Option("--scope <scope>", "diff scope").choices(["committed", "worktree"])).option("--push", "pre-push mode: read refs from stdin").option("--coverage <path>", "coverage report path or glob (repeatable)", collect, []).option("--threshold <percent>", "total diff coverage threshold", parseNumber).option("--per-file <percent>", "per-file diff coverage threshold", parseNumber).addOption(
291
291
  new import_commander.Option(
292
292
  "--missing <policy>",
293
293
  "what to do when a changed file is absent from coverage"
package/dist/index.js CHANGED
@@ -283,7 +283,7 @@ function parseNumber(value) {
283
283
  }
284
284
  function createProgram() {
285
285
  const program = new Command();
286
- program.name("diff-cov").description("Line coverage of the lines a git diff adds or modifies.").version("0.1.0").option("--cwd <dir>", "working directory", process.cwd()).option("--config <path>", "config file").option("--base <ref>", 'base ref, "auto" or "new"').addOption(new Option("--scope <scope>", "diff scope").choices(["committed", "worktree"])).option("--push", "pre-push mode: read refs from stdin").option("--coverage <path>", "coverage report path or glob (repeatable)", collect, []).option("--threshold <percent>", "total diff coverage threshold", parseNumber).option("--per-file <percent>", "per-file diff coverage threshold", parseNumber).addOption(
286
+ program.name("diff-cov").description("Line coverage of the lines a git diff adds or modifies.").version("0.1.1").option("--cwd <dir>", "working directory", process.cwd()).option("--config <path>", "config file").option("--base <ref>", 'base ref, "auto" or "new"').addOption(new Option("--scope <scope>", "diff scope").choices(["committed", "worktree"])).option("--push", "pre-push mode: read refs from stdin").option("--coverage <path>", "coverage report path or glob (repeatable)", collect, []).option("--threshold <percent>", "total diff coverage threshold", parseNumber).option("--per-file <percent>", "per-file diff coverage threshold", parseNumber).addOption(
287
287
  new Option(
288
288
  "--missing <policy>",
289
289
  "what to do when a changed file is absent from coverage"
package/package.json CHANGED
@@ -1,9 +1,18 @@
1
1
  {
2
2
  "name": "@diff-cov/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pre-push diff coverage gate for git and Vitest.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/aprilandjan/diff-cov.git",
10
+ "directory": "packages/cli"
11
+ },
12
+ "homepage": "https://github.com/aprilandjan/diff-cov#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/aprilandjan/diff-cov/issues"
15
+ },
7
16
  "keywords": [
8
17
  "coverage",
9
18
  "diff",
@@ -40,7 +49,7 @@
40
49
  "commander": "^15.1.0",
41
50
  "picocolors": "^1.1.1",
42
51
  "tinyglobby": "^0.2.17",
43
- "@diff-cov/core": "0.1.0"
52
+ "@diff-cov/core": "0.1.1"
44
53
  },
45
54
  "devDependencies": {
46
55
  "tsup": "^9.0.0",