Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit 8b8b4b4

Browse files
committed
Use relative path
1 parent 2221cbe commit 8b8b4b4

15 files changed

+46
-57
lines changed

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"@tsconfig/node16": "^1.0.2",
4545
"@types/concurrently": "^6.3.0",
4646
"@types/lodash": "^4.14.175",
47-
"@types/module-alias": "^2.0.1",
4847
"@types/node": "^16.10.3",
4948
"concurrently": "^6.3.0",
5049
"eslint": "^8.0.0",
@@ -54,12 +53,6 @@
5453
"typescript": "^4.4.3"
5554
},
5655
"dependencies": {
57-
"lodash": "^4.17.21",
58-
"module-alias": "^2.2.2"
59-
},
60-
"_moduleAliases": {
61-
"@src": "build",
62-
"@common": "build/commons",
63-
"@option": "build/options"
56+
"lodash": "^4.17.21"
6457
}
6558
}

src/commons/SlashCommandMethods.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { isFunction } from 'lodash';
22

3-
import { ApplicationCommandOptionStructure } from '@src/interfaces';
4-
5-
import SlashCommandOption from '@common/SlashCommandOption';
6-
7-
import SlashCommandBooleanOption from '@option/SlashCommandBooleanOption';
8-
import SlashCommandChannelOption from '@option/SlashCommandChannelOption';
9-
import SlashCommandIntegerOption from '@option/SlashCommandIntegerOption';
10-
import SlashCommandMentionableOption from '@option/SlashCommandMentionableOption';
11-
import SlashCommandNumberOption from '@option/SlashCommandNumberOption';
12-
import SlashCommandRoleOption from '@option/SlashCommandRoleOption';
13-
import SlashCommandStringOption from '@option/SlashCommandStringOption';
14-
import SlashCommandUserOption from '@option/SlashCommandUserOption';
3+
import { ApplicationCommandOptionStructure } from '../interfaces';
4+
5+
import SlashCommandOption from './SlashCommandOption';
6+
7+
import SlashCommandBooleanOption from '../options/SlashCommandBooleanOption';
8+
import SlashCommandChannelOption from '../options/SlashCommandChannelOption';
9+
import SlashCommandIntegerOption from '../options/SlashCommandIntegerOption';
10+
import SlashCommandMentionableOption from '../options/SlashCommandMentionableOption';
11+
import SlashCommandNumberOption from '../options/SlashCommandNumberOption';
12+
import SlashCommandRoleOption from '../options/SlashCommandRoleOption';
13+
import SlashCommandStringOption from '../options/SlashCommandStringOption';
14+
import SlashCommandUserOption from '../options/SlashCommandUserOption';
1515

