-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
129 lines (129 loc) · 4.85 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
{
"name": "rtvjs",
"version": "5.0.0",
"description": "Runtime Verification Library for browsers and Node.js.",
"engines": {
"node": ">=16.12.0",
"npm": ">=10.0.0"
},
"module": "dist/browser/rtv.esm.slim.js",
"exports": {
".": {
"node": "./dist/node/rtv.cjs",
"import": "./dist/browser/rtv.esm.slim.js",
"default": "./dist/browser/rtv.esm.js"
}
},
"sideEffects": false,
"scripts": {
"api": "jsdoc2md -f \"src/**/*.js\" -f \"src/**/*.jsdoc\" --heading-depth 1 > API.md",
"ci:lint": "npm run fmt:check && npm run lint",
"ci:build": "npm run build:lib",
"ci:test": "npm run test:coverage",
"clean": "npm run clean:lib && npm run clean:internals",
"clean:internals": "rm -rf ./dist_tools",
"clean:lib": "rm -rf ./dist",
"build": "npm run build:lib",
"build:internals": "npm run clean:internals && rollup -c tools/rollup.internals.js",
"build:lib": "npm run clean:lib && node ./tools/build/build.js",
"docs": "npm run docs:cpfiles; cd docs; bundle exec jekyll serve -w -l",
"docs:build": "npm run docs:cpfiles; cd docs; bundle exec jekyll build",
"docs:cpfiles": "./tools/docs/cpfiles",
"docs:install": "cd docs; bundle install",
"fmt": "prettier --write \"{*,src/**/*,test/**/*,tools/**/*,.github/workflows/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"",
"fmt:check": "prettier --check \"{*,src/**/*,test/**/*,tools/**/*,.github/workflows/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"",
"lint": "eslint \"{*,src/**/*,test/**/*,tools/**/*}.+(js|cjs|mjs|ts|cts|mts)\"",
"html": "npm run build:lib && npm run html:live",
"html:live": "live-server --no-browser --mount=\"/dist:./dist\" ./tools",
"node": "echo \"\n⚠️ REMEMBER TO REBUILD IF NECESSARY ⚠️\n\n\" && node --import=./tools/node.mjs --inspect",
"node:cjs": "echo \"\n⚠️ REMEMBER TO REBUILD IF NECESSARY ⚠️\n\n\" && node -r ./tools/node.cjs --inspect",
"node:build": "npm run build:lib && npm run node",
"node:internals": "npm run build:internals && node --import=./dist_tools/internals.mjs --inspect",
"precommit:api": "git add API.md",
"precommit:msg": "echo 'Running pre-commit checks...'",
"prepare": "husky",
"prepublish:checkdocs": "git diff HEAD --exit-code -- API.md",
"prepublishOnly": "npm test && npm run build && npm run api && npm run prepublish:checkdocs",
"preversion": "npm test",
"postversion": "git push && git push --tags",
"release:major": "npm version major -m \"Version %s release\" && npm publish",
"release:minor": "npm version minor -m \"Version %s release\" && npm publish",
"release:patch": "npm version patch -m \"Version %s release\" && npm publish",
"start": "npm run build:lib && npm run node",
"test": "npm run fmt:check && npm run lint && npm run test:coverage",
"test:coverage": "npm run test:unit -- --coverage",
"test:unit": "BABEL_ENV=test NODE_ENV=production jest",
"test:unit:debug": "npm run test:unit -- --inspect-brk --runInBand",
"test:unit:watch": "npm run test:unit -- --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/stefcameron/rtvjs.git"
},
"keywords": [
"javascript",
"test",
"runtime",
"verify",
"verification",
"assertion",
"type",
"integration",
"isomorphic"
],
"author": {
"name": "Stefan Cameron",
"url": "https://stefancameron.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/stefcameron/rtvjs/issues"
},
"homepage": "https://github.com/stefcameron/rtvjs?tab=readme-ov-file#rtvjs",
"files": [
"API.md",
"CHANGELOG.md",
"LICENSE",
"package.json",
"README.md",
"dist/"
],
"peerDependencies": {
"@babel/runtime": "^7.24.5",
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@babel/core": "^7.26.7",
"@babel/eslint-parser": "^7.26.5",
"@babel/eslint-plugin": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.7",
"@babel/register": "^7.25.9",
"@babel/runtime": "^7.26.7",
"@eslint/js": "^9.19.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-replace": "^6.0.2",
"babel-plugin-istanbul": "^7.0.0",
"chokidar": "^4.0.3",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-node": "^0.3.9",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-jest-dom": "^5.5.0",
"globals": "^15.13.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"jsdoc-to-markdown": "^9.1.1",
"live-server": "^1.2.2",
"lodash-es": "^4.17.21",
"prettier": "^3.4.2",
"rollup": "^4.32.1",
"rollup-plugin-terser": "^7.0.2"
}
}