Files of published package are all mixed

I encountered a strange problem.
I wrote these two package:
when I install them locally, everything is ok. but after I installing them from atmosphere, I got errors:

W20160413-12:14:49.015(8)? (STDERR) ReferenceError: Template is not defined
W20160413-12:14:49.015(8)? (STDERR)     at Package (wechat_configure.js:1:1)
W20160413-12:14:49.015(8)? (STDERR)     at C:\Users\zhaoyao\Desktop\pjb\.meteor\local\build\programs\server\packages\zhaoyao91_accounts-wechat.js:254:4
W20160413-12:14:49.015(8)? (STDERR)     at C:\Users\zhaoyao\Desktop\pjb\.meteor\local\build\programs\server\packages\zhaoyao91_accounts-wechat.js:263:3
W20160413-12:14:49.015(8)? (STDERR)     at C:\Users\zhaoyao\Desktop\pjb\.meteor\local\build\programs\server\boot.js:242:10
W20160413-12:14:49.015(8)? (STDERR)     at Array.forEach (native)
W20160413-12:14:49.015(8)? (STDERR)     at Function._.each._.forEach (C:\Users\zhaoyao\AppData\Local\.meteor\packages\meteor-tool\1.1.10\\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20160413-12:14:49.015(8)? (STDERR)     at C:\Users\zhaoyao\Desktop\pjb\.meteor\local\build\programs\server\boot.js:137:5

It seems like some client code is run on the server, so I searched the local dir of the app and found:
in .meteor/local/build/programs/server/packages/zhaoyao91_accounts-wechat.js, I found client code appears here

not only this, all client and server code are mixed, but if I install them as local package, they are separated correctly.
I can figure out the reason. anybody can help me?

Might be related to #6797?

anybody can give some help?