From caf747a065eeebc1edaafe74cf65b07490d3e09b Mon Sep 17 00:00:00 2001 From: CJ Green <44074998+okaycj@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:50:14 -0500 Subject: [PATCH] Add unpkg config --- README.md | 10 ++++++++++ packages/lookit-initjspsych/package.json | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index ceb63a9d..081ad695 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,16 @@ Add build script to new package's `package.json`: }, ``` +And add the following to `package.json`: + +```json + "unpkg": "dist/index.browser.min.js", + "files": [ + "src", + "dist" + ], +``` + At the root of the new package run the following commands: ```sh diff --git a/packages/lookit-initjspsych/package.json b/packages/lookit-initjspsych/package.json index 588d6b43..d6dbb274 100644 --- a/packages/lookit-initjspsych/package.json +++ b/packages/lookit-initjspsych/package.json @@ -9,6 +9,11 @@ }, "author": "", "license": "ISC", + "unpkg": "dist/index.browser.min.js", + "files": [ + "src", + "dist" + ], "dependencies": { "@jspsych/config": "^2.0.0", "jspsych": "^7.3.4"