From caf372985e269d34c17419104d524616d0a91b45 Mon Sep 17 00:00:00 2001 From: Aron Date: Wed, 27 Nov 2024 04:13:38 +0800 Subject: [PATCH] Update type-check command to install test dependencies before checking types --- packages/techor/package.json | 2 +- packages/techor/tests/external/src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/techor/package.json b/packages/techor/package.json index 645b9f3..07120fc 100644 --- a/packages/techor/package.json +++ b/packages/techor/package.json @@ -6,7 +6,7 @@ "build": "pnpm run \"/^build:.*/\"", "dev": "pnpm run \"/^build:.*/\" --watch", "test": "cd tests && pnpm i && cd ../ && jest", - "type-check": "tsc --noEmit", + "type-check": "cd tests && pnpm i && cd ../ && tsc --noEmit", "lint": "eslint" }, "type": "module", diff --git a/packages/techor/tests/external/src/index.ts b/packages/techor/tests/external/src/index.ts index e3f151a..cc4b761 100644 --- a/packages/techor/tests/external/src/index.ts +++ b/packages/techor/tests/external/src/index.ts @@ -1,10 +1,10 @@ import extend from '@techor/extend' // deps import log from '@techor/log' // peerDeps -import { del } from '@techor/log/dist' // wide module path +import distLog from '@techor/log/dist' // wide module path // @ts-ignore import 'fake-external-package' // --external fake-external-package export * from './foo' -console.log(extend, log, del) +console.log(extend, log, distLog)