Skip to content

Commit b7c22a3

Browse files
committed
fix: export only public api, ignore .publish
1 parent c87fed0 commit b7c22a3

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build/
44
.vscode/
55
npm-debug.log
66
typings/
7+
.publish/
78

89
**/*.js.map
910

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
build/
33
demo/
44
typings/
5+
.publish/
56

67
webpack.config.js
78

index.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1+
import {
2+
TreeModel,
3+
RenamableNode,
4+
NodeEvent,
5+
NodeCreatedEvent,
6+
NodeRemovedEvent,
7+
NodeRenamedEvent,
8+
NodeMovedEvent,
9+
NodeSelectedEvent,
10+
NodeDestructiveEvent
11+
} from './src/branchy.types';
12+
113
export * from './src/branchy.component';
2-
export * from './src/branchy.types';
14+
15+
export {
16+
TreeModel,
17+
RenamableNode,
18+
NodeEvent,
19+
NodeCreatedEvent,
20+
NodeRemovedEvent,
21+
NodeRenamedEvent,
22+
NodeMovedEvent,
23+
NodeSelectedEvent,
24+
NodeDestructiveEvent
25+
};

0 commit comments

Comments
 (0)