Skip to content

Commit ced3890

Browse files
committed
2 parents d7acfa0 + 9bc7f0c commit ced3890

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
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: 12 additions & 6 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": [
@@ -43,14 +48,15 @@
4348
"changeset:version": "changeset version",
4449
"codestyle": "prettier . --write",
4550
"dev": "microbundle watch",
46-
"lint": "npm-run-all -p lint:*",
51+
"lint": "npm-run-all --parallel lint:*",
4752
"lint:markdownlint": "markdownlint -c .config/.markdown-lint.yml **/*.md",
4853
"lint:xo": "xo",
54+
"postbuild": "cp dist/index.d.ts dist/index.d.cts",
4955
"prepare": "husky",
5056
"prepublishOnly": "npm run build",
5157
"pretest:packing": "npm run build",
5258
"serve": "http-server -p 3000 -o examples",
53-
"test": "npm-run-all -p test:jest test:packing",
59+
"test": "npm-run-all --sequential test:*",
5460
"test:jest": "jest --testEnvironment=jsdom",
5561
"test:jest:watch": "jest --testEnvironment=jsdom --watch",
5662
"test:packing": "publint"

0 commit comments

Comments
 (0)