watskeburt 2.0.4 → 2.0.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022-2023 Sander Verweij
3
+ Copyright (c) 2022-2024 Sander Verweij
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,9 +18,7 @@ export async function getDiffLines(
18
18
  const lErrorMap = new Map([
19
19
  [
20
20
  128,
21
- `revision '${pOldRevision}' ${
22
- pNewRevision ? `(or '${pNewRevision}') ` : ""
23
- }unknown`,
21
+ `revision '${pOldRevision}' ${pNewRevision ? `(or '${pNewRevision}') ` : ""}unknown`,
24
22
  ],
25
23
  [129, `'${process.cwd()}' does not seem to be a git repository`],
26
24
  ]);
@@ -63,9 +61,7 @@ function getGitResult(pArguments, pErrorMap, pSpawnFunction) {
63
61
  pReject(
64
62
  new Error(
65
63
  pErrorMap.get(pCode ?? 0) ||
66
- `internal git error: ${pCode} (${stringifyOutStream(
67
- lStdErrorData,
68
- )})`,
64
+ `internal git error: ${pCode} (${stringifyOutStream(lStdErrorData)})`,
69
65
  ),
70
66
  );
71
67
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "2.0.4";
1
+ export const VERSION = "2.0.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watskeburt",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "List files changed since a git revision",
5
5
  "keywords": [
6
6
  "git",
@@ -44,62 +44,10 @@
44
44
  "package.json",
45
45
  "README.md"
46
46
  ],
47
- "devDependencies": {
48
- "@types/node": "20.10.5",
49
- "@typescript-eslint/eslint-plugin": "6.16.0",
50
- "c8": "8.0.1",
51
- "dependency-cruiser": "15.5.0",
52
- "eslint": "8.56.0",
53
- "eslint-config-moving-meadow": "4.0.2",
54
- "eslint-config-prettier": "9.1.0",
55
- "eslint-plugin-budapestian": "6.0.0",
56
- "eslint-plugin-eslint-comments": "3.2.0",
57
- "eslint-plugin-import": "2.29.1",
58
- "eslint-plugin-mocha": "10.2.0",
59
- "eslint-plugin-node": "11.1.0",
60
- "eslint-plugin-security": "2.1.0",
61
- "eslint-plugin-unicorn": "50.0.1",
62
- "npm-run-all": "4.1.5",
63
- "prettier": "3.1.1",
64
- "tsx": "4.7.0",
65
- "typescript": "5.3.3",
66
- "upem": "9.0.2"
67
- },
68
47
  "engines": {
69
48
  "node": "^18||>=20"
70
49
  },
71
50
  "scripts": {
72
- "build": "npm-run-all --sequential build:clean build:version build:dist build:format",
73
- "build:version": "tsx tools/get-version.ts > src/version.ts",
74
- "build:clean": "rm -rf dist/*",
75
- "build:dist": "tsc",
76
- "build:format": "prettier --log-level warn --write dist/",
77
- "check": "npm-run-all --parallel --aggregate-output lint depcruise test:cover",
78
- "clean": "rm -rf dist",
79
- "test": "tsx --test-reporter ./tools/dot-with-summary.reporter.js --test src/*.spec.ts src/**/*.spec.ts",
80
- "test:cover": "c8 npm test",
81
- "depcruise": "depcruise dist src types",
82
- "depcruise:graph": "depcruise src types --include-only '^(dist|src|types)' --output-type dot | dot -T svg | tee docs/dependency-graph.svg | depcruise-wrap-stream-in-html > docs/dependency-graph.html",
83
- "depcruise:graph:archi": "depcruise src --include-only '^(dist|src|types)' --output-type archi | dot -T svg | depcruise-wrap-stream-in-html > docs/high-level-dependency-graph.html",
84
- "depcruise:graph:dev": "depcruise dist src types --include-only '^(dist|src|types)' --prefix vscode://file/$(pwd)/ --output-type dot | dot -T svg | depcruise-wrap-stream-in-html | browser",
85
- "depcruise:graph:diff:dev": "depcruise dist src types --include-only '^(dist|src|types)' --highlight \"$(node dist/run-cli.js main -T regex)\" --prefix vscode://file/$(pwd)/ --output-type dot | dot -T svg | depcruise-wrap-stream-in-html | browser",
86
- "depcruise:graph:diff:mermaid": "depcruise dist src types --include-only '^(dist|src|types)' --output-type mermaid --output-to - --highlight \"$(node dist/run-cli.js $SHA -T regex)\"",
87
- "depcruise:html": "depcruise src types --progress --output-type err-html --output-to dependency-violation-report.html",
88
- "depcruise:text": "depcruise src types --progress --output-type text",
89
- "depcruise:focus": "depcruise src types --progress --output-type text --focus",
90
- "depcruise:reaches": "depcruise src types --progress --output-type text --reaches",
91
- "format": "prettier --write \"{src,tools}/**/*.{js,ts}\" \"types/**/*.ts\" \"*.{json,yml,md,js}\"",
92
- "format:check": "prettier --log-level warn --check \"{src,tools}/**/*.ts\" \"types/**/*.ts\" \"*.{json,yml,md,js}\"",
93
- "lint": "npm-run-all --parallel --aggregate-output format:check lint:eslint lint:types",
94
- "lint:fix": "npm-run-all --parallel --aggregate-output format lint:eslint:fix",
95
- "lint:eslint": "eslint src types tools --cache --cache-location node_modules/.cache/eslint/",
96
- "lint:eslint:fix": "eslint src types tools --fix --cache --cache-location node_modules/.cache/eslint/",
97
- "lint:types": "tsc --noEmit",
98
- "scm:stage": "git add .",
99
- "update-dependencies": "run-s upem:update upem:install lint:fix check",
100
- "upem-outdated": "npm outdated --json --long | upem --dry-run",
101
- "upem:install": "npm install",
102
- "upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
103
- "version": "npm-run-all --sequential clean build lint depcruise:graph scm:stage"
51
+ "test": "echo for test, build and static analysis scripts: see the github repository"
104
52
  }
105
53
  }