-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 2.82 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 2.82 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
{
"name": "jsonref",
"version": "9.0.2",
"description": "Javascript References ($ref) and Pointers library",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
},
"./dist/*.js": "./dist/*.js",
"./dist/cjs/*.js": "./dist/cjs/*.js"
},
"types": "./dist/index.d.ts",
"directories": {
"test": "test"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/cjs/package.json",
"!dist/**/*.test.*",
"README.md",
"LICENSE"
],
"scripts": {
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc --outDir dist --module NodeNext --moduleResolution NodeNext",
"build:cjs": "tsc --outDir dist/cjs --module commonjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build:tests": "tsc -p tsconfig.json",
"build:all": "pnpm install && pnpm run build && pnpm run build:tests && pnpm install --package-lock",
"clean": "rimraf dist coverage .nyc_output test-results",
"clean:all": "pnpm run clean && rimraf node_modules",
"cover": "c8 --require esm --reporter=lcov --reporter=text pnpm t",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"prebuild": "rimraf dist",
"check-coverage": "c8 check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"watch:test": "pnpm t -- -w",
"test": "pnpm run build && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results dist/*.test.js",
"test:watch": "nodemon -e ts --ignore dist/ --ignore 'dist/test/*.js' --exec pnpm run test"
},
"repository": {
"type": "git",
"url": "https://github.com/vivocha/jsonref.git"
},
"keywords": [
"js",
"json",
"schema",
"reference",
"pointer"
],
"author": "Federico Pinna <fpinna@vivocha.com> (http://www.vivocha.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/vivocha/jsonref/issues"
},
"homepage": "https://github.com/vivocha/jsonref#readme",
"devDependencies": {
"@changesets/cli": "^2.27.6",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.8",
"@types/chai-spies": "^1.0.6",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.9",
"@types/sinon": "^17.0.4",
"c8": "^10.1.2",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"chai-spies": "^1.1.0",
"coveralls": "^3.1.1",
"mocha": "^10.5.2",
"mochawesome": "^7.1.3",
"rimraf": "^5.0.7",
"sinon": "^21.0.0",
"typescript": "^5.5.2"
},
"engines": {
"node": ">=18.17.0"
},
"c8": {
"include": [
"dist/**/*.js",
"src/**/*.ts"
],
"extension": [
".js",
".ts"
],
"exclude": [
"**/test"
],
"reporter": [
"lcov",
"text"
],
"sourceMap": true
}
}