@citolab/tspci-tao 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/init.mjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci-tao",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "create a zip file that can be imported into TAO",
5
5
  "author": "patrick <patrick.deklein@cito.nl>, Marcel Hoekstra <marcel.hoekstra@cito.nl>",
6
6
  "repository": "",
@@ -12,5 +12,5 @@
12
12
  "inquirer": "9.2.0"
13
13
  },
14
14
  "scripts": {},
15
- "gitHead": "c7100a7ee3cd62cb7beb2bd6379c830cdec04a59"
15
+ "gitHead": "32377e27a791cc3198b1fdf35b9680b35c5814f0"
16
16
  }
package/src/init.mjs CHANGED
@@ -42,12 +42,12 @@ export const init = async () => {
42
42
  // get first 5 chars of identifier
43
43
  const defaultShort = typeIdentifer.length > 5 ? typeIdentifer.substring(0, 5) : typeIdentifer;
44
44
  const short = (await askOption(
45
- `Enter a short name for the PCI: (default: ${defaultShort})`
45
+ `Enter a short name for the PCI: (default: ${defaultShort}) `
46
46
  )) || defaultShort;
47
47
 
48
48
  const defaultLabel = typeIdentifer.length > 5 ? typeIdentifer.substring(0, 5) : typeIdentifer;
49
49
  const label = (await askOption(
50
- `Enter the label of the PCI: (default: ${defaultLabel})`
50
+ `Enter the label of the PCI: (default: ${defaultLabel}) `
51
51
  )) || defaultLabel;
52
52
  const scoringsMethods = await selectOptions("Which scoring methods do you want to support?", [
53
53
  "MATCH_CORRECT", "NONE"
@@ -70,7 +70,6 @@ export const init = async () => {
70
70
  packageData.devDependencies[key] = packagerPackageData.devDependencies[key];
71
71
  });
72
72
 
73
- packageData.dependencies["@citolab/tspci"] = "^1.0.0";
74
73
  packageData.scripts = packageData.scripts || {};
75
74
  packageData.scripts["package:tao"] = "tspci --target tao";
76
75
  // store packageData
@@ -116,10 +115,11 @@ setResponse = (response: QtiVariableJSON) => {
116
115
  newSourceFile = newSourceFile.substring(0, lastBracket) + defaultImplementation + newSourceFile.substring(lastBracket);
117
116
 
118
117
  fs.writeFileSync(path.join(PACKAGE_ROOT_PATH, packageData.source), newSourceFile, "utf8");
119
- console.log("TAO interface implemented");
118
+ console.log(chalk.green("TAO interface implemented"));
120
119
  }
121
120
  } else {
122
121
  console.log("TAO interface already implemented");
123
122
  }
123
+ console.log(chalk.green("Done!"));
124
124
  };
125
125