-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
110 lines (110 loc) · 2.58 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "object-reshaper",
"version": "0.3.0",
"description": "TypeScript-first schema-based object transformation",
"license": "MIT",
"main": "lib/cjs/index.js",
"homepage": "https://github.com/dextertanyj/object-reshaper",
"author": {
"name": "Dexter Tan",
"email": "dev@dextertanyj.com"
},
"repository": {
"type": "git",
"url": "https://github.com/dextertanyj/object-reshaper"
},
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js",
"types": "./lib/types/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"*.md",
"lib",
"src"
],
"keywords": [
"typescript",
"object",
"mapper",
"mapping",
"transform",
"transformer",
"convert",
"shape",
"type",
"schema",
"path",
"dto"
],
"scripts": {
"prepare": "husky install",
"pre-commit": "lint-staged",
"test": "jest",
"test:coverage": "jest --coverage",
"prepack": "npm run build",
"prebuild": "rimraf lib",
"build": "npm run build:esm && npm run build:cjs && npm run build:types",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:types": "tsc -p tsconfig.types.json",
"lint": "eslint --ext ts,js .",
"lint:fix": "eslint --fix --ext ts,js .",
"clean": "rimraf lib && rimraf node_modules"
},
"peerDependencies": {
"typescript": ">=4.9"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.1.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"src/**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"^@$": "<rootDir>/src",
"^@/(.*)$": "<rootDir>/src/$1"
}
},
"lint-staged": {
"**/*.(js|jsx|ts|tsx)": [
"prettier --write",
"eslint --fix"
]
}
}