-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
69 lines (69 loc) · 2.63 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
{
"name": "pgsql-ast-parser",
"version": "12.0.1",
"description": "Yet another simple Postgres SQL parser/modifier",
"main": "index.js",
"repository": "https://github.com/oguimbal/pgsql-ast-parser",
"scripts": {
"start": "webpack --config webpack.config.js",
"build": "rimraf lib && webpack --config webpack.config.js --prod",
"release": "npm run release-node && npm run release-deno",
"release-node": "git diff --exit-code && npm run test && npm run cover && npm run build && cp -r src lib/src && npm run build:deno && deno run deno-test.ts && cd lib && npm publish && cd ..",
"release-deno": "git add -A && git commit -m \"Build deno [autogenerated commit]\" && PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag $PACKAGE_VERSION && git push --tags",
"typecheck": "tsc --project tsconfig.json --noEmit",
"deno:gen": "nearleyc src/syntax/main.ne -o .deno/syntax/main.ne.ts && nearleyc src/literal-syntaxes/array.ne -o .deno/literal-syntaxes/array.ne.ts&& nearleyc src/literal-syntaxes/geometric.ne -o .deno/literal-syntaxes/geometric.ne.ts&& nearleyc src/literal-syntaxes/interval.ne -o .deno/literal-syntaxes/interval.ne.ts&& nearleyc src/literal-syntaxes/interval-iso.ne -o .deno/literal-syntaxes/interval-iso.ne.ts",
"build:deno": "rimraf .deno && node ./deno-transpile.js --copy && npm run deno:gen && node ./deno-transpile.js --process",
"test": "find src -iname '*.spec.ts' | xargs mochapack",
"cover": "cross-env NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test"
},
"author": "Olivier Guimbal",
"license": "MIT",
"keywords": [
"postgres",
"db",
"database",
"pg",
"sql",
"pgsql",
"postgresql",
"node",
"parser",
"ast"
],
"dependencies": {
"moo": "^0.5.1",
"nearley": "^2.19.5"
},
"devDependencies": {
"@types/chai": "^4.2.11",
"@types/mocha": "^8.0.0",
"@types/moo": "^0.5.3",
"@types/nearley": "^2.11.1",
"chai": "^4.2.0",
"copy-webpack-plugin": "^6.0.3",
"cross-env": "^7.0.2",
"istanbul-instrumenter-loader": "^3.0.1",
"mocha": "^8.0.1",
"mochapack": "^2.0.3",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"ts-loader": "^8.0.0",
"ts-node": "^8.10.2",
"typescript": "^4.7.4",
"vscode-mocha-hmr": "^1.0.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^4.10.0",
"webpack-node-externals": "^1.7.2"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"src/**/*.spec.ts"
],
"instrument": false,
"sourceMap": false
}
}