Skip to content

Commit 7ecb93a

Browse files
committed
feat(deps): bundle typescript-collection, only used class
1 parent 3e4697f commit 7ecb93a

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@
124124
"tslint-config-prettier": "^1.15.0",
125125
"tslint-config-standard": "^8.0.1",
126126
"typedoc": "^0.12.0",
127-
"typescript": "^3.0.3"
128-
},
129-
"dependencies": {
130-
"typescript-collections": "^1.3.2"
127+
"typescript": "^3.0.3",
128+
"typescript-collections": "^1.3.2"
131129
},
132130
"husky": {
133131
"hooks": {

rollup.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default {
1616
{ file: pkg.module, format: 'es', sourcemap: true },
1717
],
1818
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
19-
external: ['typescript-collections'],
2019
watch: {
2120
include: 'src/**',
2221
},

src/behaviorTreeBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Stack } from 'typescript-collections'
1+
import Stack from 'typescript-collections/dist/lib/Stack'
22
import { TimeData } from './timeData'
33
import { BehaviorTreeStatus } from './behaviorTreeStatus'
44
import { IBehaviorTreeNode } from './iBehaviorTreeNode'

src/nodes/parallelNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'
2-
import { LinkedList } from 'typescript-collections'
2+
import LinkedList from 'typescript-collections/dist/lib/LinkedList'
33
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
44
import { TimeData } from '../timeData'
55
import { BehaviorTreeStatus } from '../behaviorTreeStatus'

src/nodes/selectorNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BehaviorTreeStatus } from '../behaviorTreeStatus'
33
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
44
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'
55
import * as _ from 'lodash'
6-
import { LinkedList } from 'typescript-collections'
6+
import LinkedList from 'typescript-collections/dist/lib/LinkedList'
77

88
export class SelectorNode implements IParentBehaviorTreeNode {
99
/**

src/nodes/sequenceNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TimeData } from '../timeData'
22
import { BehaviorTreeStatus } from '../behaviorTreeStatus'
33
import { IBehaviorTreeNode } from '../iBehaviorTreeNode'
4-
import { LinkedList } from 'typescript-collections'
4+
import LinkedList from 'typescript-collections/dist/lib/LinkedList'
55
import { IParentBehaviorTreeNode } from '../iParentBehaviorTreeNode'
66

77
/**

0 commit comments

Comments
 (0)