Skip to content

Commit cd110c1

Browse files
committed
fix: remove lodash dependency example in generated package
1 parent fb73437 commit cd110c1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/cli/template/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,5 @@
4444
"webpack-cli": "^3.1.0",
4545
"webpack-dev-server": "^3.1.5"
4646
},
47-
"dependencies": {
48-
"lodash": "^4.17.4"
49-
}
47+
"dependencies": {}
5048
}

packages/cli/template/src/MyLibrary.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import { random } from 'lodash';
2-
31
export interface Foo {
42
executeDependency: Function;
53
}
64

75
export class MyLibrary implements Foo {
86
executeDependency() {
9-
return random(0, 10);
7+
return Math.floor(Math.random() * 10 + 1);
108
}
119
}
1210

0 commit comments

Comments
 (0)