Skip to content

Vite plugin seems to preserve symlinks during packageAfterCopy hook #3632

Closed as not planned

Description

@peterekjs

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.4.0

Electron version

31.0.0

Operating system

Ubuntu 20.04

Last known working Electron Forge version

7.2.0

Expected behavior

All dependencies in package node_modules directory are copies and none of them is symlink.

Actual behavior

When using a monorepo setup where some app dependencies are linked into node_modules, these symlinks are copied without being dereferenced.

Steps to reproduce

  1. Use npm workspaces with several npm modules.
  2. Have your app depend on other modules from the same workspace.
  3. Use @electron-forge/plugin-vite in your configuration.
  4. After running electron-forge package, navigate to out/[your package directory]/node_modules and search for modules from your workspace. You will see that these are symlinks, not copies.

Additional information

No response

Activity

  1. peterekjs commented on Sep 27, 2024

    @peterekjs
    Author

    No longer valid as v7.5.0 removed copy dependencies procedure so there is no symlink issue anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions