refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// ex) node built/tools/accept-migration Yo 1000000000001
|
||||
|
||||
import { createConnection } from 'typeorm';
|
||||
import config from '@/config/index';
|
||||
import config from '@/config/index.js';
|
||||
|
||||
createConnection({
|
||||
type: 'postgres',
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { initDb } from '../db/postgre';
|
||||
import { initDb } from '../db/postgre.js';
|
||||
|
||||
async function main(username: string) {
|
||||
if (!username) throw `username required`;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { initDb } from '../db/postgre';
|
||||
import { initDb } from '../db/postgre.js';
|
||||
|
||||
async function main(username: string) {
|
||||
if (!username) throw `username required`;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { initDb } from '@/db/postgre';
|
||||
import { initDb } from '@/db/postgre.js';
|
||||
|
||||
async function main(uri: string): Promise<any> {
|
||||
await initDb();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { initDb } from '@/db/postgre';
|
||||
import * as Acct from 'misskey-js/built/acct';
|
||||
import { initDb } from '@/db/postgre.js';
|
||||
import * as Acct from '@/misc/acct.js';
|
||||
|
||||
async function main(acct: string): Promise<any> {
|
||||
await initDb();
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { initDb } from '@/db/postgre';
|
||||
import { initDb } from '@/db/postgre.js';
|
||||
|
||||
// node built/tools/show-signin-history username
|
||||
// => {Success} {Date} {IPAddrsss}
|
||||
|
Reference in New Issue
Block a user