refactor: traits structure

This commit is contained in:
cha0s 2019-04-14 18:39:59 -05:00
parent 660ded9aea
commit e31d6395c3
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,8 @@ import {Trait} from '@avocado/entity';
import {Rectangle, Vector} from '@avocado/math';
import {Packer, Synchronizer} from '@avocado/state';
import {KeysPacket, StatePacket} from '../common/packet';
import {KeysPacket} from '../packet/keys';
import {StatePacket} from '../packet/state';
const decorate = compose(
);

View File

@ -21,7 +21,7 @@ module.exports = (source) => {
},
},
{
pathGlob: path.resolve(__dirname, 'traits', '*.js'),
pathGlob: path.resolve(__dirname, 'common', 'traits', '*.js'),
replacer: (dirname) => {
return dirname.replace(__dirname, '.');
},