diff --git a/2/scripts/create-dist b/2/scripts/create-dist index 5726db1d..afe6041c 100755 --- a/2/scripts/create-dist +++ b/2/scripts/create-dist @@ -34,9 +34,9 @@ fs.writeFileSync( ); spawnSync( - 'node', + 'yarnpkg', [ - path.join(__dirname, '../../', 'node_modules/uglify-js/bin/uglifyjs'), + 'uglifyjs', '--verbose', file('twemoji.js'), '-o',