1616
/*
1717
|--------------------------------------------------------------------------

src/commons/SlashCommandOption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isUndefined } from 'lodash';
33
import {
44
ApplicationCommandOptionTypes,
55
ApplicationCommandOptionStructure,
6-
} from '@src/interfaces';
6+
} from '../interfaces';
77

88
/*
99
|--------------------------------------------------------------------------

src/commons/SlashCommandOptionWithChoices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
ApplicationCommandOptionStructure,
66
ApplicationCommandOptionTypes,
77
Choices,
8-
} from '@src/interfaces';
8+
} from '../interfaces';
99

10-
import SlashCommandOption from '@common/SlashCommandOption';
10+
import SlashCommandOption from './SlashCommandOption';
1111

1212
/*
1313
|--------------------------------------------------------------------------

src/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
require('module-alias/register');
22

3-
import SlashCommandBooleanOption from '@option/SlashCommandBooleanOption';
4-
import SlashCommandChannelOption from '@option/SlashCommandChannelOption';
5-
import SlashCommandIntegerOption from '@option/SlashCommandIntegerOption';
6-
import SlashCommandMentionableOption from '@option/SlashCommandMentionableOption';
7-
import SlashCommandNumberOption from '@option/SlashCommandNumberOption';
8-
import SlashCommandRoleOption from '@option/SlashCommandRoleOption';
9-
import SlashCommandStringOption from '@option/SlashCommandStringOption';
10-
import SlashCommandUserOption from '@option/SlashCommandUserOption';
3+
import SlashCommandBooleanOption from './options/SlashCommandBooleanOption';
4+
import SlashCommandChannelOption from './options/SlashCommandChannelOption';
5+
import SlashCommandIntegerOption from './options/SlashCommandIntegerOption';
6+
import SlashCommandMentionableOption from './options/SlashCommandMentionableOption';
7+
import SlashCommandNumberOption from './options/SlashCommandNumberOption';
8+
import SlashCommandRoleOption from './options/SlashCommandRoleOption';
9+
import SlashCommandStringOption from './options/SlashCommandStringOption';
10+
import SlashCommandUserOption from './options/SlashCommandUserOption';
1111

1212
/*
1313
|--------------------------------------------------------------------------
@@ -29,7 +29,7 @@ export {
2929
ChannelTypes,
3030
Choices,
3131
Snowflake,
32-
} from '@src/interfaces';
32+
} from './interfaces';
3333

3434
/*
3535
|--------------------------------------------------------------------------
@@ -40,7 +40,7 @@ export {
4040
|
4141
*/
4242

43-
import { SlashCommandBuilder } from '@src/main';
43+
import { SlashCommandBuilder } from './main';
4444

4545
export default SlashCommandBuilder;
4646

@@ -56,7 +56,7 @@ export default SlashCommandBuilder;
5656
export {
5757
SlashCommandSubcommand,
5858
SlashCommandSubcommandGroup,
59-
} from '@src/main';
59+
} from './main';
6060

6161
export {
6262
SlashCommandBooleanOption,

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
ApplicationCommandOptionTypes,
77
ApplicationCommandTypes,
88
CommonPropertiesAndMethods,
9-
} from '@src/interfaces';
9+
} from './interfaces';
1010

11-
import SlashCommandMethods from '@common/SlashCommandMethods';
11+
import SlashCommandMethods from './commons/SlashCommandMethods';
1212

1313
/*
1414
|--------------------------------------------------------------------------

src/options/SlashCommandBooleanOption.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ApplicationCommandOptionTypes } from '@src/interfaces';
1+
import { ApplicationCommandOptionTypes } from '../interfaces';
22

3-
import SlashCommandOption from '@common/SlashCommandOption';
3+
import SlashCommandOption from '../commons/SlashCommandOption';
44

55
/*
66
|--------------------------------------------------------------------------

src/options/SlashCommandChannelOption.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {
44
ApplicationCommandOptionStructure,
55
ApplicationCommandOptionTypes,
66
ChannelTypes,
7-
} from '@src/interfaces';
7+
} from '../interfaces';
88

9-
import SlashCommandOption from '@common/SlashCommandOption';
9+
import SlashCommandOption from '../commons/SlashCommandOption';
1010

1111
/*
1212
|--------------------------------------------------------------------------

src/options/SlashCommandIntegerOption.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ApplicationCommandOptionTypes } from '@src/interfaces';
1+
import { ApplicationCommandOptionTypes } from '../interfaces';
22

3-
import SlashCommandOptionWithChoices from '@common/SlashCommandOptionWithChoices';
3+
import SlashCommandOptionWithChoices from '../commons/SlashCommandOptionWithChoices';
44

55
/*
66
|--------------------------------------------------------------------------

src/options/SlashCommandMentionableOption.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ApplicationCommandOptionTypes } from '@src/interfaces';
1+
import { ApplicationCommandOptionTypes } from '../interfaces';
22

3-
import SlashCommandOption from '@common/SlashCommandOption';
3+
import SlashCommandOption from '../commons/SlashCommandOption';
44

55
/*
66
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)