Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
116 lines (116 loc) · 4.62 KB
/
Copy pathpackage.json
File metadata and controls
116 lines (116 loc) · 4.62 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
{
"name": "alasql",
"description": "Use SQL to select and filter javascript data - including relational joins and search in nested objects (JSON). Export to and import from Excel and CSV",
"version": "4.23.0",
"author": "Andrey Gershun <agershun@gmail.com>",
"contributors": [
"Mathias Wulff <m@rawu.dk>"
],
"main": "dist/alasql.fs.js",
"browser": "dist/alasql.min.js",
"exports": {
".": {
"types": "./types/alasql.d.ts",
"node": "./dist/alasql.fs.js",
"browser": "./dist/alasql.min.js",
"default": "./dist/alasql.fs.js"
},
"./precompile": "./dist/precompile/index.js"
},
"directories": {
"test": "test"
},
"typings": "types/alasql.d.ts",
"scripts": {
"test": "yarn test-parser && sh build.sh && yarn test-only",
"test-ci": "(yarn test-format-all || 1) && yarn test-only && yarn install-g && alasql 'select 1 as Succes'",
"test-only": "bun test --dots --preload ./test/bun-setup.js ./test/test[0-9]*.js ./test/test-*.js",
"test-browser": "node test/browserTestRunner.js 7387",
"test-cover": "# istanbul cover -x 'lib/zt/zt.js' --dir test/coverage _mocha",
"build": "yarn format && yarn build-only",
"build-only": "sh build.sh",
"test-perf": "bun test/performance/vs-npm.js",
"test-perf-mini": "bun test/performance/vs-npm.js --scale=0.5 --runs=2 --runtime=node --fail-above=105",
"install-g": "yarn build && npm uninstall alasql -g && npm install -g .",
"release": "yarn version",
"jison": "jison ./src/alasqlparser.jison -o ./src/alasqlparser.js",
"test-parser": "mkdir -p node_modules/.cache && jison ./src/alasqlparser.jison -o ./node_modules/.cache/alasqlparser.js && cmp ./node_modules/.cache/alasqlparser.js ./src/alasqlparser.js",
"fmt": "yarn pretty-commit --write",
"format": "yarn pretty-since-dev --write",
"format-all": "yarn pretty-all --write",
"test-format": "yarn pretty-since-dev --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"test-format-all": "prettier --list-different '{.,src,test}/*.{js,ts,json}' || (echo 'Please correct file formatting using `yarn format-all` and try again.' && exit 1)",
"pretty-since-dev": "{ git diff --name-only --diff-filter=d origin/develop ; git diff --name-only --diff-filter=d --staged origin/develop ; } | sort | uniq | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"pretty-commit": "{ git diff --name-only --diff-filter=d ; git diff --name-only --diff-filter=d --staged ; } | sort | uniq | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"pretty-all": "git ls-tree --full-tree --name-only -r HEAD | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"push": "git push --force-with-lease && git push --no-verify --tags #",
"repush": "yarn rebase && yarn push",
"amend": "git reset --soft HEAD~1 && sleep 1 && git add --all && git commit --file .git/COMMIT_EDITMSG # This works with husky hooks",
"commit": "cmdmix 'git add --all && git commit -am \"%1\"'",
"add": "git add --all",
"goto": "git fetch && git checkout",
"todo": "git ls-tree --full-tree --name-only -r head | xargs grep -inEro '\\Wtodo[ :].*' #",
"fresh": "cmdmix 'yarn goto '%1' && yarn pull-hard'",
"pre-pr": "cmdmix 'yarn fresh '%1' && yarn repush'",
"prepare": "husky",
"preversion": "yarn && yarn test && npm login",
"prepublishOnly": "sh build.sh </dev/null",
"postversion": "npm publish && git push && git push origin v$npm_package_version && echo \"Successfully released version $npm_package_version\""
},
"dependencies": {
"cross-fetch": "4.1.0",
"yargs": "16"
},
"optionalDependencies": {
"react-native-fs": "^2.20.0"
},
"devDependencies": {
"blueimp-md5": "2.19.0",
"cmdmix": "2.2.2",
"dom-storage": "2.1.0",
"esbuild": "0.28.2",
"git-branch-is": "5.0.0",
"husky": "9.1.7",
"jison": "^0.4.18",
"open": "11.0.4",
"prettier": "3.10.1",
"rexreplace": "7.1.16",
"strftime": "0.10.3",
"uglify-js": "3.19.3"
},
"resolutions": {
"underscore": "1"
},
"engines": {
"node": ">=15"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alasql/alasql.git"
},
"bugs": {
"url": "https://github.com/alasql/alasql/issues"
},
"bin": {
"alasql": "bin/alasql-cli.js"
},
"homepage": "https://github.com/alasql/alasql",
"keywords": [
"SQL",
"javascript",
"database",
"Excel",
"XLSX",
"XLS",
"CSV"
],
"license": "MIT",
"prettier": {
"useTabs": true,
"printWidth": 100,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "es5",
"bracketSpacing": false
}
}