refactor: traits structure
This commit is contained in:
parent
660ded9aea
commit
e31d6395c3
|
@ -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(
|
||||
);
|
|
@ -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, '.');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user