Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix long node modules paths in the dist build #1725

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Fix long node modules paths in the dist build #1725

merged 1 commit into from
Jul 8, 2024

Conversation

smalluban
Copy link
Collaborator

Fixes #1723

  • Renames node_modules to npm in the dist
  • Adds a rule to throw if the dist path to file exceed 100 characters
  • Cleans up not needed patches

@smalluban smalluban requested a review from chrmod July 8, 2024 11:53
@@ -285,6 +280,19 @@ const buildPromise = build({
minifyInternalExports: false,
entryFileNames: '[name].js',
assetFileNames: 'assets/[name].[ext]',
sanitizeFileName: (name) => {
name = name
.replace(/[\x00?*]+/g, '_') // eslint-disable-line no-control-regex
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smalluban smalluban merged commit f886768 into main Jul 8, 2024
2 checks passed
@smalluban smalluban deleted the fix-build branch July 8, 2024 14:20
@smalluban smalluban mentioned this pull request Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: file path limit exceeded
2 participants