vue3-core/packages-private/dts-test/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
526 B
Markdown
Raw Permalink Normal View History

2023-02-03 17:10:31 +08:00
# dts-test
Tests TypeScript types to ensure the types remain as expected.
2023-02-03 17:10:31 +08:00
- This directory is included in the root `tsconfig.json`, where package imports are aliased to `src` directories, so in IDEs and the `pnpm check` script the types are validated against source code.
- When running `tsc` with `packages-private/dts-test/tsconfig.test.json`, packages are resolved using normal `node` resolution, so the types are validated against actual **built** types. This requires the types to be built first via `pnpm build-dts`.