bjoluc / jspsych-builder

A CLI utility to easily develop and package jsPsych experiments
MIT License
46 stars 12 forks source link

How about set another name when build the package? #52

Open Tongzhao9417 opened 10 months ago

Tongzhao9417 commented 10 months ago

Thank you very much for providing this useful tool! I have encountered a problem now, which may be relatively niche, but I really can't solve it. The situation is as follows: my experiment needs to be divided into two parts, so I wrote two programs separately using jspsych-builder and packaged them through "npm run jatos". Now I need to upload my programs on JATOS, they should be component1 and component2. Here's the problem: because the packaged programs have the same structure and the same name, when JATOS reads the second component, it automatically fills in the content of component1. So I was wondering if I could specify another name (e.g., app2.js) during packaging so that there would be no conflict between component1 and component2. Can this be achieved? Or do you have a better solution?