Extract common files to npm packages