regressify 1.0.31 → 1.0.33
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 +3 -4
- package/package.json +2 -2
package/cli/generate-tests.js
CHANGED
package/cli/index.js
CHANGED
|
@@ -4,8 +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';
|
|
8
|
-
import slash from 'slash';
|
|
7
|
+
import { getLibraryPath } from './helpers.js';
|
|
9
8
|
|
|
10
9
|
const libraryPath = getLibraryPath();
|
|
11
10
|
|
|
@@ -37,7 +36,7 @@ const command = args[0].toLowerCase();
|
|
|
37
36
|
let commandBase = `node ${libraryPath}/src/index.js`;
|
|
38
37
|
|
|
39
38
|
if (command === 'init') {
|
|
40
|
-
const postInstallPath =
|
|
39
|
+
const postInstallPath = pathToFileURL(path.join(libraryPath, 'cli', 'generate-tests.js'));
|
|
41
40
|
if (fs.existsSync(postInstallPath)) {
|
|
42
41
|
console.log(chalk.yellow('Generate folder visual_tests ...'));
|
|
43
42
|
await import(postInstallPath);
|
|
@@ -45,7 +44,7 @@ if (command === 'init') {
|
|
|
45
44
|
console.log(chalk.red('generate-tests.js not found!'));
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
const updatePackageJsonPath =
|
|
47
|
+
const updatePackageJsonPath = pathToFileURL(path.join(libraryPath, 'cli', 'update-package.js'));
|
|
49
48
|
if (fs.existsSync(updatePackageJsonPath)) {
|
|
50
49
|
console.log(chalk.yellow('Update package.json ...'));
|
|
51
50
|
await import(updatePackageJsonPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "regressify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Visual regression tests support",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test",
|
|
24
24
|
"regression"
|
|
25
25
|
],
|
|
26
|
-
"author": "
|
|
26
|
+
"author": "tuyen-at-work",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"backstopjs": "^6.2.2",
|