feat: remove extension in import
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { logger } from "../utils/logger.js";
|
||||
import { logger } from "@/utils/logger";
|
||||
|
||||
interface GreetOptions {
|
||||
uppercase?: boolean;
|
||||
|
||||
@@ -3,8 +3,8 @@ import { Command } from "commander";
|
||||
import { readFileSync } from "fs";
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname, join } from "path";
|
||||
import { logger } from "./utils/logger.js";
|
||||
import { greet } from "./commands/greet.js";
|
||||
import { logger } from "@/utils/logger";
|
||||
import { greet } from "@/commands/greet";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import chalk, { type ChalkInstance } from "chalk";
|
||||
import { appendFileSync, existsSync, mkdirSync, createWriteStream, type WriteStream } from "fs";
|
||||
import { dirname } from "path";
|
||||
import { config } from "@/config";
|
||||
|
||||
export type LogLevel = "debug" | "info" | "success" | "warn" | "error" | "fatal";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"ignoreDeprecations": "6.0",
|
||||
// Environment setup & latest features
|
||||
"lib": ["ESNext"],
|
||||
"target": "ESNext",
|
||||
@@ -10,6 +11,10 @@
|
||||
"types": ["bun"],
|
||||
|
||||
// Bundler mode
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
},
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
|
||||
Reference in New Issue
Block a user