-
Notifications
You must be signed in to change notification settings - Fork 403
/
package.json
132 lines (132 loc) · 3.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "sql-formatter",
"version": "15.4.5",
"description": "Format whitespace in a SQL query to make it more readable",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/index.js",
"unpkg": "dist/sql-formatter.min.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"bin": {
"sql-formatter": "bin/sql-formatter-cli.cjs"
},
"type": "module",
"sideEffects": false,
"keywords": [
"sql",
"formatter",
"format",
"n1ql",
"redshift",
"singlestoredb",
"spark",
"whitespace",
"mysql",
"mariadb",
"postgresql",
"pl/sql",
"transact-sql",
"db2",
"db2i",
"sqlite",
"tidb",
"trino",
"presto",
"prestosql",
"snowflake"
],
"files": [
"dist",
"bin",
"AUTHORS"
],
"scripts": {
"clean": "rimraf lib dist coverage",
"git:changes": "git diff --name-only --diff-filter d | xargs",
"ts:check": "tsc --noEmit",
"ts:changes": "tsc --noEmit --incremental",
"lint": "eslint --cache .",
"lint:changes": "sh -c eslint --cache $(yarn git:changes)",
"pretty": "prettier --write .",
"pretty:check": "prettier --check .",
"fix": "yarn pretty && eslint --fix .",
"test": "yarn grammar && jest",
"test:watch": "yarn test -- --watch",
"check": "yarn ts:check && yarn pretty:check && yarn lint && yarn test",
"prepare": "yarn clean && yarn grammar && yarn fix && yarn check && yarn build",
"pre-commit": "npm-run-all --parallel ts:changes lint:changes",
"grammar": "nearleyc src/parser/grammar.ne -o src/parser/grammar.ts",
"build:tsup": "tsup src/index.ts --format cjs,esm --sourcemap --dts",
"build:webpack": "webpack --config webpack.prod.js && cp dist/sql-formatter.min.cjs dist/sql-formatter.min.js",
"build": "yarn grammar && npm-run-all --parallel build:tsup build:webpack",
"release": "release-it"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sql-formatter-org/sql-formatter.git"
},
"bugs": {
"url": "https://github.com/sql-formatter-org/sql-formatter/issues"
},
"dependencies": {
"argparse": "^2.0.1",
"get-stdin": "=8.0.0",
"nearley": "^2.20.1"
},
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-typescript": "^7.15.0",
"@jest/globals": "^28.1.2",
"@types/babel__core": "^7.1.15",
"@types/jest": "^28.1.4",
"@types/nearley": "^2.11.2",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.2",
"babel-loader": "^8.1.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-inline-import": "^3.0.0",
"dedent-js": "^1.0.1",
"eslint": "^8.14.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"release-it": "^15.1.1",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.5",
"ts-loader": "^9.3.1",
"tsup": "^8.0.1",
"typescript": "^4.7.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.9.1",
"webpack-merge": "^5.8.0"
},
"jest": {
"preset": "ts-jest",
"roots": [
"test"
],
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts"
],
"moduleNameMapper": {
"^\\.(.+)\\.js": ".$1"
}
}
}