UNPKG

3.82 kBJSONView Raw
1{
2 "name": "cosmiconfig",
3 "version": "8.1.3",
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": "vitest run --coverage",
24 "test:watch": "vitest",
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/cosmiconfig/cosmiconfig.git"
50 },
51 "keywords": [
52 "load",
53 "configuration",
54 "config"
55 ],
56 "author": "Daniel Fischer <daniel@d-fischer.dev>",
57 "contributors": [
58 "David Clark <david.dave.clark@gmail.com>",
59 "Bogdan Chadkin <trysound@yandex.ru>",
60 "Suhas Karanth <sudo.suhas@gmail.com>"
61 ],
62 "funding": "https://github.com/sponsors/d-fischer",
63 "license": "MIT",
64 "bugs": {
65 "url": "https://github.com/cosmiconfig/cosmiconfig/issues"
66 },
67 "homepage": "https://github.com/cosmiconfig/cosmiconfig#readme",
68 "prettier": {
69 "trailingComma": "all",
70 "arrowParens": "always",
71 "singleQuote": true,
72 "printWidth": 80,
73 "tabWidth": 2
74 },
75 "babel": {
76 "presets": [
77 [
78 "@babel/preset-env",
79 {
80 "targets": {
81 "node": "14"
82 }
83 }
84 ],
85 "@babel/preset-typescript"
86 ]
87 },
88 "dependencies": {
89 "import-fresh": "^3.2.1",
90 "js-yaml": "^4.1.0",
91 "parse-json": "^5.0.0",
92 "path-type": "^4.0.0"
93 },
94 "devDependencies": {
95 "@babel/cli": "^7.10.4",
96 "@babel/core": "^7.10.4",
97 "@babel/preset-env": "^7.10.4",
98 "@babel/preset-typescript": "^7.10.4",
99 "@types/js-yaml": "^4.0.5",
100 "@types/node": "^14.0.22",
101 "@types/parse-json": "^4.0.0",
102 "@typescript-eslint/eslint-plugin": "^5.54.1",
103 "@typescript-eslint/parser": "^5.54.1",
104 "@vitest/coverage-istanbul": "^0.29.2",
105 "cross-env": "^7.0.2",
106 "del": "^5.1.0",
107 "del-cli": "^3.0.1",
108 "eslint": "^8.36.0",
109 "eslint-config-davidtheclark-node": "^0.2.2",
110 "eslint-config-prettier": "^6.11.0",
111 "eslint-import-resolver-typescript": "^3.5.3",
112 "eslint-plugin-import": "^2.22.0",
113 "eslint-plugin-node": "^11.1.0",
114 "eslint-plugin-vitest": "^0.0.54",
115 "husky": "^4.2.5",
116 "lint-staged": "^10.2.11",
117 "make-dir": "^3.1.0",
118 "parent-module": "^2.0.0",
119 "prettier": "^2.0.5",
120 "remark-preset-davidtheclark": "^0.12.0",
121 "typescript": "^4.9.5",
122 "vitest": "^0.29.2"
123 },
124 "engines": {
125 "node": ">=14"
126 }
127}