Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes lint
  • Loading branch information
arcanis committed Mar 23, 2022
commit f9a9b76818abff51a341cc32f765fb407ac7acba
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class ConstraintsCheckCommand extends BaseCommand {
});

async execute() {
const {Constraints} = await import('../Constraints');
const {Constraints} = await import(`../Constraints`);

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
const {project} = await Project.find(configuration, this.context.cwd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class ConstraintsQueryCommand extends BaseCommand {
query = Option.String();

async execute() {
const {Constraints} = await import('../../Constraints');
const {Constraints} = await import(`../../Constraints`);

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
const {project} = await Project.find(configuration, this.context.cwd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class ConstraintsSourceCommand extends BaseCommand {
});

async execute() {
const {Constraints} = await import('../../Constraints');
const {Constraints} = await import(`../../Constraints`);

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
const {project} = await Project.find(configuration, this.context.cwd);
Expand Down
28 changes: 14 additions & 14 deletions packages/plugin-interactive-tools/sources/commands/search.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, structUtils} from '@yarnpkg/core';
import type {SubmitInjectedComponent} from '@yarnpkg/libui/sources/misc/renderForm';
import {Command, Usage} from 'clipanion';
import {BaseCommand} from '@yarnpkg/cli';
import {Configuration, structUtils} from '@yarnpkg/core';
import type {SubmitInjectedComponent} from '@yarnpkg/libui/sources/misc/renderForm';
import {Command, Usage} from 'clipanion';

import {AlgoliaPackage, search} from '../algolia';
import {AlgoliaPackage, search} from '../algolia';

const TARGETS = [`regular`, `dev`, `peer`];

Expand All @@ -26,15 +26,15 @@ export default class SearchCommand extends BaseCommand {
});

async execute() {
const {Gem} = await import('@yarnpkg/libui/sources/components/Gem');
const {ScrollableItems} = await import('@yarnpkg/libui/sources/components/ScrollableItems');
const {useKeypress} = await import('@yarnpkg/libui/sources/hooks/useKeypress');
const {useMinistore} = await import('@yarnpkg/libui/sources/hooks/useMinistore');
const {renderForm} = await import('@yarnpkg/libui/sources/misc/renderForm');

const {default: InkTextInput} = await import('ink-text-input');
const {Box, Text} = await import('ink');
const {default: React, useEffect, useState} = await import('react');
const {Gem} = await import(`@yarnpkg/libui/sources/components/Gem`);
const {ScrollableItems} = await import(`@yarnpkg/libui/sources/components/ScrollableItems`);
const {useKeypress} = await import(`@yarnpkg/libui/sources/hooks/useKeypress`);
const {useMinistore} = await import(`@yarnpkg/libui/sources/hooks/useMinistore`);
const {renderForm} = await import(`@yarnpkg/libui/sources/misc/renderForm`);

const {default: InkTextInput} = await import(`ink-text-input`);
const {Box, Text} = await import(`ink`);
const {default: React, useEffect, useState} = await import(`react`);

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export default class UpgradeInteractiveCommand extends BaseCommand {
});

async execute() {
const {ItemOptions} = await import('@yarnpkg/libui/sources/components/ItemOptions');
const {Pad} = await import('@yarnpkg/libui/sources/components/Pad');
const {ScrollableItems} = await import('@yarnpkg/libui/sources/components/ScrollableItems');
const {useMinistore} = await import('@yarnpkg/libui/sources/hooks/useMinistore');
const {renderForm} = await import('@yarnpkg/libui/sources/misc/renderForm');
const {Box, Text} = await import('ink');
const {default: React, useEffect, useRef, useState} = await import('react');
const {ItemOptions} = await import(`@yarnpkg/libui/sources/components/ItemOptions`);
const {Pad} = await import(`@yarnpkg/libui/sources/components/Pad`);
const {ScrollableItems} = await import(`@yarnpkg/libui/sources/components/ScrollableItems`);
const {useMinistore} = await import(`@yarnpkg/libui/sources/hooks/useMinistore`);
const {renderForm} = await import(`@yarnpkg/libui/sources/misc/renderForm`);
const {Box, Text} = await import(`ink`);
const {default: React, useEffect, useRef, useState} = await import(`react`);

if (!(this.context.stdout as WriteStream).isTTY)
throw new UsageError(`This command can only be run in a TTY environment`);
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-typescript/sources/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Descriptor, Plugin, Workspace, ResolveOptions, Manifest, AllDependencies, DescriptorHash, Package} from '@yarnpkg/core';
import {structUtils, ThrowReport, miscUtils, semverUtils} from '@yarnpkg/core';
import {Filename, ppath, xfs} from '@yarnpkg/fslib';
import {Filename, ppath, xfs} from '@yarnpkg/fslib';
import {Hooks as EssentialsHooks} from '@yarnpkg/plugin-essentials';
import {suggestUtils} from '@yarnpkg/plugin-essentials';
import {Hooks as PackHooks} from '@yarnpkg/plugin-pack';
Expand Down
16 changes: 8 additions & 8 deletions packages/plugin-version/sources/commands/version/check.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli';
import {Configuration, MessageName, Project, StreamReport, Workspace, formatUtils, structUtils} from '@yarnpkg/core';
import {npath} from '@yarnpkg/fslib';
import {Command, Option, Usage, UsageError} from 'clipanion';
import type {FocusRequest} from '@yarnpkg/libui/sources/hooks/useFocusRequest';
import {Command, Option, Usage, UsageError} from 'clipanion';
import semver from 'semver';

import * as versionUtils from '../../versionUtils';
Expand Down Expand Up @@ -44,13 +44,13 @@ export default class VersionCheckCommand extends BaseCommand {
}

async executeInteractive() {
const {Gem} = await import('@yarnpkg/libui/sources/components/Gem');
const {ScrollableItems} = await import('@yarnpkg/libui/sources/components/ScrollableItems');
const {FocusRequest} = await import('@yarnpkg/libui/sources/hooks/useFocusRequest');
const {useListInput} = await import('@yarnpkg/libui/sources/hooks/useListInput');
const {renderForm} = await import('@yarnpkg/libui/sources/misc/renderForm');
const {Box, Text} = await import('ink');
const {default: React, useCallback, useState} = await import('react');
const {Gem} = await import(`@yarnpkg/libui/sources/components/Gem`);
const {ScrollableItems} = await import(`@yarnpkg/libui/sources/components/ScrollableItems`);
const {FocusRequest} = await import(`@yarnpkg/libui/sources/hooks/useFocusRequest`);
const {useListInput} = await import(`@yarnpkg/libui/sources/hooks/useListInput`);
const {renderForm} = await import(`@yarnpkg/libui/sources/misc/renderForm`);
const {Box, Text} = await import(`ink`);
const {default: React, useCallback, useState} = await import(`react`);

const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
const {project, workspace} = await Project.find(configuration, this.context.cwd);
Expand Down