-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
61 lines (61 loc) · 2.34 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
{
"name": "@badrap/valita",
"version": "0.3.8",
"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-mjs/index.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 <jviide@iki.fi>",
"license": "MIT",
"publishConfig": {
"provenance": true
},
"engines": {
"node": ">= 16"
},
"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.build.json --target es2015 --module commonjs --outDir ./dist/cjs",
"build:mjs": "tsc -p ./tsconfig.build.json --target es2015 --module es2015 --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.build.json --target es2021 --module es2015 --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",
"build:node-cjs": "tsc -p ./tsconfig.build.json --target es2021 --module commonjs --outDir ./dist/node-cjs",
"prepack": "npm run build",
"changeset": "changeset",
"bump": "changeset version && sed --in-place \"s/\\\"version\\\": \\\".*\\\"/\\\"version\\\": \\\"$(sed -n 's/^\\s*\\\"version\\\": \\\"\\([^\\\"/]*\\)\\\".*/\\1/p' package.json)\\\"/\" jsr.json",
"release": "changeset publish && jsr publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jsr": "^0.12.2",
"prettier": "^3.2.5",
"ts-expect": "^1.3.0",
"typescript": "^5.4.5",
"vitest": "^1.5.2"
},
"files": [
"src",
"dist"
]
}