@rosepetal/node-red-contrib-image-tools 1.3.2 → 1.4.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.
@@ -260,36 +260,6 @@ for (const node of NODES) {
260
260
  console.log('');
261
261
  }
262
262
 
263
- // ─────────────────────────────────────────────────────────────
264
- // Add legacy keys to package.json files (so Node-RED can find legacy types)
265
- // ─────────────────────────────────────────────────────────────
266
-
267
- function addLegacyPackageJsonKeys(pkgPath) {
268
- if (!fs.existsSync(pkgPath)) return;
269
- const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
270
- const nodes = pkg['node-red'] && pkg['node-red'].nodes;
271
- if (!nodes) return;
272
-
273
- let added = 0;
274
- for (const [key, value] of Object.entries(nodes)) {
275
- if (key.startsWith('rp-')) {
276
- const oldKey = key.replace(/^rp-/, '');
277
- if (!nodes[oldKey]) {
278
- nodes[oldKey] = value;
279
- added++;
280
- }
281
- }
282
- }
283
-
284
- if (added > 0) {
285
- if (!DRY_RUN) fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 4) + '\n');
286
- console.log(` package.json: ✓ Added ${added} legacy keys (${path.basename(path.dirname(pkgPath))})`);
287
- }
288
- }
289
-
290
- console.log('[package.json]');
291
- addLegacyPackageJsonKeys(path.join(__dirname, '..', 'package.json'));
292
-
293
263
  console.log('\n=== Summary ===');
294
264
  console.log(` JS: ${jsOk} ok, ${jsFail} failed`);
295
265
  console.log(` HTML: ${htmlOk} ok, ${htmlFail} failed`);