-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
59 lines (59 loc) · 2.17 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
{
"name": "@badrap/valita",
"version": "0.4.2",
"description": "A validation & parsing library for TypeScript",
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.mjs",
"exports": {
"bun": "./src/index.ts",
"node": {
"module": "./dist/node-mjs/index.mjs",
"import": "./dist/node-cjs/index.esm.mjs",
"require": "./dist/node-cjs/index.js"
},
"default": "./dist/mjs/index.mjs"
},
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/badrap/valita.git"
},
"author": "Joachim Viide <[email protected]>",
"license": "MIT",
"publishConfig": {
"provenance": true
},
"engines": {
"node": ">= 18"
},
"scripts": {
"lint": "eslint --max-warnings 0 .",
"typecheck": "tsc --skipLibCheck --noEmit",
"test": "vitest run",
"build": "rm -rf dist/* && npm run build:cjs && npm run build:mjs && npm run build:node-mjs && npm run build:node-cjs",
"build:cjs": "tsc -p ./tsconfig.cjs.json --outDir ./dist/cjs",
"build:node-cjs": "tsc -p ./tsconfig.cjs.json --target es2021 --outDir ./dist/node-cjs",
"build:mjs": "tsc -p ./tsconfig.esm.json --outDir ./dist/mjs && mv ./dist/mjs/index.js ./dist/mjs/index.mjs && mv ./dist/mjs/index.d.ts ./dist/mjs/index.d.mts",
"build:node-mjs": "tsc -p ./tsconfig.esm.json --target es2021 --outDir ./dist/node-mjs && mv ./dist/node-mjs/index.js ./dist/node-mjs/index.mjs && mv ./dist/node-mjs/index.d.ts ./dist/node-mjs/index.d.mts",
"changeset": "changeset",
"bump": "changeset version && sed --in-place \"s/\\\"version\\\": \\\".*\\\"/\\\"version\\\": \\\"$(sed -n 's/^\\s*\\\"version\\\": \\\"\\([^\\\"/]*\\)\\\".*/\\1/p' package.json)\\\"/\" jsr.json",
"release": "npm run build && changeset publish && jsr publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@eslint/js": "^9.15.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jsr": "^0.13.2",
"prettier": "^3.4.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0",
"vitest": "^2.1.6"
},
"files": [
"src",
"dist"
]
}