Skip to content

Commit c3139e4

Browse files
committed
refactor: 优化目录结构
1 parent 4895a53 commit c3139e4

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"oclif": {
3232
"bin": "aigc-detector",
33-
"commands": "./dist/commands",
33+
"commands": "./dist/cli/commands",
3434
"dirname": "aigc-detector",
3535
"plugins": [
3636
"@oclif/plugin-help",

src/commands/config.ts renamed to src/cli/commands/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Flags } from '@oclif/core';
22
import inquirer from 'inquirer';
33

4-
import { maskKey } from '../core/utils';
4+
import { maskKey } from '../../core/utils';
5+
import { getAvailablePlatforms, getPlatform, type Platform } from '../../platform';
56
import BaseCommand from '../extends/command';
6-
import { getAvailablePlatforms, getPlatform, type Platform } from '../platform';
77

88
class ConfigCommand extends BaseCommand {
99
static args = {};

src/commands/detect.ts renamed to src/cli/commands/detect.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { Args, Flags } from '@oclif/core';
22
import chalk from 'chalk';
33
import ora from 'ora';
44

5-
import { AIGC } from '../core';
5+
import { AIGC } from '../../core';
6+
import { type Platform } from '../../platform';
67
import BaseCommand from '../extends/command';
7-
import { type Platform } from '../platform';
88

99
class DetectCommand extends BaseCommand {
1010
static args = {
File renamed without changes.

src/manager/config.ts renamed to src/cli/manager/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path';
22

3-
import { getEnvConfig, type Config } from '../core/env';
3+
import { getEnvConfig, type Config } from '../../core/env';
44
import FileManager from './file';
55
import encryptMiddleware from './middlewares/encrypt';
66

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)