UNPKG

2.89 kBJSONView Raw
1{
2 "name": "cosmiconfig",
3 "version": "5.0.3",
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 ],
68 "coverageThreshold": {
69 "global": {
70 "branches": 100,
71 "functions": 100,
72 "lines": 100,
73 "statements": 100
74 }
75 },
76 "resetModules": true,
77 "resetMocks": true
78 },
79 "babel": {
80 "plugins": [
81 "transform-flow-strip-types"
82 ]
83 },
84 "dependencies": {
85 "is-directory": "^0.3.1",
86 "js-yaml": "^3.9.0",
87 "parse-json": "^4.0.0"
88 },
89 "devDependencies": {
90 "babel-eslint": "^8.0.3",
91 "babel-plugin-transform-flow-strip-types": "^6.22.0",
92 "del": "^3.0.0",
93 "eslint": "^4.12.1",
94 "eslint-config-davidtheclark-node": "^0.2.2",
95 "eslint-config-prettier": "^2.9.0",
96 "eslint-plugin-flowtype": "^2.39.1",
97 "eslint-plugin-node": "^5.2.1",
98 "flow-bin": "^0.68.0",
99 "flow-remove-types": "^1.2.3",
100 "husky": "^0.14.3",
101 "jest": "^21.2.1",
102 "lint-staged": "^6.0.0",
103 "make-dir": "^1.2.0",
104 "parent-module": "^0.1.0",
105 "prettier": "^1.8.2",
106 "remark-cli": "^5.0.0",
107 "remark-preset-davidtheclark": "^0.7.0"
108 },
109 "engines": {
110 "node": ">=4"
111 }
112}