Skip to content

Commit

Permalink
fix: import path (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Jan 29, 2023
1 parent 17df8ec commit 750ef60
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/common/adapter/binary/AbstractBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ImplDecorator, Inject, QualifierImplDecoratorUtil } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import { EggHttpClient, EggLogger } from 'egg';
import { BinaryTaskConfig } from '../../../../config/binaries';

Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/ApiBinary.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';
import { Inject, SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import { EggAppConfig } from 'egg';

@SingletonProto()
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/BucketBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries, { BinaryTaskConfig } from 'config/binaries';
import path from 'path';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/CypressBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

@SingletonProto()
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/ElectronBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries from 'config/binaries';
import { BinaryAdapter, BinaryItem, FetchResult } from './AbstractBinary';
import { GithubBinary } from './GithubBinary';
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/GithubBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries, { BinaryTaskConfig } from 'config/binaries';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/ImageminBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries from 'config/binaries';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/NodeBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries from 'config/binaries';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/NodePreGypBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries from 'config/binaries';
import { join } from 'path';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/NwjsBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import binaries from 'config/binaries';
import { FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';
import { BucketBinary } from './BucketBinary';
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/PlaywrightBinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AbstractBinary, BinaryAdapter, BinaryItem, FetchResult } from './Abstra
import util from 'util';
import path from 'path';
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';

const PACKAGE_URL = 'https://registry.npmjs.com/playwright-core';
const DOWNLOAD_HOST = 'https://playwright.azureedge.net/';
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/PuppeteerBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

@SingletonProto()
Expand Down
2 changes: 1 addition & 1 deletion app/common/adapter/binary/SqlcipherBinary.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SingletonProto } from '@eggjs/tegg';
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../../enum/Binary';
import { AbstractBinary, FetchResult, BinaryItem, BinaryAdapter } from './AbstractBinary';

@SingletonProto()
Expand Down
4 changes: 2 additions & 2 deletions app/core/service/BinarySyncerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { Binary } from '../entity/Binary';
import { TaskService } from './TaskService';
import { AbstractBinary, BinaryItem } from '../../common/adapter/binary/AbstractBinary';
import { AbstractService } from '../../common/AbstractService';
import { TaskRepository } from 'app/repository/TaskRepository';
import { BinaryType } from 'app/common/enum/Binary';
import { TaskRepository } from '../../repository/TaskRepository';
import { BinaryType } from '../../common/enum/Binary';

function isoNow() {
return new Date().toISOString();
Expand Down
2 changes: 1 addition & 1 deletion config/binaries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BinaryType } from 'app/common/enum/Binary';
import { BinaryType } from '../app/common/enum/Binary';

export type BinaryTaskConfig = {
category: string; // 默认 category 为 binaryName,但是有些 binary 会有不同的 category,比如 canvas,包含 canvas 和 node-canvas-prebuilt 两个
Expand Down

0 comments on commit 750ef60

Please sign in to comment.