Skip to content

Commit ab26592

Browse files
committed
chore: add lint-staged script for package json formatting
1 parent e062891 commit ab26592

File tree

1 file changed

+68
-65
lines changed

1 file changed

+68
-65
lines changed

package.json

Lines changed: 68 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,13 @@
22
"name": "@dash-ui/mq",
33
"version": "1.0.0-alpha.3",
44
"description": "A utility function for adding reusable media queries and breakpoints to @dash-ui styles",
5-
"keywords": [
6-
"mq",
7-
"dash",
8-
"dash ui",
9-
"dash ui media queries",
10-
"dash ui breakpoints",
11-
"dash media queries",
12-
"dash breakpoints"
13-
],
14-
"homepage": "https://github.com/dash-ui/mq#readme",
15-
"bugs": "https://github.com/dash-ui/mq/issues",
16-
"repository": "github:dash-ui/mq",
175
"license": "MIT",
186
"author": "Jared Lunde <[email protected]> (https://jaredlunde.com/)",
19-
"sideEffects": false,
20-
"exports": {
21-
".": {
22-
"browser": "./dist/module/index.js",
23-
"import": "./dist/esm/index.mjs",
24-
"require": "./dist/main/index.js",
25-
"umd": "./dist/umd/dash-mq.js",
26-
"source": "./src/index.ts",
27-
"types": "./types/index.d.ts",
28-
"default": "./dist/main/index.js"
29-
},
30-
"./package.json": "./package.json",
31-
"./": "./"
32-
},
7+
"homepage": "https://github.com/dash-ui/mq#readme",
8+
"repository": "github:dash-ui/mq",
9+
"bugs": "https://github.com/dash-ui/mq/issues",
3310
"main": "dist/main/index.js",
34-
"unpkg": "dist/umd/dash-mq.js",
3511
"module": "dist/module/index.js",
36-
"source": "src/index.ts",
37-
"types": "types/index.d.ts",
3812
"files": [
3913
"/dist",
4014
"/src",
@@ -50,25 +24,49 @@
5024
"test": "jest",
5125
"validate": "lundle check-types && pnpm run lint && jest --coverage"
5226
},
53-
"commitlint": {
54-
"extends": [
55-
"@commitlint/config-conventional"
56-
]
57-
},
58-
"lint-staged": {
59-
"**/*.{ts,js}": [
60-
"eslint --ext .ts,.js --fix",
61-
"prettier --write"
62-
],
63-
"**/*.{md,yml,json}": [
64-
"prettier --write"
65-
]
66-
},
6727
"config": {
6828
"commitizen": {
6929
"path": "./node_modules/cz-conventional-changelog"
7030
}
7131
},
32+
"sideEffects": false,
33+
"types": "types/index.d.ts",
34+
"peerDependencies": {
35+
"@dash-ui/styles": ">=1.0.0-alpha.1"
36+
},
37+
"devDependencies": {
38+
"@commitlint/cli": "latest",
39+
"@commitlint/config-conventional": "latest",
40+
"@dash-ui/styles": "^1.0.0-alpha.1",
41+
"@semantic-release/changelog": "^6.0.0",
42+
"@semantic-release/git": "^10.0.0",
43+
"@swc-node/core": "^1.6.0",
44+
"@swc-node/jest": "^1.3.2",
45+
"@types/jest": "latest",
46+
"cz-conventional-changelog": "latest",
47+
"eslint": "latest",
48+
"eslint-config-lunde": "latest",
49+
"husky": "latest",
50+
"jest": "latest",
51+
"lint-staged": "latest",
52+
"lundle": "latest",
53+
"prettier": "latest",
54+
"typescript": "latest"
55+
},
56+
"keywords": [
57+
"dash",
58+
"dash breakpoints",
59+
"dash media queries",
60+
"dash ui",
61+
"dash ui breakpoints",
62+
"dash ui media queries",
63+
"mq"
64+
],
65+
"commitlint": {
66+
"extends": [
67+
"@commitlint/config-conventional"
68+
]
69+
},
7270
"eslintConfig": {
7371
"extends": [
7472
"lunde"
@@ -82,6 +80,19 @@
8280
"test",
8381
"*.config.js"
8482
],
83+
"exports": {
84+
".": {
85+
"browser": "./dist/module/index.js",
86+
"import": "./dist/esm/index.mjs",
87+
"require": "./dist/main/index.js",
88+
"umd": "./dist/umd/dash-mq.js",
89+
"source": "./src/index.ts",
90+
"types": "./types/index.d.ts",
91+
"default": "./dist/main/index.js"
92+
},
93+
"./package.json": "./package.json",
94+
"./": "./"
95+
},
8596
"jest": {
8697
"collectCoverageFrom": [
8798
"**/src/**/*.ts"
@@ -107,27 +118,17 @@
107118
]
108119
}
109120
},
110-
"devDependencies": {
111-
"@commitlint/cli": "latest",
112-
"@commitlint/config-conventional": "latest",
113-
"@dash-ui/styles": "^1.0.0-alpha.1",
114-
"@semantic-release/changelog": "^6.0.0",
115-
"@semantic-release/git": "^10.0.0",
116-
"@swc-node/core": "^1.6.0",
117-
"@swc-node/jest": "^1.3.2",
118-
"@types/jest": "latest",
119-
"cz-conventional-changelog": "latest",
120-
"eslint": "latest",
121-
"eslint-config-lunde": "latest",
122-
"husky": "latest",
123-
"jest": "latest",
124-
"lint-staged": "latest",
125-
"lundle": "latest",
126-
"prettier": "latest",
127-
"typescript": "latest"
128-
},
129-
"peerDependencies": {
130-
"@dash-ui/styles": ">=1.0.0-alpha.1"
121+
"lint-staged": {
122+
"package.json": [
123+
"pnpx -y prettier-package-json --write"
124+
],
125+
"**/*.{ts,js}": [
126+
"eslint --ext .ts,.js --fix",
127+
"prettier --write"
128+
],
129+
"**/*.{md,yml,json}": [
130+
"prettier --write"
131+
]
131132
},
132133
"release": {
133134
"branches": [
@@ -159,5 +160,7 @@
159160
],
160161
"@semantic-release/github"
161162
]
162-
}
163+
},
164+
"source": "src/index.ts",
165+
"unpkg": "dist/umd/dash-mq.js"
163166
}

0 commit comments

Comments
 (0)