feat: remove extension in import

This commit is contained in:
2026-05-31 22:54:11 +09:00
parent 737019de8d
commit b87e735cb9
4 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { logger } from "../utils/logger.js"; import { logger } from "@/utils/logger";
interface GreetOptions { interface GreetOptions {
uppercase?: boolean; uppercase?: boolean;

View File

@@ -3,8 +3,8 @@ import { Command } from "commander";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import { fileURLToPath } from "url"; import { fileURLToPath } from "url";
import { dirname, join } from "path"; import { dirname, join } from "path";
import { logger } from "./utils/logger.js"; import { logger } from "@/utils/logger";
import { greet } from "./commands/greet.js"; import { greet } from "@/commands/greet";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);

View File

@@ -1,6 +1,7 @@
import chalk, { type ChalkInstance } from "chalk"; import chalk, { type ChalkInstance } from "chalk";
import { appendFileSync, existsSync, mkdirSync, createWriteStream, type WriteStream } from "fs"; import { appendFileSync, existsSync, mkdirSync, createWriteStream, type WriteStream } from "fs";
import { dirname } from "path"; import { dirname } from "path";
import { config } from "@/config";
export type LogLevel = "debug" | "info" | "success" | "warn" | "error" | "fatal"; export type LogLevel = "debug" | "info" | "success" | "warn" | "error" | "fatal";

View File

@@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"ignoreDeprecations": "6.0",
// Environment setup & latest features // Environment setup & latest features
"lib": ["ESNext"], "lib": ["ESNext"],
"target": "ESNext", "target": "ESNext",
@@ -10,6 +11,10 @@
"types": ["bun"], "types": ["bun"],
// Bundler mode // Bundler mode
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"moduleResolution": "bundler", "moduleResolution": "bundler",
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,