-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
94 lines (94 loc) · 2.21 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
{
"name": "znv",
"version": "0.4.0",
"description": "Parse your environment with Zod schemas",
"type": "module",
"keywords": [
"env",
"process.env",
"zod",
"validation"
],
"main": "dist-cjs/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"author": "s <https://github.com/lostfictions>",
"homepage": "https://github.com/lostfictions/znv",
"repository": {
"type": "git",
"url": "git+https://github.com/lostfictions/znv.git"
},
"bugs": {
"url": "https://github.com/lostfictions/znv/issues"
},
"files": [
"dist/",
"dist-cjs/"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist-cjs/index.d.ts",
"default": "./dist-cjs/index.js"
}
}
},
"license": "MIT",
"scripts": {
"build": "run-s -l build:*",
"build:clean": "rm -rf dist/ dist-cjs/",
"build:mjs": "tsc --project tsconfig.build.json",
"build:cjs": "tsc --project tsconfig.cjs.build.json",
"build:copy": "cp package.cjs.json dist-cjs/package.json",
"test": "run-p -cl test:*",
"test:ts": "tsc --noEmit",
"test:eslint": "eslint --color src",
"test:jest": "jest --colors",
"test:prettier": "prettier -l 'src/**/*'",
"prettier": "prettier 'src/**/*' --write",
"jest": "jest --colors --watch",
"prepublishOnly": "run-s -l test build"
},
"dependencies": {
"colorette": "^2.0.19"
},
"peerDependencies": {
"zod": "^3.13.2"
},
"devDependencies": {
"@types/jest": "^29.5.4",
"@types/node": "^16.18.24",
"eslint": "^8.48.0",
"eslint-config-lostfictions": "^6.0.0",
"jest": "^29.6.4",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.5",
"zod": "~3.13.2"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"extensionsToTreatAsEsm": [
".ts"
],
"rootDir": "src",
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"isolatedModules": true,
"useESM": true
}
]
}
}
}