Skip to content

Commit

Permalink
Code: nr format
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 29, 2024
1 parent 1c5c74e commit 8e2e296
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions sub-chart/build.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { rollup } from "rollup";
import esbuild from "rollup-plugin-esbuild";
import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import nodeResolve from "@rollup/plugin-node-resolve";
import terser from "@rollup/plugin-terser";
import { rollup } from "rollup";
import esbuild from "rollup-plugin-esbuild";

const bundle = await rollup({
input: `${import.meta.dirname}/src/index.ts`,
Expand Down
8 changes: 4 additions & 4 deletions sub-chart/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import http from "node:http";
import fs from "node:fs";
import { gunzip as gunzipCb } from "node:zlib";
import http from "node:http";
import { promisify } from "node:util";
import { test, describe, beforeAll, afterAll, it, expect } from "vitest";
import { gunzip as gunzipCb } from "node:zlib";
import { afterAll, beforeAll, describe, expect, it, test } from "vitest";
import app from "~/server.ts";

const gunzip = promisify(gunzipCb);
Expand Down Expand Up @@ -73,7 +73,7 @@ describe("POST /convert", () => {
});
const { id } = await convertResponse.json();

const response = await (app).request(`/download/${id}`);
const response = await app.request(`/download/${id}`);

expect(response.status).toBe(200);

Expand Down
2 changes: 1 addition & 1 deletion sub-chart/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import app from "./server.ts";
import { serve } from "@hono/node-server";
import app from "./server.ts";

const port = 3201;
serve({ port, fetch: app.fetch }, () => {
Expand Down
14 changes: 7 additions & 7 deletions sub-chart/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { gzip as gzipBase } from "node:zlib";
import { promisify } from "node:util";
import { randomUUID } from "node:crypto";
import fs from "node:fs";
import { Readable } from "node:stream";
import { write as temporaryWrite } from "tempy";
import { promisify } from "node:util";
import { gzip as gzipBase } from "node:zlib";
import { sentry } from "@hono/sentry";
import { zValidator } from "@hono/zod-validator";
import axios from "axios";
import dotenv from "dotenv";
import { Hono } from "hono";
import { logger } from "hono/logger";
import { stream } from "hono/streaming";
import { sentry } from "@hono/sentry";
import { anyToUSC } from "usctool";
import { uscToLevelData } from "sonolus-pjsekai-engine-extended/dist/convert.cjs";
import { zValidator } from "@hono/zod-validator";
import * as z from "zod";
import { write as temporaryWrite } from "tempy";
import urlJoin from "url-join";
import { anyToUSC } from "usctool";
import * as z from "zod";

dotenv.config({ path: ".env" });
dotenv.config({ path: "../.env" });
Expand Down
4 changes: 2 additions & 2 deletions sub-chart/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineConfig } from "vitest/config"
import { defineConfig } from "vitest/config";

export default defineConfig({
resolve: {
alias: {
"~/": "/src/",
},
},
})
});

0 comments on commit 8e2e296

Please sign in to comment.