@pablocm90/visual-review 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/cli.js +0 -0
- package/dist/read-range.js +2 -2
- package/package.json +10 -12
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/read-range.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execFile } from 'node:child_process';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
-
import { mkdtemp, readFile, rm } from 'node:fs/promises';
|
|
3
|
+
import { mkdtemp, readFile, realpath, rm } from 'node:fs/promises';
|
|
4
4
|
import { tmpdir } from 'node:os';
|
|
5
5
|
import { basename, join, relative } from 'node:path';
|
|
6
6
|
import { promisify } from 'node:util';
|
|
@@ -114,7 +114,7 @@ export const readRange = async ({ repo, from, to }) => {
|
|
|
114
114
|
const [fromCommit, toCommit] = await Promise.all([resolve(repo, from), resolve(repo, to)]);
|
|
115
115
|
const base = await git(repo, 'merge-base', fromCommit, toCommit);
|
|
116
116
|
const config = await configAt(repo, toCommit);
|
|
117
|
-
const scratch = await mkdtemp(join(tmpdir(), 'visual-review-'));
|
|
117
|
+
const scratch = await realpath(await mkdtemp(join(tmpdir(), 'visual-review-')));
|
|
118
118
|
try {
|
|
119
119
|
const before = await readSide({
|
|
120
120
|
repo,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pablocm90/visual-review",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Structural review pages for pull requests, ranges and uncommitted work",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,16 +26,6 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"packageManager": "pnpm@10.34.7",
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && vite build && node src/write-schemas.ts",
|
|
32
|
-
"prepack": "pnpm build",
|
|
33
|
-
"check": "biome check .",
|
|
34
|
-
"typecheck": "tsc --noEmit",
|
|
35
|
-
"test": "vitest run",
|
|
36
|
-
"mutate": "stryker run",
|
|
37
|
-
"review": "vite build --logLevel silent && node src/cli.ts"
|
|
38
|
-
},
|
|
39
29
|
"devDependencies": {
|
|
40
30
|
"@babel/types": "^8.0.6",
|
|
41
31
|
"@biomejs/biome": "^2.5.15",
|
|
@@ -66,5 +56,13 @@
|
|
|
66
56
|
"tree-sitter-rust": "0.24.0",
|
|
67
57
|
"web-tree-sitter": "0.27.0",
|
|
68
58
|
"zod": "^4.6.7"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && vite build && node src/write-schemas.ts",
|
|
62
|
+
"check": "biome check .",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"mutate": "stryker run",
|
|
66
|
+
"review": "vite build --logLevel silent && node src/cli.ts"
|
|
69
67
|
}
|
|
70
|
-
}
|
|
68
|
+
}
|