-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 1.63 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
{
"type": "module",
"name": "to-typed",
"version": "0.5.3",
"description": "Type-guards, casts and converts unknowns into typed values",
"repository": {
"type": "git",
"url": "https://github.com/jsoldi/to-typed"
},
"keywords": [
"type-guard",
"type-cast",
"type-convert"
],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"typesVersions": {
"<4.7": {
"dist/types/*": [
"dist/types-4.2/*"
]
}
},
"exports": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"files": [
"dist"
],
"scripts": {
"build:clear": "node build-utils.js rf ./dist",
"build:esm": "tsc",
"build:cjs": "tsc --outDir ./dist/cjs --module commonjs && echo { \"type\": \"commonjs\" } > ./dist/cjs/package.json",
"build:downlevel-dts": "downlevel-dts ./dist/types ./dist/types-4.2 --to=4.2",
"build": "npm run build:clear && npm run build:cjs && npm run build:esm && npm run build:downlevel-dts",
"test:clear": "node build-utils.js rf ./tests/dist",
"test:build": "tsc --p ./tests/tsconfig.json",
"test:run": "node ./tests/dist/tests/index.js",
"test": "npm run test:clear && npm run test:build && npm run test:run",
"demo:run": "node ./tests/dist/tests/demo.js",
"demo": "npm run test:clear && npm run test:build && npm run demo:run",
"start": "tsc && node ./dist/esm/playground.js"
},
"author": "Juan Soldi",
"license": "MIT",
"devDependencies": {
"@types/node": "~10.5.0",
"downlevel-dts": "~0.10.0",
"typescript": "~4.7.2"
}
}