---
title: sharedAttachmentNames
description: >-
  File names of published attachments that another attachment in the vault
  shares. The build resolves those by path only, so a resolver that sees only
  `publishedAttachments` needs them to resolve the same; their names are already
  public, and the other files' paths stay in the build.
updated_at: '2026-11-12T13:38:59+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: function
  name: sharedAttachmentNames
  signatures:
    - >-
      sharedAttachmentNames(ctx:
      [[reference/api/core/PluginContext|PluginContext]]): string[]
  parameters:
    - name: ctx
      type: '[[reference/api/core/PluginContext|PluginContext]]'
  returns:
    type: 'string[]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/emit-artifacts.ts#L55
---

# sharedAttachmentNames
