$ yarn build
yarn run v1.9.4
$ father build
Clean dist directory
Build cjs with rollup
✖ error SyntaxError: /Users/xiaohuoni/react-gesture-password/src/GesturePassword.ts: Unexpected token (1:17)
> 1 | export interface GesturePasswordProps {
| ^
2 | id?: string;
3 | el?: HTMLElement;
4 | context?: CanvasRenderingContext2D;
at Object.raise (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:6930:17)
at Object.unexpected (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:8323:16)
at Object.parseExportFrom (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11819:14)
at Object.parseExport (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11681:12)
at Object.parseStatementContent (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10715:27)
at Object.parseStatement (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10611:17)
at Object.parseBlockOrModuleBlockBody (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11187:25)
at Object.parseBlockBody (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:11174:10)
at Object.parseTopLevel (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:10542:10)
at Object.parse (/Users/xiaohuoni/react-gesture-password/node_modules/@babel/parser/lib/index.js:12051:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.