fix: mochaが動かないため拡張子なしに戻した

This commit is contained in:
syuilo
2021-08-19 21:55:45 +09:00
parent e9f34a0f09
commit 42cc93dd0f
657 changed files with 3085 additions and 3085 deletions

View File

@@ -1,7 +1,7 @@
// ex) node built/tools/accept-migration Yo 1000000000001
import { createConnection } from 'typeorm';
import config from '@/config/index.js';
import config from '@/config/index';
createConnection({
type: 'postgres',

View File

@@ -1,5 +1,5 @@
import { Emojis } from '@/models/index.js';
import { genId } from '@/misc/gen-id.js';
import { Emojis } from '@/models/index';
import { genId } from '@/misc/gen-id';
async function main(name: string, url: string, alias?: string): Promise<any> {
const aliases = alias != null ? [ alias ] : [];

View File

@@ -1,6 +1,6 @@
import { initDb } from '../db/postgre.js';
import { initDb } from '../db/postgre';
import { getRepository } from 'typeorm';
import { User } from '@/models/entities/user.js';
import { User } from '@/models/entities/user';
async function main(username: string) {
if (!username) throw `username required`;

View File

@@ -1,6 +1,6 @@
import { initDb } from '../db/postgre.js';
import { initDb } from '../db/postgre';
import { getRepository } from 'typeorm';
import { User } from '@/models/entities/user.js';
import { User } from '@/models/entities/user';
async function main(username: string) {
if (!username) throw `username required`;

View File

@@ -1,4 +1,4 @@
import { updateQuestion } from '@/remote/activitypub/models/question.js';
import { updateQuestion } from '@/remote/activitypub/models/question';
async function main(uri: string): Promise<any> {
return await updateQuestion(uri);

View File

@@ -1,5 +1,5 @@
import { initDb } from '@/db/postgre.js';
import { parseAcct } from '@/misc/acct.js';
import { initDb } from '@/db/postgre';
import { parseAcct } from '@/misc/acct';
async function main(acct: string): Promise<any> {
await initDb();

View File

@@ -1,4 +1,4 @@
import { Users, Signins } from '@/models/index.js';
import { Users, Signins } from '@/models/index';
// node built/tools/show-signin-history username
// => {Success} {Date} {IPAddrsss}