-
Notifications
You must be signed in to change notification settings - Fork 447
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 4.19 KB
/
package.json
File metadata and controls
142 lines (142 loc) · 4.19 KB
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
{
"name": "sql-formatter",
"version": "15.8.0",
"description": "Format whitespace in a SQL query to make it more readable",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/sql-formatter.min.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"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",
"duckdb",
"clickhouse"
],
"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 $(pnpm run --silent git:changes)'",
"pretty": "prettier --write .",
"pretty:check": "prettier --check .",
"fix": "pnpm run pretty && eslint --fix .",
"test": "pnpm run grammar && jest",
"test:watch": "pnpm run test --watch",
"test:perf": "pnpm run grammar && jest --testMatch '<rootDir>/test/perftest.ts' --coverage=false",
"check": "pnpm run ts:check && pnpm run pretty:check && pnpm run lint && pnpm run test",
"prepare": "pnpm run clean && pnpm run grammar && pnpm run fix && pnpm run check && pnpm run build",
"pre-commit": "npm-run-all --parallel ts:changes lint:changes",
"grammar": "nearleyc src/parser/grammar.ne -o src/parser/grammar.ts",
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:webpack": "webpack --config webpack.prod.js && cp dist/sql-formatter.min.cjs dist/sql-formatter.min.js",
"build": "pnpm run grammar && npm-run-all --parallel build:cjs build:esm 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",
"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": "^29.7.0",
"@types/babel__core": "^7.1.15",
"@types/jest": "^29.5.14",
"@types/nearley": "^2.11.2",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"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": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"release-it": "^15.1.1",
"release-it-pnpm": "^4.6.6",
"rimraf": "^3.0.2",
"ts-jest": "^29.2.6",
"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"
}
},
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "11.0.8+sha512.4c4097e1dd2d42372c4e7fa5a791ff28fc75a484c7ac192e64b1df0fdef17594ba982f9b4fed9adfb3c757846f565b799b2763fb3733d1de1bcb82cf46684912"
}
}
}