From 62d816402c6ddccf22c9ac68822cf100f61662d6 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 30 Dec 2021 12:05:27 +0100 Subject: build: Use shared packages through modules By running the build for the shared packages only once, errors in them are reported only once in watch mode. We still have to point jest to the original source files (and rebuild the shared source files as part of the test), because it won't load the "module" entry of the shared packages. However, as a benefit, jest can now run even if the shared packages haven't been built yet. --- packages/shared/package.json | 1 - 1 file changed, 1 deletion(-) (limited to 'packages/shared/package.json') diff --git a/packages/shared/package.json b/packages/shared/package.json index e2b2c77..e4b57b0 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -3,7 +3,6 @@ "version": "0.1.0", "private": true, "sideEffects": false, - "main": "src/index.ts", "module": "dist/index.mjs", "types": "dist/index.d.ts", "scripts": { -- cgit v1.2.3-70-g09d2