node-red-contrib-typescript 1.0.14 → 1.0.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-typescript",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "author": "kezziny",
6
6
  "license": "ISC",
@@ -211,6 +211,13 @@
211
211
  },
212
212
  oneditprepare: function() {
213
213
  let name = this.name || "__editor__";
214
+ if (this.filename) {
215
+ if (this.filename.endsWith("/")) {
216
+ name = this.filename + name;
217
+ } else {
218
+ name = this.filename;
219
+ }
220
+ }
214
221
  let path = `/${name}.tsx`;
215
222
 
216
223
  let workspaces = [];