fix(cli): Fix the cli utilities which require full paths

reset .js extension in import (#4267)
This commit is contained in:
Salim Kanoun 2024-06-27 15:15:22 +02:00 committed by GitHub
parent 976003d665
commit d09f8b5ba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import fs from 'fs';
import { prettyPrint } from './utils/index';
import { prettyPrint } from './utils/index.js';
import { colors } from './enums/index.js';
const listPlugins = async configPath => {

View File

@ -1,6 +1,6 @@
import axios from 'axios';
import { prettyPrint } from './utils/index';
import { prettyPrint } from './utils/index.js';
import { keywords, colors, endPoints } from './enums/index.js';
async function searchRegistry(keyword) {

View File

@ -1,7 +1,7 @@
import { execa } from 'execa';
import fs from 'fs';
import path from 'path';
import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index';
import { validateYarn, removeExtensionFromConfig, removeModeFromConfig } from './utils/index.js';
const linkPackage = async (packageName, options, removeFromConfig) => {
const { viewerDirectory } = options;

View File

@ -15,7 +15,7 @@ If you would like to use a specific study, you can use the `studyInstanceUID` pr
```ts
import { test } from '@playwright/test';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2';
@ -52,7 +52,7 @@ import {
visitStudy,
checkForScreenshot,
screenshotPath,
} from './utils/index';
} from './utils/index.js';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2';
@ -84,7 +84,7 @@ import {
checkForScreenshot,
screenShotPaths,
simulateDrag,
} from './utils/index';
} from './utils/index.js';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2';

View File

@ -1,5 +1,5 @@
import { test } from '@playwright/test';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';