mysql-query-validator
Version:
This is just a simple wrapper over [this Golang executable](https://github.com/xwb1989/sqlparser) to validate SQL queries.
68 lines (67 loc) • 1.76 kB
JSON
{
"name": "mysql-query-validator",
"version": "0.0.4",
"repository": "stevenmiller888/mysql-query-validator",
"license": "MIT",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build-go-windows": "GOOS=windows go build -o dist/sqlvalidator-win32 src/main.go",
"build-go-darwin": "GOOS=darwin go build -o dist/sqlvalidator-darwin src/main.go",
"build-go-linux": "GOOS=linux go build -o dist/sqlvalidator-linux src/main.go",
"build-go": "yarn build-go-windows && yarn build-go-darwin && yarn build-go-linux",
"build-ts": "tsc",
"build": "yarn build-ts && yarn build-go",
"test": "yarn build && jest",
"clean": "rm -rf dist",
"dev": "yarn build-go && ts-node ./src/index.ts",
"publish": "yarn build && np"
},
"devDependencies": {
"@types/jest": "^24.0.24",
"@types/node": "^12.12.21",
"@types/prettier": "^1.19.0",
"@types/shell-escape": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"np": "^5.2.1",
"prettier": "^1.19.1",
"ts-jest": "^24.2.0",
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
},
"dependencies": {
"shell-escape": "^0.2.0"
},
"keywords": [
"typescript",
"sql",
"validator",
"parser",
"sqlparser"
],
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 120
},
"lint-staged": {
"*.{ts}": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "tsc && git add dist/ && lint-staged"
}
}
}