rootless-config 1.4.3 → 1.4.4

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": "rootless-config",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Store project config files outside the project root, auto-deploy them where tools expect them.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,10 @@ async function generateFile({ source, target, mode = 'proxy', plugin, options =
30
30
 
31
31
  if (plugin?.generate) {
32
32
  const content = await plugin.generate(source, { mode, target, options })
33
- await atomicWrite(target, content)
33
+ // null/undefined means the plugin wrote the file itself (e.g. assetPlugin binary copy)
34
+ if (content != null) {
35
+ await atomicWrite(target, content)
36
+ }
34
37
  } else if (mode === 'proxy') {
35
38
  const rel = path.relative(path.dirname(target), source).replace(/\\/g, '/')
36
39
  const relPath = rel.startsWith('.') ? rel : `./${rel}`