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 {
|
interface GreetOptions {
|
||||||
uppercase?: boolean;
|
uppercase?: boolean;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user