Skip to content

Commit

Permalink
fix(build): copy the flow type info into dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Jun 26, 2016
1 parent 9617425 commit 9f4a9b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions index.js.flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type SourceLocation = {
line: number;
column: number;
};

declare class LinesAndColumns {
constructor(string: string): void;
locationForIndex(index: number): ?SourceLocation;
indexForLocation(location: SourceLocation): ?number;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"flow": "flow check --all",
"prebuild": "rm -rf dist",
"build": "rollup -c",
"build": "rollup -c && cp index.js.flow dist/lines-and-columns.js.flow",
"pretest": "npm run build",
"test": "mocha",
"prepublish": "npm run flow && npm run build",
Expand Down

0 comments on commit 9f4a9b7

Please sign in to comment.