Skip to content

Commit

Permalink
feat(deps): bundle typescript-collection, only used class
Browse files Browse the repository at this point in the history
  • Loading branch information
robinxb committed Jun 4, 2019
1 parent 3e4697f commit 7ecb93a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.12.0",
"typescript": "^3.0.3"
},
"dependencies": {
"typescript-collections": "^1.3.2"
"typescript": "^3.0.3",
"typescript-collections": "^1.3.2"
},
"husky": {
"hooks": {
Expand Down
1 change: 0 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default {
{ file: pkg.module, format: 'es', sourcemap: true },
],
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: ['typescript-collections'],
watch: {
include: 'src/**',
},
Expand Down
2 changes: 1 addition & 1 deletion src/behaviorTreeBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack } from 'typescript-collections'
import Stack from 'typescript-collections/dist/lib/Stack'
import { TimeData } from './timeData'
import { BehaviorTreeStatus } from './behaviorTreeStatus'
import { IBehaviorTreeNode } from './iBehaviorTreeNode'
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/parallelNode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'
import { LinkedList } from 'typescript-collections'
import LinkedList from 'typescript-collections/dist/lib/LinkedList'
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
import { TimeData } from '../timeData'
import { BehaviorTreeStatus } from '../behaviorTreeStatus'
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/selectorNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BehaviorTreeStatus } from '../behaviorTreeStatus'
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'
import * as _ from 'lodash'
import { LinkedList } from 'typescript-collections'
import LinkedList from 'typescript-collections/dist/lib/LinkedList'

export class SelectorNode implements IParentBehaviorTreeNode {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/sequenceNode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TimeData } from '../timeData'
import { BehaviorTreeStatus } from '../behaviorTreeStatus'
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
import { LinkedList } from 'typescript-collections'
import LinkedList from 'typescript-collections/dist/lib/LinkedList'
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'

/**
Expand Down

0 comments on commit 7ecb93a

Please sign in to comment.