fix(cli): Fix the cli utilities which require full paths
reset .js extension in import (#4267)
This commit is contained in:
parent
976003d665
commit
d09f8b5ba2
@ -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 => {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user