/
package.json
140 lines (140 loc) · 4.9 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
{
"name": "ohm-js",
"version": "17.1.0",
"description": "An object-oriented language for parsing and pattern matching",
"repository": "https://github.com/ohmjs/ohm",
"keywords": [
"parser",
"compiler",
"pattern matching",
"pattern-matching",
"ometa",
"ometa/js",
"ometa-js",
"ometajs",
"rapid",
"prototyping"
],
"homepage": "https://ohmjs.org",
"bugs": "https://github.com/ohmjs/ohm/issues",
"type": "module",
"main": "./dist/ohm.cjs",
"module": "./index.mjs",
"exports": {
".": [
{
"import": "./index.mjs",
"require": "./dist/ohm.cjs",
"types": "./index.d.ts"
},
"./dist/ohm.cjs"
],
"./extras": [
{
"import": "./extras/index.mjs",
"require": "./dist/ohm-extras.cjs",
"types": "./extras/index.d.ts"
},
"./dist/ohm-extras.cjs"
]
},
"files": [
"src",
"dist",
"extras",
"index.mjs",
"index.d.ts",
"!**/*.old"
],
"types": "index.d.ts",
"scripts": {
"prebootstrap": "bash scripts/prebootstrap",
"bootstrap": "bash scripts/bootstrap --test || (echo 'Bootstrap failed.' && mv -v dist/ohm-grammar.js.old dist/ohm-grammar.js && mv -v dist/built-in-rules.js.old dist/built-in-rules.js && mv -v dist/operations-and-attributes.js.old dist/operations-and-attributes.js)",
"build": "node scripts/prebuild.js && pnpm build:debug && pnpm build:min",
"build:min": "terser dist/ohm.js --mangle --compress -o dist/ohm.min.js",
"build:debug": "pnpm build:cjs && node scripts/generate-types.js",
"build:cjs": "rollup -c rollup.config.js",
"clean": "rm -f dist/ohm.js dist/ohm.min.js",
"lint": "eslint . --ignore-path ../.eslintignore",
"format": "prettier . --write --ignore-path ../.prettierignore --config ../.prettierrc && eslint . --ignore-path ../.eslintignore --fix",
"test": "ava && node test/_test-doc.js",
"test-watch": "ava --watch",
"pre-commit": "pnpm lint && pnpm build && pnpm test",
"prepublishOnly": "bash scripts/prepublishOnly",
"prepack": "cp ../../README.md . && pnpm build",
"postpack": "rm README.md",
"postpublish": "echo '👉 Now go to https://github.com/ohmjs/ohm/releases and create a release.'",
"unsafe-bootstrap": "bash scripts/bootstrap",
"update-contributors": "bash scripts/update-contributors",
"watch": "pnpm build:cjs --watch"
},
"license": "MIT",
"author": "Alex Warth <alexwarth@gmail.com> (http://tinlizzie.org/~awarth)",
"contributors": [
"Patrick Dubroy <pdubroy@gmail.com>",
"Meixian Li <lmeixian@gmail.com>",
"Marko Röder <m.roeder@photon-software.de>",
"Tony Garnock-Jones <tonygarnockjones@gmail.com>",
"Saketh Kasibatla <sake.kasi@gmail.com>",
"Lionel Landwerlin <llandwerlin@gmail.com>",
"Jason Merrill <jwmerrill@gmail.com>",
"Ray Toal <rtoal@lmu.edu>",
"Yoshiki Ohshima <Yoshiki.Ohshima@acm.org>",
"megabuz <3299889+megabuz@users.noreply.github.com>",
"Jonathan Edwards <JonathanMEdwards@gmail.com>",
"Milan Lajtoš <milan.lajtos@me.com>",
"Neil Jewers <njjewers@uwaterloo.ca>",
"stagas <gstagas@gmail.com>",
"AngryPowman <angrypowman@qq.com>",
"Arthur Carabott <arthurc@gmail.com>",
"Casey Olson <casey.m.olson@gmail.com>",
"Daniel Tomlinson <DanielTomlinson@me.com>",
"Ian Harris <ian@fofgof.xyz>",
"Justin Chase <justin.m.chase@gmail.com>",
"Leslie Ying <acetophore@users.noreply.github.com>",
"Luca Guzzon <luca.guzzon@gmail.com>",
"Mike Niebling <(none)>",
"Patrick Dubroy <patrick@sourcegraph.com>",
"Pierre Donias <pierre.donias@gmail.com>",
"Stan Rozenraukh <stan@stanistan.com>",
"Stephan Seidt <stephan.seidt@gmail.com>",
"Steve Phillips <steve@tryingtobeawesome.com>",
"Szymon Kaliski <kaliskiszymon@gmail.com>",
"Thomas Nyberg <tomnyberg@gmail.com>",
"Vse Mozhet Byt <vsemozhetbyt@gmail.com>",
"Wil Chung <10446+iamwilhelm@users.noreply.github.com>",
"Zachary Sakowitz <zsakowitz@gmail.com>",
"abego <ub@abego-software.de>",
"acslk <d_vd415@hotmail.com>",
"codeZeilen <codeZeilen@users.noreply.github.com>",
"kassadin <kassadin@foxmail.com>",
"owch <bowenrainyday@gmail.com>",
"sfinnie <scott.finnie@gmail.com>"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"ava": "^4.3.3",
"ava-spec": "^1.1.1",
"dedent": "^0.7.0",
"eslint": "^7.31.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-ava": "^12.0.0",
"eslint-plugin-camelcase-ohm": "^0.2.1",
"eslint-plugin-no-extension-in-require": "^0.2.0",
"husky": "^4.2.5",
"jsdom": "^9.9.1",
"json": "^9.0.6",
"markscript": "^0.5.0",
"node-static": "^0.7.11",
"rollup": "^2.63.0",
"terser": "^5.15.1",
"uvu": "^0.5.6",
"walk-sync": "^2.2.0",
"watchlist": "^0.3.1"
},
"engines": {
"node": ">=0.12.1"
}
}