forked from sql-formatter-org/sql-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
177 lines (177 loc) · 5.59 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "sql-formatter",
"version": "12.2.0",
"description": "Format whitespace in a SQL query to make it more readable",
"license": "MIT",
"main": "dist/sql-formatter.min.cjs",
"unpkg": "dist/sql-formatter.min.js",
"module": "lib/index.js",
"types": "lib/src/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./lib/src/index.d.ts",
"import": "./lib/index.js",
"require": "./dist/sql-formatter.min.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",
"sqlite",
"trino",
"presto",
"prestosql",
"snowflake"
],
"contributors": [
"Adrien Pyke <adpyke@gmail.com>",
"Ahmad Khan <ahmad.khan@educative.io>",
"Alexandr Kozhevnikov <aedkozhevnikov@sberbank.ru>",
"Alexander Prinzhorn <alexander@prinzhorn.it>",
"An Phi <aphi@skidmore.edu>",
"Andrew",
"Benjamin Bellamy",
"bingou",
"Boris Verkhovskiy <boris.verk@gmail.com>",
"Damon Davison <ddavison@avalere.com>",
"Davut Can Abacigil <can@teamsql.io>",
"Erik Hirmo <erik.hirmo@roguewave.com>",
"George Leslie-Waksman <waksman@gmail.com>",
"htaketani <h.taketani@gmail.com>",
"Ian Campbell <icampbell@immuta.com>",
"ivan baktsheev",
"Jacobo Bouzas Quiroga <jacobo.bouzas@factorial.co>",
"João Pimentel Ferreira",
"Justin Dane Vallar <jdvallar@gmail.com>",
"Martin Nowak <code@dawg.eu>",
"Matheus Salmi <mathsalmi@gmail.com>",
"Matheus Teixeira <matheus.mtxr@gmail.com>",
"Michael Giannakopoulos <mgiannakopoulos@singlestore.com>",
"Nathan Walters <nwalters512@gmail.com>",
"Nicolas Dermine <nicolas.dermine@gmail.com>",
"Offir Baron <ofir@panoply.io>",
"Olexandr Sydorchuk <olexandr.syd@gmail.com>",
"Pavel Djundik <xPaw@users.noreply.github.com>",
"Rafael Pinto <raprp@posteo.de>",
"Rahel Rjadnev-Meristo <rahelini@gmail.com>",
"Rene Saarsoo <nene@triin.net>",
"Rodrigo Stuchi",
"Romain Rigaux <hello@getromain.com>",
"Sasha Aliashkevich <olsender@gmail.com>",
"Sean Song <mail@seansong.dev>",
"Sergei Egorov <sergei.egorov@zeroturnaround.com>",
"Stanislav Germanovskii <s.germanovskiy@tinkoff.ru>",
"Steven Yung <stevenyung@fastmail.com>",
"Tito Griné <tgrine@singlestore.com>",
"Toliver <teejae@gmail.com>",
"Toni Müller <toni.mueller@datameer.com>",
"Tyler Jones <tyler.jones@txwormhole.com>",
"Uku Pattak <ukupat@gmail.com>",
"Xin Hu <hoosin.git@gmail.com>"
],
"files": [
"dist",
"bin",
"lib"
],
"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:babel": "babel src --out-dir lib --extensions .ts --source-maps",
"build:types": "tsc --emitDeclarationOnly --isolatedModules",
"build:minified": "webpack --config webpack.prod.js && cp dist/sql-formatter.min.cjs dist/sql-formatter.min.js",
"build": "yarn grammar && npm-run-all --parallel build:babel build:types build:minified",
"release": "release-it"
},
"repository": {
"type": "git",
"url": "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",
"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",
"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"
}
}
}