Skip to content

Commit

Permalink
Add unpkg config
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Dec 19, 2023
1 parent 74205dc commit caf747a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions packages/lookit-initjspsych/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit caf747a

Please sign in to comment.