diff --git a/code/core/scripts/helpers/generateTypesMapperFiles.ts b/code/core/scripts/helpers/generateTypesMapperFiles.ts index 5283321c84c0..4b89100b6cc5 100644 --- a/code/core/scripts/helpers/generateTypesMapperFiles.ts +++ b/code/core/scripts/helpers/generateTypesMapperFiles.ts @@ -1,6 +1,6 @@ import { existsSync } from 'node:fs'; import { mkdir, writeFile } from 'node:fs/promises'; -import { dirname, join, relative } from 'node:path'; +import { dirname, join, relative, sep } from 'node:path'; import { dedent } from '../../../../scripts/prepare/tools'; import type { getEntries } from '../entries'; @@ -13,8 +13,8 @@ async function generateTypesMapperContent(filePath: string) { return dedent` // auto generated file from ${__filename}, do not edit - export * from '${join(upwards, downwards)}'; - export type * from '${join(upwards, downwards)}'; + export * from '${join(upwards, downwards).replaceAll(sep, '/')}'; + export type * from '${join(upwards, downwards).replaceAll(sep, '/')}'; `; } diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 598c49e38891..946679a7a129 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -33,7 +33,7 @@ "!src/**/*" ], "scripts": { - "check": "node ../../../scripts/node_modules/.bin/tsc", + "check": "yarn run -T tsc", "prep": "rimraf dist && jiti ../../../scripts/prepare/tsc.ts" }, "dependencies": {