Skip to content

Commit

Permalink
fix that little bit too
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Jul 5, 2023
1 parent 4f8f827 commit ec76b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/compiler/transformers/type-library.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { normalizePath } from '@utils';
import path from 'path';
import { normalizePath, relative } from '@utils';
import ts from 'typescript';

import type * as d from '../../declarations';
Expand Down Expand Up @@ -30,8 +29,7 @@ export function addToLibrary(
checker: ts.TypeChecker,
pathToTypeModule: string
): string {
pathToTypeModule = path.relative(process.cwd(), pathToTypeModule);
pathToTypeModule = normalizePath(pathToTypeModule, false);
pathToTypeModule = relative(process.cwd(), pathToTypeModule);

// for now we don't make any attempt to include types in node_modules
if (pathToTypeModule.startsWith('node_modules')) {
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/transpile/validate-components.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { buildError } from '@utils';
import { buildError, relative } from '@utils';

import type * as d from '../../declarations';

Expand Down

0 comments on commit ec76b4c

Please sign in to comment.