UNPKG

4.04 kBJSONView Raw
1{
2 "name": "cosmiconfig",
3 "version": "7.0.1",
4 "description": "Find and load configuration from a package.json property, rc file, or CommonJS module",
5 "main": "dist/index.js",
6 "types": "dist/index.d.ts",
7 "files": [
8 "dist"
9 ],
10 "scripts": {
11 "clean": "del-cli --dot=true \"./dist/**/*\"",
12 "build": "npm run clean && npm run build:compile && npm run build:types",
13 "build:compile": "cross-env NODE_ENV=production babel src -d dist --verbose --extensions .js,.ts --ignore \"**/**/*.test.js\",\"**/**/*.test.ts\" --source-maps",
14 "build:types": "cross-env NODE_ENV=production tsc --project tsconfig.types.json",
15 "dev": "npm run clean && npm run build:compile -- --watch",
16 "lint": "eslint --ext .js,.ts . && npm run lint:md",
17 "lint:fix": "eslint --ext .js,.ts . --fix",
18 "lint:md": "remark-preset-davidtheclark",
19 "format": "prettier \"**/*.{js,ts,json,yml,yaml}\" --write",
20 "format:md": "remark-preset-davidtheclark --format",
21 "format:check": "prettier \"**/*.{js,ts,json,yml,yaml}\" --check",
22 "typescript": "tsc",
23 "test": "jest --coverage",
24 "test:watch": "jest --watch",
25 "check:all": "npm run test && npm run typescript && npm run lint && npm run format:check",
26 "prepublishOnly": "npm run check:all && npm run build"
27 },
28 "husky": {
29 "hooks": {
30 "pre-commit": "lint-staged && npm run typescript && npm run test",
31 "pre-push": "npm run check:all"
32 }
33 },
34 "lint-staged": {
35 "*.{js,ts}": [
36 "eslint --fix",
37 "prettier --write"
38 ],
39 "*.{json,yml,yaml}": [
40 "prettier --write"
41 ],
42 "*.md": [
43 "remark-preset-davidtheclark",
44 "remark-preset-davidtheclark --format"
45 ]
46 },
47 "repository": {
48 "type": "git",
49 "url": "git+https://github.com/davidtheclark/cosmiconfig.git"
50 },
51 "keywords": [
52 "load",
53 "configuration",
54 "config"
55 ],
56 "author": "David Clark <david.dave.clark@gmail.com>",
57 "contributors": [
58 "Bogdan Chadkin <trysound@yandex.ru>",
59 "Suhas Karanth <sudo.suhas@gmail.com>"
60 ],
61 "license": "MIT",
62 "bugs": {
63 "url": "https://github.com/davidtheclark/cosmiconfig/issues"
64 },
65 "homepage": "https://github.com/davidtheclark/cosmiconfig#readme",
66 "prettier": {
67 "trailingComma": "all",
68 "arrowParens": "always",
69 "singleQuote": true,
70 "printWidth": 80,
71 "tabWidth": 2
72 },
73 "jest": {
74 "testEnvironment": "node",
75 "collectCoverageFrom": [
76 "src/**/*.{js,ts}"
77 ],
78 "coverageReporters": [
79 "text",
80 "html",
81 "lcov"
82 ],
83 "coverageThreshold": {
84 "global": {
85 "branches": 100,
86 "functions": 100,
87 "lines": 100,
88 "statements": 100
89 }
90 },
91 "resetModules": true,
92 "resetMocks": true,
93 "restoreMocks": true
94 },
95 "babel": {
96 "presets": [
97 [
98 "@babel/preset-env",
99 {
100 "targets": {
101 "node": "10"
102 }
103 }
104 ],
105 "@babel/preset-typescript"
106 ]
107 },
108 "dependencies": {
109 "@types/parse-json": "^4.0.0",
110 "import-fresh": "^3.2.1",
111 "parse-json": "^5.0.0",
112 "path-type": "^4.0.0",
113 "yaml": "^1.10.0"
114 },
115 "devDependencies": {
116 "@babel/cli": "^7.10.4",
117 "@babel/core": "^7.10.4",
118 "@babel/preset-env": "^7.10.4",
119 "@babel/preset-typescript": "^7.10.4",
120 "@types/jest": "^26.0.4",
121 "@types/node": "^14.0.22",
122 "@typescript-eslint/eslint-plugin": "^3.6.0",
123 "@typescript-eslint/parser": "^3.6.0",
124 "cross-env": "^7.0.2",
125 "del": "^5.1.0",
126 "del-cli": "^3.0.1",
127 "eslint": "^7.4.0",
128 "eslint-config-davidtheclark-node": "^0.2.2",
129 "eslint-config-prettier": "^6.11.0",
130 "eslint-plugin-import": "^2.22.0",
131 "eslint-plugin-jest": "^23.18.0",
132 "eslint-plugin-node": "^11.1.0",
133 "husky": "^4.2.5",
134 "jest": "^26.1.0",
135 "lint-staged": "^10.2.11",
136 "make-dir": "^3.1.0",
137 "parent-module": "^2.0.0",
138 "prettier": "^2.0.5",
139 "remark-preset-davidtheclark": "^0.12.0",
140 "typescript": "^3.9.6"
141 },
142 "engines": {
143 "node": ">=10"
144 }
145}