Skip to content

Commit

Permalink
🦄 refactor: Remove unnecessary path aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowflyt committed Jul 2, 2024
1 parent f60b481 commit dd97a7a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/assertions/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import type {
MatchesBoolean,
StrictCovers,
StrictExtends,
} from '@/tools';
} from '../tools';
import type { Project } from 'ts-morph';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/test/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import path from 'node:path';
import chalk from 'chalk';
import { ts } from 'ts-morph';

import { AnalyzingError } from '../errors';

import { isCallOfSymbol, isCallOfSymbols } from './ts';

import type { TyproofProject } from './project';
import type { CallExpression, Diagnostic, Node, SourceFile, Type } from 'ts-morph';

import { AnalyzingError } from '@/errors';

export interface Group {
description: string;
children: Array<Group | Test>;
Expand Down
3 changes: 1 addition & 2 deletions src/test/check.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { ts } from 'ts-morph';

import { analyzers } from '../assertions/matcher';
import { MatchingError } from '../errors';

import type { AnalyzeResult, Assertion, Group, Test } from './analyze';
import type { TyproofProject } from './project';
import type { SourceFile } from 'ts-morph';

import { MatchingError } from '@/errors';

export interface GroupResult {
description: string;
children: Array<GroupResult | TestResult>;
Expand Down
2 changes: 1 addition & 1 deletion test/programmatic-api-test-proof.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */

import { describe, equal, error, expect, extend, it, test } from '@/index';
import { describe, equal, error, expect, extend, it, test } from 'typroof';

type Append<S extends string, Ext extends string> = `${S}${Ext}`;
type Prepend<S extends string, Start extends string> = `${Start}${S}`;
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
/* Path aliases */
"baseUrl": ".",
"paths": {
"typroof": ["src"],
"@/*": ["src/*"],
"@test/*": ["test/*"]
"typroof": ["src"]
}
},
"include": ["typroof.config.ts", "src", "test"]
Expand Down
2 changes: 0 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export default defineConfig({
resolve: {
alias: {
typroof: path.resolve(__dirname, 'src'),
'@': path.resolve(__dirname, 'src'),
'@test': path.resolve(__dirname, 'test'),
},
},
});

0 comments on commit dd97a7a

Please sign in to comment.