|
5 | 5 | "description": "A JavaScript polyfill for CSS if() functionality with style(), media(), and supports() functions", |
6 | 6 | "repository": { |
7 | 7 | "type": "git", |
8 | | - "url": "https://github.com/mfranzke/css-if-polyfill.git" |
| 8 | + "url": "git+https://github.com/mfranzke/css-if-polyfill.git" |
9 | 9 | }, |
10 | 10 | "homepage": "https://github.com/mfranzke/css-if-polyfill#readme", |
11 | 11 | "bugs": { |
|
18 | 18 | "module": "dist/index.modern.js", |
19 | 19 | "exports": { |
20 | 20 | ".": { |
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 | + } |
24 | 29 | } |
25 | 30 | }, |
26 | 31 | "files": [ |
|
41 | 46 | "build": "microbundle", |
42 | 47 | "codestyle": "prettier . --write", |
43 | 48 | "dev": "microbundle watch", |
44 | | - "lint": "npm-run-all -p lint:*", |
| 49 | + "lint": "npm-run-all --parallel lint:*", |
45 | 50 | "lint:markdownlint": "markdownlint -c .config/.markdown-lint.yml **/*.md", |
46 | 51 | "lint:xo": "xo", |
| 52 | + "postbuild": "cp dist/index.d.ts dist/index.d.cts", |
47 | 53 | "prepare": "husky", |
48 | 54 | "prepublishOnly": "npm run build", |
| 55 | + "pretest:packing": "npm run build", |
49 | 56 | "serve": "http-server -p 3000 -o examples", |
50 | | - "test": "npm-run-all -p test:jest test:packing", |
| 57 | + "test": "npm-run-all --sequential test:*", |
51 | 58 | "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" |
54 | 61 | }, |
55 | 62 | "devDependencies": { |
56 | 63 | "@babel/core": "^7.28.0", |
|
0 commit comments