Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 2.94 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 2.94 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
{
"name": "@cldmv/wisp",
"version": "1.0.7",
"description": "Version-agnostic JSON importing for Node.js with fallback handling and caller path resolution.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./types/index.d.mts",
"exports": {
".": {
"wisp-dev": {
"types": "./types/index.d.mts",
"import": "./src/index.mjs",
"require": "./src/cjs-shim.cjs"
},
"types": "./types/index.d.mts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"scripts": {
"build": "tsup",
"build:ci": "npm run lint && npm run format:check && npm run types:build && npm run build && npm run test && npm run test:types",
"prepack": "npm run types:build && npm run build",
"prepare": "node -e \"import('./.githooks/install.mjs').catch(()=>{})\"",
"test": "node tests/run-vitest.mjs && npm run test:cjs",
"test:cjs": "npm run build && node --test tests/cjs/entry.test.cjs tests/bundle/caller-resolution.test.mjs",
"test:watch": "vitest --config .configs/vitest.config.mjs",
"coverage": "node tests/run-vitest.mjs --coverage-quiet && npm run test:cjs",
"ci:coverage": "npm run coverage",
"types:build": "tsc",
"types:check": "tsc --noEmit",
"test:types": "npm run types:check",
"lint": "eslint --config .configs/eslint.config.mjs .",
"lint:fix": "eslint --config .configs/eslint.config.mjs . --fix",
"format": "prettier --config .configs/.prettierrc --write .",
"format:check": "prettier --config .configs/.prettierrc --check .",
"fix:headers": "fix-headers --config .configs/fix-headers.json"
},
"keywords": [
"json",
"import",
"nodejs",
"version-agnostic",
"fallback",
"loader",
"esm",
"cjs",
"wisp",
"api"
],
"author": {
"name": "Shinrai",
"company": "CLDMV",
"email": "git+npm@cldmv.net",
"url": "https://cldmv.net"
},
"repository": {
"type": "git",
"url": "git+https://github.com/CLDMV/wisp.git"
},
"contributors": [
{
"name": "CLDMV",
"url": "https://github.com/CLDMV"
}
],
"bugs": {
"url": "https://github.com/CLDMV/wisp/issues"
},
"homepage": "https://github.com/CLDMV/wisp#readme",
"license": "Apache-2.0",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/shinrai"
},
"files": [
"dist/",
"!dist/**/*.map",
"types/",
"README.md",
"LICENSE"
],
"devDependencies": {
"@cldmv/configs": "^1.2.4",
"@cldmv/eslint-plugin-jsonv": "^1.0.15",
"@cldmv/fix-headers": "^2.2.0",
"@cldmv/jsonv": "^1.1.3",
"@cldmv/prettier-plugin-jsonv": "^1.1.3",
"@cldmv/vitest-runner": "^1.5.3",
"@eslint/css": "^2.0.0",
"@eslint/js": "^10.0.1",
"@eslint/json": "^2.1.0",
"@eslint/markdown": "^8.0.3",
"@types/node": "^26.6.2",
"@vitest/coverage-v8": "^5.0.3",
"eslint": "^10.12.0",
"globals": "^17.13.0",
"prettier": "^3.9.9",
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"vitest": "^5.0.3"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=16.0.0"
},
"sideEffects": false
}