Skip to content

Commit c3d7c08

Browse files
authored
Merge pull request scratchfoundation#5277 from paulkaplan/publish-libs
Include library JSON files in package distribution
2 parents 5ecaa2f + 6eaf631 commit c3d7c08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ module.exports = [
219219
new CopyWebpackPlugin([{
220220
from: 'extension-worker.{js,js.map}',
221221
context: 'node_modules/scratch-vm/dist/web'
222+
}]),
223+
// Include library JSON files for scratch-desktop to use for downloading
224+
new CopyWebpackPlugin([{
225+
from: 'src/lib/libraries/*.json',
226+
to: 'libraries',
227+
flatten: true
222228
}])
223229
])
224230
})) : []

0 commit comments

Comments
 (0)