Skip to content

Commit

Permalink
fix: paths (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: nikkeyl <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Nov 30, 2024
1 parent aaf5a04 commit ff362c1
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 37 deletions.
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const outputFile = `${fileName}.js`;

export default defineConfig([
{
external: ['chalk', 'node-notifier'],
external: ['chalk', 'node-notifier', 'node:path'],
plugins: [
copy({
targets: [{ src: iconsFolder, dest: destinationFolder }],
Expand Down
2 changes: 1 addition & 1 deletion src/config/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { splitter } from '#features';
import { splitter } from '#utils';

import type { Parameters } from '../data/index.ts';
import { LOG_LEVELS } from '../data/index.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/config/info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { splitter } from '#features';
import { splitter } from '#utils';

import type { Parameters } from '../data/index.ts';
import { LOG_LEVELS } from '../data/index.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/config/success.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { splitter } from '#features';
import { splitter } from '#utils';

import type { Parameters } from '../data/index.ts';
import { LOG_LEVELS } from '../data/index.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/config/warning.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { splitter } from '#features';
import { splitter } from '#utils';

import type { Parameters } from '../data/index.ts';
import { LOG_LEVELS } from '../data/index.ts';
Expand Down
4 changes: 2 additions & 2 deletions src/utils/log-level/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const logLevel = async (parameters: Parameters) => {
}

if (title === LOG_LEVELS.SUCCESS) {
return console.log(chalk.green(notification));
return console.info(chalk.green(notification));

Check warning on line 22 in src/utils/log-level/index.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unexpected console statement
}

return console.info(chalk.blue(notification));
return console.log(chalk.blue(notification));

Check warning on line 25 in src/utils/log-level/index.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unexpected console statement
};

export { logLevel };
4 changes: 3 additions & 1 deletion src/utils/notifier/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { resolve } from 'node:path';

import Notifier from 'node-notifier';

import { truncate } from '#helpers';
Expand All @@ -8,7 +10,7 @@ const notifier = async (parameters: Parameters) => {
const { icon, message, title } = parameters;

return Notifier.notify({
icon: `dist/icons/${icon}.png`,
icon: resolve(`dist/icons/${icon}.png`),
message: await truncate({ message }),
title: title.toUpperCase(),
});
Expand Down
25 changes: 24 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
{
"compilerOptions": {
// Completeness
"skipLibCheck": true,
// Emit
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
// Language and Environment
"lib": ["DOM", "ESNext"],
"target": "ESNext",
// Modules
"allowImportingTsExtensions": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"paths": {
"#config": ["./src/config/index.ts"],
"#utils": ["./src/utils/index.ts"],
"#generators": ["./src/utils/generators/index.ts"],
"#helpers": ["./src/utils/helpers/index.ts"],
"#data": ["./src/data/index.ts"]
},
"rootDir": "src",
"types": ["chalk", "node", "vitest"],
// Projects
"disableReferencedProjectLoad": true,
// Type Checking
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand All @@ -13,6 +37,5 @@
"strict": true
},
"exclude": ["specs"],
"extends": ["./tsconfig.node.json"],
"include": ["src"]
}
28 changes: 0 additions & 28 deletions tsconfig.node.json

This file was deleted.

0 comments on commit ff362c1

Please sign in to comment.