build
yarn run build:clean && yarn run build:parser && yarn run build:dist && yarn run build:flow
build:clean
rimraf dist
build:parser
pegjs --allowed-start-rules start,StringLiteralList --cache src/parser/mysql.pegjs
build:flow
flow-copy-source -v -i '**/__tests__/**' -i '**/*.spec.*' src dist
build:dist
babel -d dist src --ignore '**/__tests__/**' --ignore '**/*.spec.*'
check
yarn run check:eslint && yarn run check:prettier && yarn run check:import-sort
check:eslint
eslint --report-unused-disable-directives src
check:import-sort
import-sort --list-different 'src/**/*.js' '!src/parser/mysql.js'
check:prettier
prettier --list-different 'src/**/*.js' '!src/parser/mysql.js'
tdd
onchange 'src/**' 'tests/*.sql' -- './test.sh'
test
./test.sh -s utf8 && yarn run -s check && yarn run -s flow && jest src
flow
flow --include-warnings
prepublish
in-publish && yarn run actually-prepublish || not-in-publish
actually-prepublish
yarn run build && yarn run test && yarn run build