ortoni-report 2.0.0 → 2.0.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/changelog.md +4 -0
- package/dist/cli/cli.js +7 -2
- package/package.json +4 -4
package/changelog.md
CHANGED
package/dist/cli/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -9,6 +9,11 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const commander_1 = require("commander");
|
|
10
10
|
const child_process_1 = require("child_process");
|
|
11
11
|
const utils_1 = require("../utils/utils");
|
|
12
|
+
const findParcelBinary = () => {
|
|
13
|
+
const localParcel = path_1.default.resolve(__dirname, '../../node_modules/.bin/parcel');
|
|
14
|
+
const projectParcel = path_1.default.resolve(process.cwd(), 'node_modules/.bin/parcel');
|
|
15
|
+
return fs_1.default.existsSync(localParcel) ? localParcel : projectParcel;
|
|
16
|
+
};
|
|
12
17
|
commander_1.program
|
|
13
18
|
.name('ortoni-report')
|
|
14
19
|
.description('Ortoni Report by LetCode with Koushik')
|
|
@@ -25,7 +30,7 @@ commander_1.program
|
|
|
25
30
|
process.exit(1);
|
|
26
31
|
}
|
|
27
32
|
// Resolve the path to the local parcel binary
|
|
28
|
-
const parcelPath =
|
|
33
|
+
const parcelPath = findParcelBinary();
|
|
29
34
|
const parcelCommand = `${parcelPath} build ${reportPath} --dist-dir ortoni-report --public-url ./`;
|
|
30
35
|
console.log('Bundling Ortoni Report...');
|
|
31
36
|
(0, child_process_1.exec)(parcelCommand, (error, stdout, stderr) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ortoni-report",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Playwright Report By LetCode with Koushik",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ortoni-report": "./dist/cli/cli.js"
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@playwright/test": "^1.44.1",
|
|
41
41
|
"@types/node": "^22.0.2",
|
|
42
42
|
"colors": "^1.4.0",
|
|
43
|
+
"commander": "^12.1.0",
|
|
43
44
|
"handlebars": "^4.7.8",
|
|
44
45
|
"tsup": "^6.5.0",
|
|
45
|
-
"typescript": "^4.9.4"
|
|
46
|
-
"commander": "^12.1.0"
|
|
46
|
+
"typescript": "^4.9.4"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"parcel": "^2.12.0"
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"main": "dist/ortoni-report.js",
|
|
52
52
|
"module": "dist/ortoni-report.mjs",
|
|
53
53
|
"types": "dist/ortoni-report.d.ts"
|
|
54
|
-
}
|
|
54
|
+
}
|