From 0d4fe42f526c3fa121f21fe00885afdf36d6e8e8 Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 7 Oct 2023 15:26:26 -0700 Subject: [PATCH] build test-built with top-level main, types Fix: https://github.com/tapjs/tapjs/issues/943 --- src/test/scripts/package-template.json | 1 + src/test/test-built/package.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/scripts/package-template.json b/src/test/scripts/package-template.json index 9b09e95e7..d3f5a7411 100644 --- a/src/test/scripts/package-template.json +++ b/src/test/scripts/package-template.json @@ -27,6 +27,7 @@ "license": "BlueOak-1.0.0", "type": "module", "tshy": { + "main": true, "exports": { "./package.json": "./package.json", ".": "./src/index.ts" diff --git a/src/test/test-built/package.json b/src/test/test-built/package.json index 9b09e95e7..e0803da38 100644 --- a/src/test/test-built/package.json +++ b/src/test/test-built/package.json @@ -27,9 +27,12 @@ "license": "BlueOak-1.0.0", "type": "module", "tshy": { + "main": true, "exports": { "./package.json": "./package.json", ".": "./src/index.ts" } - } + }, + "main": "./dist/commonjs/index.js", + "types": "./dist/commonjs/index.d.ts" }