Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion scripts/create-standalone-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,15 @@ function copyRuntimeAssets(packageRoot, outDir) {
fs.mkdirSync(libDir, { recursive: true });

for (const entry of fs.readdirSync(distDir)) {
if (entry === skippedDistEntry || entry === '.DS_Store') {
// prepare-package.js stages the audio-capture addon into dist/node_modules
// for the npm package, but standalone rebuilds a clean, target-trimmed
// lib/node_modules via copyNativeAddon(). Copying dist/node_modules here
// would drag in every platform's prebuild and collide with that — skip it.
if (
entry === skippedDistEntry ||
entry === '.DS_Store' ||
entry === 'node_modules'
) {
continue;
}
if (!isAllowedDistEntry(entry)) {
Expand Down
Loading