Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
140 lines (140 loc) · 4.75 KB
/
Copy pathpackage.json
File metadata and controls
140 lines (140 loc) · 4.75 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
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": "@tsdotnet/compare",
"version": "1.8.3",
"description": "Utility for common comparison functions including sorting and type reflection.",
"author": "electricessence",
"license": "MIT",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
".": {
"module-sync": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"module": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"default": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./package.json": "./package.json",
"./umd": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/umd/compare.js"
}
},
"types": "./dist/types/index.d.ts",
"unpkg": "./dist/umd/compare.min.js",
"jsdelivr": "./dist/umd/compare.min.js",
"keywords": [
"equal",
"lessthan",
"less than",
"greaterthan",
"greater than",
"compare",
"comparison",
"equality",
"orderby",
"order by",
"sorting",
"type checking"
],
"scripts": {
"clean": "rimraf dist",
"copy:dts": "cpy \"src/**/*.d.ts\" dist/types --parents || echo No .d.ts files to copy",
"copy:dts:cjs": "cpy \"src/**/*.d.ts\" dist/cjs --parents || echo No .d.ts files to copy",
"build:types": "pnpm copy:dts && node ./node_modules/typescript-native/bin/tsc -p tsconfig.types.json",
"build:esm": "rollup -c rollup.config.js",
"build:umd": "rollup -c rollup.umd.config.js",
"build:cjs": "node ./node_modules/typescript-native/bin/tsc -p tsconfig.cjs.json && pnpm copy:dts:cjs && node -e \"require('node:fs').writeFileSync('dist/cjs/package.json', JSON.stringify({ type: 'commonjs' }) + '\\n')\"",
"build": "pnpm clean && pnpm build:types && pnpm build:esm && pnpm build:umd && pnpm build:cjs && pnpm typecheck:tests",
"test": "vitest run",
"typecheck": "node ./node_modules/typescript-native/bin/tsc --noEmit",
"typecheck:tests": "node ./node_modules/typescript-native/bin/tsc -p tests/tsconfig.json --noEmit",
"lint": "eslint src/**/*.ts",
"docs": "rimraf docs && typedoc --options typedoc.json --readme none",
"bump": "pnpm run precommit && pnpm version patch",
"precommit": "pnpm build && pnpm test && pnpm lint && git status -s",
"preversion": "pnpm lint && pnpm test",
"postversion": "git push && git push --tags && pnpm run docs && git add -A && git commit -m \"Updated docs.\" docs && git push",
"prepublishOnly": "pnpm build && pnpm test && pnpm lint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tsdotnet/compare.git"
},
"bugs": {
"url": "https://github.com/tsdotnet/compare/issues"
},
"homepage": "https://github.com/tsdotnet/compare#readme",
"devDependencies": {
"@eslint/js": "^10.0.1",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.2",
"@rollup/plugin-typescript": "^12.3.1",
"@types/node": "^26.6.6",
"@vitest/coverage-v8": "^5.1.1",
"cpy-cli": "^7.0.0",
"eslint": "^10.15.0",
"rimraf": "^6.1.4",
"rollup": "^4.68.7",
"typedoc": "^0.28.20",
"typescript": "~6.0.3",
"typescript-eslint": "^8.73.0",
"typescript-native": "npm:typescript@^7.0.2",
"vite": "^8.3.8",
"vitest": "^5.1.1"
},
"dependencies": {
"@tsdotnet/common-interfaces": "^1.0.7",
"@tsdotnet/type": "^1.3.2",
"tslib": "^2.9.1"
},
"pnpm": {
"overrides": {
"hosted-git-info@<2.8.9": ">=2.8.9",
"y18n@=4.0.0": ">=4.0.1",
"lodash@<4.17.20": ">=4.17.20",
"shell-quote@<=1.7.2": ">=1.7.3",
"lodash@<4.17.21": ">=4.17.21",
"json5@<1.0.2": ">=1.0.2",
"json5@>=2.0.0 <2.2.2": ">=2.2.2",
"minimatch@<3.0.5": ">=3.0.5",
"semver@<5.7.2": ">=5.7.2",
"semver@>=6.0.0 <6.3.1": ">=6.3.1",
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
"get-func-name@<2.0.1": ">=2.0.1",
"@babel/traverse@<7.23.2": ">=7.23.2",
"braces@<3.0.3": ">=3.0.3",
"@isaacs/brace-expansion@<=5.0.0": ">=5.0.1",
"vite@>=7.0.0 <=7.3.1": ">=7.3.2",
"vite@>=7.1.0 <=7.3.1": ">=7.3.2",
"esbuild@>=0.17.0 <0.28.1": ">=0.28.1",
"esbuild@>=0.27.3 <0.28.1": ">=0.28.1",
"vite@>=7.0.0 <=7.3.4": ">=7.3.5",
"brace-expansion@>=4.0.0 <5.0.9": ">=5.0.9",
"vite@>=7.0.0 <=7.3.6": ">=7.3.7",
"minimatch@>=7.0.0 <11.0.1": ">=11.0.1",
"typedoc>minimatch": "^10.2.5"
},
"auditConfig": {
"ignoreGhsas": [
"GHSA-g3hv-75wg-m249"
]
}
}
}