@lars_hagemann/mediaserver-create-plugin 0.24.3 → 0.24.8

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/dist/index.js +10 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -169,14 +169,16 @@ function main() {
169
169
  console.log("Plugin creation cancelled.");
170
170
  return [2 /*return*/];
171
171
  }
172
- pluginFolderPath = folderPath;
173
- pluginSrcPath = "".concat(pluginFolderPath, "/src");
174
- return [4 /*yield*/, fs.mkdir(pluginFolderPath, { recursive: true })];
172
+ return [4 /*yield*/, fs.mkdir(folderPath, { recursive: true })];
175
173
  case 8:
176
174
  _a.sent();
177
- return [4 /*yield*/, fs.mkdir(pluginSrcPath, { recursive: true })];
175
+ return [4 /*yield*/, fs.mkdir(folderPath + "/src", { recursive: true })];
178
176
  case 9:
179
177
  _a.sent();
178
+ return [4 /*yield*/, fs.realpath(folderPath)];
179
+ case 10:
180
+ pluginFolderPath = _a.sent();
181
+ pluginSrcPath = "".concat(pluginFolderPath, "/src");
180
182
  process.chdir(pluginFolderPath);
181
183
  packageJsonContent = {
182
184
  name: "".concat(pluginName),
@@ -186,13 +188,13 @@ function main() {
186
188
  };
187
189
  console.log("Writing package.json");
188
190
  return [4 /*yield*/, fs.writeFile("".concat(pluginFolderPath, "/package.json"), JSON.stringify(packageJsonContent, null, 2))];
189
- case 10:
191
+ case 11:
190
192
  _a.sent();
191
193
  pluginConfig = config[pluginType];
192
194
  tsConfigContent = pluginConfig.tsConfig;
193
195
  console.log("Writing tsconfig.json");
194
196
  return [4 /*yield*/, fs.writeFile("".concat(pluginFolderPath, "/tsconfig.json"), JSON.stringify(tsConfigContent, null, 2))];
195
- case 11:
197
+ case 12:
196
198
  _a.sent();
197
199
  console.log("Installing dependencies...");
198
200
  return [4 /*yield*/, new Promise(function (resolve, reject) {
@@ -210,12 +212,12 @@ function main() {
210
212
  resolve(null);
211
213
  });
212
214
  })];
213
- case 12:
215
+ case 13:
214
216
  _a.sent();
215
217
  console.log("Writing skeleton plugin file...");
216
218
  pluginFileName = "index.ts";
217
219
  return [4 /*yield*/, fs.writeFile("".concat(pluginSrcPath, "/").concat(pluginFileName), pluginConfig.skeleton)];
218
- case 13:
220
+ case 14:
219
221
  _a.sent();
220
222
  console.log("Plugin created successfully.");
221
223
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lars_hagemann/mediaserver-create-plugin",
3
- "version": "0.24.3",
3
+ "version": "0.24.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/index.js",
@@ -12,14 +12,14 @@
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/LarsHagemann/mediaserver.git"
15
+ "url": "git+https://github.com/de-treelab/mediaserver.git"
16
16
  },
17
17
  "author": "Lars Hagemann",
18
18
  "license": "ISC",
19
19
  "bugs": {
20
- "url": "https://github.com/LarsHagemann/mediaserver/issues"
20
+ "url": "https://github.com/de-treelab/mediaserver/issues"
21
21
  },
22
- "homepage": "https://github.com/LarsHagemann/mediaserver#readme",
22
+ "homepage": "https://github.com/de-treelab/mediaserver#readme",
23
23
  "devDependencies": {
24
24
  "@types/node": "^24.10.0",
25
25
  "typescript": "^5.9.3"