UNPKG

2.93 kBJSONView Raw
1{
2 "name": "cosmiconfig",
3 "version": "5.2.0",
4 "description": "Find and load configuration from a package.json property, rc file, or CommonJS module",
5 "main": "dist/index.js",
6 "files": [
7 "dist"
8 ],
9 "scripts": {
10 "precommit": "lint-staged && jest && flow check",
11 "lint:md-partial": "remark -u remark-preset-davidtheclark --frail --quiet --no-stdout --output --",
12 "lint:md": "npm run lint:md-partial -- *.md",
13 "lint:fix": "eslint . --fix",
14 "lint": "eslint . && npm run lint:md",
15 "format": "prettier --write \"{src/*.js,test/*.js}\"",
16 "pretest": "npm run lint && flow check",
17 "test": "jest --coverage",
18 "test:watch": "jest --watch",
19 "coverage": "jest --coverage --coverageReporters=html --coverageReporters=text",
20 "build": "flow-remove-types src --out-dir dist --quiet",
21 "prepublishOnly": "npm run build"
22 },
23 "lint-staged": {
24 "*.js": [
25 "eslint --fix",
26 "prettier --write",
27 "git add"
28 ],
29 "*.md": [
30 "npm run lint:md-partial",
31 "git add"
32 ]
33 },
34 "repository": {
35 "type": "git",
36 "url": "git+https://github.com/davidtheclark/cosmiconfig.git"
37 },
38 "keywords": [
39 "load",
40 "configuration",
41 "config"
42 ],
43 "author": "David Clark <david.dave.clark@gmail.com>",
44 "contributors": [
45 "Bogdan Chadkin <trysound@yandex.ru>",
46 "Suhas Karanth <sudo.suhas@gmail.com>"
47 ],
48 "license": "MIT",
49 "bugs": {
50 "url": "https://github.com/davidtheclark/cosmiconfig/issues"
51 },
52 "homepage": "https://github.com/davidtheclark/cosmiconfig#readme",
53 "prettier": {
54 "trailingComma": "es5",
55 "singleQuote": true,
56 "printWidth": 80,
57 "tabWidth": 2
58 },
59 "jest": {
60 "testEnvironment": "node",
61 "collectCoverageFrom": [
62 "src/*.js"
63 ],
64 "coverageReporters": [
65 "text",
66 "html",
67 "lcov"
68 ],
69 "coverageThreshold": {
70 "global": {
71 "branches": 100,
72 "functions": 100,
73 "lines": 100,
74 "statements": 100
75 }
76 },
77 "resetModules": true,
78 "resetMocks": true
79 },
80 "babel": {
81 "plugins": [
82 "transform-flow-strip-types"
83 ]
84 },
85 "dependencies": {
86 "import-fresh": "^2.0.0",
87 "is-directory": "^0.3.1",
88 "js-yaml": "^3.13.0",
89 "parse-json": "^4.0.0"
90 },
91 "devDependencies": {
92 "babel-eslint": "^8.0.3",
93 "babel-plugin-transform-flow-strip-types": "^6.22.0",
94 "del": "^3.0.0",
95 "eslint": "^4.12.1",
96 "eslint-config-davidtheclark-node": "^0.2.2",
97 "eslint-config-prettier": "^2.9.0",
98 "eslint-plugin-flowtype": "^2.39.1",
99 "eslint-plugin-node": "^5.2.1",
100 "flow-bin": "^0.68.0",
101 "flow-remove-types": "^1.2.3",
102 "husky": "^0.14.3",
103 "jest": "^21.2.1",
104 "lint-staged": "^6.0.0",
105 "make-dir": "^1.2.0",
106 "parent-module": "^0.1.0",
107 "prettier": "^1.8.2",
108 "remark-cli": "^5.0.0",
109 "remark-preset-davidtheclark": "^0.7.0"
110 },
111 "engines": {
112 "node": ">=4"
113 }
114}