-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
package.json
100 lines (100 loc) · 3.19 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
{
"name": "@dice-roller/rpg-dice-roller",
"description": "An advanced JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.",
"author": "GreenImp Media <[email protected]> (https://greenimp.co.uk)",
"version": "5.4.1",
"license": "MIT",
"type": "module",
"main": "./lib/esm/bundle.js",
"module": "./lib/esm/bundle.js",
"browser": "./lib/umd/bundle.js",
"exports": {
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./lib/esm/bundle.js"
},
"require": {
"types": "./types/index.d.cts",
"default": "./lib/umd/bundle.js"
}
},
"./lib/umd/bundle.js": {
"types": "./types/index.d.cts",
"require": "./lib/umd/bundle.js"
},
"./src/": "./src/",
"./types/": "./types/",
"./package.json": "./package.json"
},
"types": "./types/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/dice-roller/rpg-dice-roller.git"
},
"bugs": {
"url": "https://github.com/dice-roller/rpg-dice-roller/issues"
},
"homepage": "https://dice-roller.github.io/documentation",
"funding": [
"https://github.com/sponsors/dice-roller",
"https://github.com/sponsors/GreenImp"
],
"keywords": [
"dice",
"roller",
"rpg",
"roll",
"d&d",
"dnd",
"random",
"prng",
"roleplay",
"pathfinder",
"notation"
],
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.3",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-eslint": "^8.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"abab": "^2.0.6",
"eslint": "^8.24.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^29.1.2",
"peggy": "^3.0.2",
"rollup": "^2.79.1",
"rollup-plugin-banner": "^0.2.1",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.8.4",
"vuepress-jsdoc": "^5.0.0"
},
"dependencies": {
"mathjs": "^11.2.1",
"random-js": "^2.1.0"
},
"engines": {
"node": ">=18.0"
},
"scripts": {
"build": "npm run build:dev && npm run build:prod && npm run build:declaration",
"build:prepare": "npm run build:grammars && npm run lint",
"build:declaration": "rm -rf types/ && tsc -p declaration.tsconfig.json && cp ./types/index.d.ts ./types/index.d.cts",
"build:dev": "npm run build:prepare && rollup --c --environment BUILD:dev",
"build:grammars": "peggy -c ./peggy.config.cjs ./src/parser/grammars/grammar.pegjs",
"build:prod": "npm run build:prepare && rollup --c --environment BUILD:prod",
"docs:build": "vuepress-jsdoc --dist ./docs --folder api --exclude=\"index.js,**/index.js,**/parser/grammars/*\" --partials=\"./docs/partials/**/*.hbs\" --readme=\"./docs/readme.md\"",
"docs:watch": "npm run docs:build -- --watch",
"watch": "npm run build:dev -- -w",
"lint": "eslint src/** tests/**",
"lint:fix": "eslint --fix src/** tests/**",
"pretest": "npm run build:prepare",
"test": "jest",
"test:coverage": "npm test -- --coverage",
"test:watch": "npm test -- --watchAll",
"prepublishOnly": "npm test && npm run build"
}
}