only require packet stuff if dev mode is on
Fixes #1 Extra comma in package.json