regressify 1.0.30 → 1.0.32
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/cli/generate-tests.js +1 -1
- package/cli/index.js +2 -2
- package/package.json +4 -4
package/cli/generate-tests.js
CHANGED
package/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import { exec } from 'child_process';
|
|
5
5
|
import { pathToFileURL } from 'url';
|
|
6
6
|
import chalk from 'chalk';
|
|
7
|
-
import { getLibraryPath } from './helpers';
|
|
7
|
+
import { getLibraryPath } from './helpers.js';
|
|
8
8
|
import slash from 'slash';
|
|
9
9
|
|
|
10
10
|
const libraryPath = getLibraryPath();
|
|
@@ -34,7 +34,7 @@ function runCommand(command) {
|
|
|
34
34
|
const args = process.argv.slice(2);
|
|
35
35
|
const command = args[0].toLowerCase();
|
|
36
36
|
|
|
37
|
-
let commandBase = `node ${libraryPath}/
|
|
37
|
+
let commandBase = `node ${libraryPath}/src/index.js`;
|
|
38
38
|
|
|
39
39
|
if (command === 'init') {
|
|
40
40
|
const postInstallPath = slash(pathToFileURL(path.join(libraryPath, 'cli', 'generate-tests.js')));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "regressify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"description": "Visual regression tests support",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc --project tsconfig.json",
|
|
12
|
-
"ref": "node
|
|
13
|
-
"approve": "node
|
|
14
|
-
"test": "node
|
|
12
|
+
"ref": "node src/index.js -- --command test --ref",
|
|
13
|
+
"approve": "node src/index.js -- --command approve",
|
|
14
|
+
"test": "node src/index.js -- --command test"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|