1 | {
|
2 | "name": "sm2tsservice",
|
3 | "version": "1.1.11",
|
4 | "description": "swagger or yapi mock to typescript services and models",
|
5 | "repository": "git@github.com:gogoyqj/sm2tsservice.git",
|
6 | "author": "杨乾军 <yang@yang>",
|
7 | "license": "MIT",
|
8 | "main": "lib/index.js",
|
9 | "bin": "./lib/cli.js",
|
10 | "types": "lib/index.d.ts",
|
11 | "husky": {
|
12 | "hooks": {
|
13 | "pre-commit": "lint-staged",
|
14 | "commit-msg": "validate-commit-msg"
|
15 | }
|
16 | },
|
17 | "scripts": {
|
18 | "build": "node build.js --declaration --project tsconfig.prod.json",
|
19 | "test": "jest --all"
|
20 | },
|
21 | "jest": {
|
22 | "collectCoverageFrom": [
|
23 | "src/**/*.{js,jsx,ts,tsx}"
|
24 | ],
|
25 | "setupFiles": [],
|
26 | "testMatch": [
|
27 | "<rootDir>/src/**/__tests__/**/*.(j|t)s?(x)",
|
28 | "<rootDir>/tests/**/?(*.)(spec|test).(j|t)s?(x)"
|
29 | ],
|
30 | "testEnvironment": "node",
|
31 | "testURL": "http://localhost:4444",
|
32 | "transform": {
|
33 | "^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
|
34 | "^.+\\.tsx?$": "ts-jest",
|
35 | "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
36 | "^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
37 | },
|
38 | "transformIgnorePatterns": [
|
39 | "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$"
|
40 | ],
|
41 | "moduleNameMapper": {
|
42 | "^src(.*)$": "<rootDir>/src/$1",
|
43 | "^@src(.*)$": "<rootDir>/src/$1",
|
44 | "^tests(.*)$": "<rootDir>/tests/$1",
|
45 | "^react-native$": "react-native-web"
|
46 | },
|
47 | "moduleFileExtensions": [
|
48 | "web.ts",
|
49 | "ts",
|
50 | "web.tsx",
|
51 | "tsx",
|
52 | "web.js",
|
53 | "js",
|
54 | "web.jsx",
|
55 | "jsx",
|
56 | "json",
|
57 | "node",
|
58 | "mjs",
|
59 | "d.ts"
|
60 | ],
|
61 | "globals": {
|
62 | "ts-jest": {
|
63 | "tsConfig": "<rootDir>/tsconfig.test.json"
|
64 | }
|
65 | }
|
66 | },
|
67 | "dependencies": {
|
68 | "ajv": "^6.9.1",
|
69 | "chalk": "^2.4.2",
|
70 | "commander": "^2.19.0",
|
71 | "detect-port": "^1.3.0",
|
72 | "easy-json-schema": "^0.0.2-beta",
|
73 | "es6-promisify": "^6.0.1",
|
74 | "fs-extra": "^7.0.1",
|
75 | "json5": "^2.1.0",
|
76 | "lodash": "^4.17.11",
|
77 | "request": "^2.88.0",
|
78 | "tslib": "^1.9.3"
|
79 | },
|
80 | "devDependencies": {
|
81 | "@types/commander": "^2.12.2",
|
82 | "@types/detect-port": "^1.1.0",
|
83 | "@types/es6-promisify": "^6.0.0",
|
84 | "@types/fs-extra": "^5.0.5",
|
85 | "@types/http-proxy-middleware": "^0.19.2",
|
86 | "@types/jest": "^24.0.17",
|
87 | "@types/json-schema": "^7.0.1",
|
88 | "@types/json5": "^0.0.30",
|
89 | "@types/lodash": "^4.14.120",
|
90 | "@types/node": "8.9.3",
|
91 | "@types/qs": "^6.5.3",
|
92 | "@types/request": "^2.48.1",
|
93 | "@typescript-eslint/eslint-plugin": "^1.7.0",
|
94 | "@typescript-eslint/parser": "^1.7.0",
|
95 | "babel-jest": "^24.7.1",
|
96 | "eslint": "^5.16.0",
|
97 | "eslint-config-prettier": "^4.1.0",
|
98 | "eslint-plugin-prettier": "^3.0.1",
|
99 | "husky": "^1.3.1",
|
100 | "jest": "^24.9.0",
|
101 | "lint-staged": "^8.1.5",
|
102 | "prettier": "^1.16.1",
|
103 | "ts-jest": "^24.0.2",
|
104 | "typescript": "^3.5.2",
|
105 | "validate-commit-msg": "^2.14.0"
|
106 | }
|
107 | }
|