diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-23 17:43:07 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-23 17:43:07 +0900 |
| commit | c74fe3c6e2aae3df4624b9b3a55b45293223ebf5 (patch) | |
| tree | 53ed8d31143b15b6621e59002006e318789e36a4 /src/tools | |
| parent | refactor: Tweak path alias of client (diff) | |
| download | sharkey-c74fe3c6e2aae3df4624b9b3a55b45293223ebf5.tar.gz sharkey-c74fe3c6e2aae3df4624b9b3a55b45293223ebf5.tar.bz2 sharkey-c74fe3c6e2aae3df4624b9b3a55b45293223ebf5.zip | |
refactor: Use path alias
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/accept-migration.ts | 2 | ||||
| -rw-r--r-- | src/tools/add-emoji.ts | 2 | ||||
| -rw-r--r-- | src/tools/resync-remote-user.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/accept-migration.ts b/src/tools/accept-migration.ts index addce86f1f..0622869398 100644 --- a/src/tools/accept-migration.ts +++ b/src/tools/accept-migration.ts @@ -1,7 +1,7 @@ // ex) node built/tools/accept-migration Yo 1000000000001 import { createConnection } from 'typeorm'; -import config from '../config'; +import config from '@/config'; createConnection({ type: 'postgres', diff --git a/src/tools/add-emoji.ts b/src/tools/add-emoji.ts index 3745b48889..ca25d1348b 100644 --- a/src/tools/add-emoji.ts +++ b/src/tools/add-emoji.ts @@ -1,5 +1,5 @@ import { Emojis } from '../models'; -import { genId } from '../misc/gen-id'; +import { genId } from '@/misc/gen-id'; async function main(name: string, url: string, alias?: string): Promise<any> { const aliases = alias != null ? [ alias ] : []; diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index c9d1ed588c..9897cba9f8 100644 --- a/src/tools/resync-remote-user.ts +++ b/src/tools/resync-remote-user.ts @@ -1,4 +1,4 @@ -import parseAcct from '../misc/acct/parse'; +import parseAcct from '@/misc/acct/parse'; import { resolveUser } from '../remote/resolve-user'; async function main(acct: string): Promise<any> { |