10000 include flow library definition in npm package · JavaScriptExpert/hotkey@95f7142 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95f7142

Browse files
committed
include flow library definition in npm package
1 parent 18eb02c commit 95f7142

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"module": "dist/index.esm.js",
77
"repository": "github/hotkey",
88
"scripts": {
9-
"build": "rollup -c",
9+
"build": "rollup -c && cp src/index.js.flow dist/index.esm.js.flow && cp src/index.js.flow dist/index.umd.js.flow",
1010
"lint": "github-lint && flow",
1111
"test": "karma start test/karma.config.js",
1212
"clean": "rm -rf dist",

src/index.js.flow

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module.exports: {
2+
install(container: HTMLElement): void;
3+
uninstall(container: HTMLElement): void;
4+
}

0 commit comments

Comments
 (0)
0