Add exports field to package.json

This commit is contained in:
bjoluc 2021-08-25 21:23:20 +02:00
parent 6006fec96a
commit 7499817415
51 changed files with 258 additions and 51 deletions

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych extension for eye tracking using WebGazer.js",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,14 @@
"version": "7.0.0",
"description": "Behavioral experiments in a browser",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./css/*": "./css/*"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for showing animations and recording keyboard responses",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for playing an audio file and getting a button response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for playing an audio file and getting a keyboard response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for calling an arbitrary function during a jspsych experiment",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a canvas stimulus and getting a button response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a canvas stimulus and getting a keyboard response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a canvas stimulus and getting a slider response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jspsych plugin for categorization trials with feedback and animated stimuli",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jspsych plugin for categorization trials with feedback",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jspsych plugin for categorization trials with feedback",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a cloze test and checking participants answers against a correct solution",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin to load and display external html pages",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for drag-and-drop sorting of a collection of images",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin to toggle fullscreen mode in the browser",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a stimulus and getting a button response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a stimulus and getting a keyboard response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for free response survey questions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for running an IAT (Implicit Association Test) with an HTML-formatted stimulus",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for running an IAT (Implicit Association Test) with an image stimulus",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a stimulus and getting a button response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for displaying a stimulus and getting a keyboard response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for free response survey questions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin to display instructions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for maxdiff/conjoint analysis designs",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "RDK plugin for JsPsych",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for a reconstruction task where the subject recreates a stimulus from memory",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for controlling the real world size of the display",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for showing two stimuli sequentially and getting a same / different judgment",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for showing two stimuli sequentially and getting a same / different judgment",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for running a serial reaction time task",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for running a serial reaction time task",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for free html forms",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for measuring items on a likert scale",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for multiple choice survey questions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for multiple choice survey questions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "a jspsych plugin for free response survey questions",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for playing a video file and getting a button response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for playing a video file and getting a keyboard response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych plugin for playing a video file and getting a slider response",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "virtual chinrest plugin for jsPsych",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "jsPsych visual search circle plugin",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [

View File

@ -3,7 +3,11 @@
"version": "1.0.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"typings": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.js",
"files": [