@dionlarson/playwright-orchestrator-core 1.3.0 → 1.3.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.
@@ -4,8 +4,11 @@ import run from './run.js';
4
4
  import create from './create.js';
5
5
  import createReport from './create-report.js';
6
6
  import { readFile } from 'node:fs/promises';
7
+ import { fileURLToPath } from 'node:url';
8
+ import { dirname, join } from 'node:path';
7
9
  export const program = new Command();
8
- const package_json = JSON.parse(await readFile('node_modules/@playwright-orchestrator/core/package.json', 'utf-8'));
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const package_json = JSON.parse(await readFile(join(__dirname, '..', '..', 'package.json'), 'utf-8'));
9
12
  program
10
13
  .name('playwright-orchestrator')
11
14
  .description('CLI to orchestrate Playwright tests')
@@ -1,7 +1,7 @@
1
1
  import { STORAGES } from '../plugins-list.js';
2
2
  export async function loadPluginModule(storage) {
3
3
  try {
4
- const a = await import(`@playwright-orchestrator/${storage}`);
4
+ const a = await import(`@dionlarson/playwright-orchestrator-${storage}`);
5
5
  return a;
6
6
  }
7
7
  catch (error) {
@@ -17,5 +17,5 @@ export async function loadRunInfo(args) {
17
17
  }
18
18
  function buildCommand(args) {
19
19
  // last param wins, so we need to put our reporter at the end
20
- return `npx playwright test --list ${args.join(' ')} --reporter "@playwright-orchestrator/core/tests-info-reporter"`;
20
+ return `npx playwright test --list ${args.join(' ')} --reporter "@dionlarson/playwright-orchestrator-core/tests-info-reporter"`;
21
21
  }
@@ -88,7 +88,7 @@ export class TestRunner {
88
88
  buildParams(test, config, testHash) {
89
89
  const args = [...config.args];
90
90
  args.push('--workers', '1');
91
- args.push('--reporter', 'blob,@playwright-orchestrator/core/test-result-reporter');
91
+ args.push('--reporter', 'blob,@dionlarson/playwright-orchestrator-core/test-result-reporter');
92
92
  args.push('--project', `"${test.project}"`);
93
93
  args.push('--output', `"${this.outputFolder}/${testHash}"`);
94
94
  if (config.configFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dionlarson/playwright-orchestrator-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Core lib and cli for Playwright test orchestration",
5
5
  "keywords": [
6
6
  "playwright",