forked from badrap/valita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
49 lines (49 loc) · 1.89 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
{
"name": "@badrap/valita",
"version": "0.3.0",
"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": "badrap/valita",
"author": "Joachim Viide <[email protected]>",
"license": "MIT",
"engines": {
"node": ">= 16"
},
"scripts": {
"lint": "eslint --ignore-path .gitignore --max-warnings 0 --ext=.js,.ts .",
"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"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"ts-expect": "^1.3.0",
"typescript": "^5.2.2",
"vitest": "^0.34.4"
},
"files": [
"src",
"dist"
]
}