|
4 | 4 | "description": "Use the @extend at-rule and functional selectors in CSS", |
5 | 5 | "author": "Jonathan Neal <[email protected]>", |
6 | 6 | "license": "CC0-1.0", |
7 | | - "repository": "csstools/postcss-extend-rule", |
| 7 | + "repository": { |
| 8 | + "type": "git", |
| 9 | + "url": "https://github.com/csstools/postcss-extend-rule.git" |
| 10 | + }, |
8 | 11 | "homepage": "https://github.com/csstools/postcss-extend-rule#readme", |
9 | 12 | "bugs": "https://github.com/csstools/postcss-extend-rule/issues", |
10 | | - "main": "index.js", |
11 | | - "module": "index.mjs", |
| 13 | + "main": "dist/index.cjs", |
| 14 | + "module": "dist/index.mjs", |
| 15 | + "exports": { |
| 16 | + ".": { |
| 17 | + "import": "./dist/index.mjs", |
| 18 | + "require": "./dist/index.cjs", |
| 19 | + "default": "./dist/index.mjs" |
| 20 | + } |
| 21 | + }, |
12 | 22 | "files": [ |
13 | | - "index.js", |
14 | | - "index.js.map", |
15 | | - "index.mjs", |
16 | | - "index.mjs.map" |
| 23 | + "CHANGELOG.md", |
| 24 | + "LICENSE.md", |
| 25 | + "README.md", |
| 26 | + "dist" |
17 | 27 | ], |
18 | 28 | "scripts": { |
19 | 29 | "build": "rollup --config .rollup.js --silent", |
20 | | - "prepublishOnly": "npm test", |
21 | | - "pretest:tape": "npm run build", |
22 | | - "test": "npm run test:js && npm run test:tape", |
23 | | - "test:js": "eslint src/{*,**/*}.js --cache --ignore-path .gitignore --quiet", |
| 30 | + "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", |
| 31 | + "prepublishOnly": "npm run clean && npm run build && npm run test", |
| 32 | + "test": "npm run lint && npm run test:tape", |
| 33 | + "lint": "eslint src/{*,**/*}.js --cache --ignore-path .gitignore --quiet", |
24 | 34 | "test:tape": "postcss-tape" |
25 | 35 | }, |
26 | 36 | "engines": { |
27 | 37 | "node": "^12 || ^14 || >=16" |
28 | 38 | }, |
29 | 39 | "dependencies": { |
30 | | - "postcss-nesting": "^10.1.2", |
31 | | - "postcss-tape": "^6.0.1" |
| 40 | + "postcss-nesting": "^10.1.2" |
32 | 41 | }, |
33 | 42 | "devDependencies": { |
34 | | - "@babel/core": "^7.16.12", |
| 43 | + "@babel/core": "^7.17.2", |
| 44 | + "@babel/eslint-parser": "^7.17.0", |
35 | 45 | "@babel/preset-env": "^7.16.11", |
36 | | - "@babel/eslint-parser": "^7.16.5", |
37 | 46 | "eslint": "^8.8.0", |
38 | | - "postcss": "^8.4.5", |
39 | | - "pre-commit": "^1.2.2", |
40 | | - "rollup": "^2.66.1", |
| 47 | + "postcss": "^8.4.6", |
| 48 | + "postcss-tape": "^6.0.1", |
| 49 | + "rollup": "^2.67.2", |
41 | 50 | "rollup-plugin-babel": "^4.4.0" |
42 | 51 | }, |
43 | 52 | "peerDependencies": { |
44 | | - "postcss": "^8.4.5" |
| 53 | + "postcss": "^8.4.6" |
45 | 54 | }, |
46 | 55 | "postcssConfig": { |
47 | 56 | "config": ".tape.js" |
48 | 57 | }, |
49 | 58 | "eslintConfig": { |
50 | 59 | "env": { |
51 | | - "browser": true, |
52 | 60 | "es6": true, |
53 | 61 | "node": true |
54 | 62 | }, |
55 | 63 | "extends": "eslint:recommended", |
56 | | - "parser": "@babel/eslint-parser", |
| 64 | + "rules": { |
| 65 | + "quotes": [ |
| 66 | + "error", |
| 67 | + "single" |
| 68 | + ], |
| 69 | + "comma-dangle": [ |
| 70 | + "error", |
| 71 | + "always-multiline" |
| 72 | + ], |
| 73 | + "semi": [ |
| 74 | + "error", |
| 75 | + "always" |
| 76 | + ], |
| 77 | + "curly": "error", |
| 78 | + "brace-style": "error", |
| 79 | + "indent": [ |
| 80 | + "error", |
| 81 | + "tab", |
| 82 | + { |
| 83 | + "SwitchCase": 1 |
| 84 | + } |
| 85 | + ], |
| 86 | + "radix": "error" |
| 87 | + }, |
57 | 88 | "parserOptions": { |
58 | | - "ecmaVersion": 2018, |
59 | | - "impliedStrict": true, |
60 | | - "sourceType": "module", |
61 | | - "requireConfigFile": false |
| 89 | + "ecmaVersion": 2020, |
| 90 | + "sourceType": "module" |
62 | 91 | }, |
63 | 92 | "root": true |
64 | 93 | }, |
|
0 commit comments