setupcomfyuimodels 1.0.2 → 1.0.3

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "setupcomfyuimodels": "dist/index.js"
5
5
  },
6
- "version": "1.0.2",
6
+ "version": "1.0.3",
7
7
  "description": "",
8
8
  "main": "src/index.ts",
9
9
  "scripts": {
@@ -117,7 +117,9 @@ const downloadFile = async (
117
117
  ) => {
118
118
  const getTargetId = () => path.join(targetLocation, targetFileName || "");
119
119
  try {
120
- const targetDir = path.normalize(`${WORKSPACE}/models/${targetLocation}`);
120
+ const targetDir = path.normalize(
121
+ `${WORKSPACE}/ComfyUI/models/${targetLocation}`,
122
+ );
121
123
 
122
124
  fs.mkdirSync(targetDir, { recursive: true });
123
125
  if (targetFileName && fs.existsSync(path.join(targetDir, targetFileName))) {