Skip to content

Commit 9bc7f0c

Browse files
authored
fix: publint feedback (#3)
* fix: publint feedback * Create nasty-experts-relate.md * refactor: publint feedback * refactor: optimizations * refactor: further optimizations
1 parent 4d15289 commit 9bc7f0c

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.changeset/nasty-experts-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"css-if-polyfill": patch
3+
---
4+
5+
fix: `publint` feedback

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
npm run lint
3434
3535
- name: Run tests with coverage
36-
run: npm test -- --coverage --coverageReporters=lcov --coverageReporters=json
36+
run: npm run test:jest -- --coverage --coverageReporters=lcov --coverageReporters=json
3737

3838
- name: Check build
3939
run: npm run build

package.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "A JavaScript polyfill for CSS if() functionality with style(), media(), and supports() functions",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/mfranzke/css-if-polyfill.git"
8+
"url": "git+https://github.com/mfranzke/css-if-polyfill.git"
99
},
1010
"homepage": "https://github.com/mfranzke/css-if-polyfill#readme",
1111
"bugs": {
@@ -18,9 +18,14 @@
1818
"module": "dist/index.modern.js",
1919
"exports": {
2020
".": {
21-
"types": "./dist/index.d.ts",
22-
"require": "./dist/index.cjs",
23-
"import": "./dist/index.modern.js"
21+
"require": {
22+
"types": "./dist/index.d.cts",
23+
"default": "./dist/index.cjs"
24+
},
25+
"import": {
26+
"types": "./dist/index.d.ts",
27+
"default": "./dist/index.modern.js"
28+
}
2429
}
2530
},
2631
"files": [
@@ -41,16 +46,18 @@
4146
"build": "microbundle",
4247
"codestyle": "prettier . --write",
4348
"dev": "microbundle watch",
44-
"lint": "npm-run-all -p lint:*",
49+
"lint": "npm-run-all --parallel lint:*",
4550
"lint:markdownlint": "markdownlint -c .config/.markdown-lint.yml **/*.md",
4651
"lint:xo": "xo",
52+
"postbuild": "cp dist/index.d.ts dist/index.d.cts",
4753
"prepare": "husky",
4854
"prepublishOnly": "npm run build",
55+
"pretest:packing": "npm run build",
4956
"serve": "http-server -p 3000 -o examples",
50-
"test": "npm-run-all -p test:jest test:packing",
57+
"test": "npm-run-all --sequential test:*",
5158
"test:jest": "jest --testEnvironment=jsdom",
52-
"test:packing": "publint",
53-
"test:watch": "jest --testEnvironment=jsdom --watch"
59+
"test:jest:watch": "jest --testEnvironment=jsdom --watch",
60+
"test:packing": "publint"
5461
},
5562
"devDependencies": {
5663
"@babel/core": "^7.28.0",

0 commit comments

Comments
 (0)