From c0b306df75b21d0979e407f04f0a23f67d5248af Mon Sep 17 00:00:00 2001 From: Travis Vachon Date: Wed, 13 Dec 2023 13:42:18 -0800 Subject: [PATCH] fix: point `main` at files included in the package (#1241) `main` was pointing at `src/index.js` but `src` isn't included in the built package per the `files` key in `package.json`. Fix this! --- packages/access-client/package.json | 2 +- packages/upload-client/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/access-client/package.json b/packages/access-client/package.json index bcacbcb4c..a2fff81fc 100644 --- a/packages/access-client/package.json +++ b/packages/access-client/package.json @@ -12,7 +12,7 @@ "license": "(Apache-2.0 OR MIT)", "type": "module", "types": "dist/src/index.d.ts", - "main": "src/index.js", + "main": "dist/src/index.js", "scripts": { "attw": "attw --pack .", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", diff --git a/packages/upload-client/package.json b/packages/upload-client/package.json index 810fc2eed..549f59c6b 100644 --- a/packages/upload-client/package.json +++ b/packages/upload-client/package.json @@ -12,7 +12,7 @@ "license": "Apache-2.0 OR MIT", "type": "module", "types": "dist/src/index.d.ts", - "main": "src/index.js", + "main": "dist/src/index.js", "scripts": { "attw": "attw --pack .", "lint": "eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore",