|
1 | 1 | { |
2 | 2 | "name": "postcss-normalize", |
3 | | - "version": "8.0.1", |
| 3 | + "version": "9.0.0", |
4 | 4 | "description": "Use the parts of normalize.css or sanitize.css you need from your browserslist", |
5 | 5 | "author": "Jonathan Neal <jonathantneal@hotmail.com>", |
6 | 6 | "license": "CC0-1.0", |
7 | 7 | "repository": "csstools/postcss-normalize", |
8 | 8 | "homepage": "https://github.com/csstools/postcss-normalize#readme", |
9 | 9 | "bugs": "https://github.com/csstools/postcss-normalize/issues", |
10 | | - "main": "index.cjs.js", |
11 | | - "module": "index.esm.mjs", |
| 10 | + "main": "dist/index.cjs.js", |
| 11 | + "module": "dist/index.esm.mjs", |
12 | 12 | "files": [ |
13 | | - "index.cjs.js", |
14 | | - "index.cjs.js.map", |
15 | | - "index.esm.mjs", |
16 | | - "index.esm.mjs.map" |
| 13 | + "dist" |
17 | 14 | ], |
18 | 15 | "scripts": { |
19 | | - "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", |
24 | | - "test:tape": "postcss-tape" |
| 16 | + "build": "npx rollup -c .rollup.js", |
| 17 | + "build:watch": "npx rollup -c .rollup.js --watch", |
| 18 | + "lint": "npx eslint --cache src", |
| 19 | + "lint:fix": "npx eslint --cache --fix", |
| 20 | + "pretest": "npm install && npm run build", |
| 21 | + "test": "npm run lint && npm run tape", |
| 22 | + "tape": "npx postcss-tape" |
25 | 23 | }, |
26 | 24 | "engines": { |
27 | | - "node": ">=8.0.0" |
| 25 | + "node": ">=10.0.0" |
28 | 26 | }, |
29 | 27 | "dependencies": { |
30 | | - "@csstools/normalize.css": "^10.1.0", |
31 | | - "browserslist": "^4.6.2", |
32 | | - "postcss": "^7.0.17", |
| 28 | + "@csstools/normalize.css": "*", |
| 29 | + "postcss": "^7.0.27", |
33 | 30 | "postcss-browser-comments": "^3.0.0", |
34 | | - "sanitize.css": "^10.0.0" |
| 31 | + "sanitize.css": "*" |
35 | 32 | }, |
36 | 33 | "devDependencies": { |
37 | | - "@babel/core": "^7.4.5", |
38 | | - "@babel/plugin-syntax-import-meta": "^7.2.0", |
39 | | - "@babel/preset-env": "^7.4.5", |
40 | | - "babel-eslint": "^10.0.1", |
41 | | - "eslint": "^5.16.0", |
| 34 | + "@babel/core": "^7.9.0", |
| 35 | + "@babel/plugin-syntax-import-meta": "^7.8.3", |
| 36 | + "@babel/preset-env": "^7.9.5", |
| 37 | + "babel-eslint": "^10.1.0", |
| 38 | + "eslint": "^6.8.0", |
42 | 39 | "postcss-import": "^12.0.1", |
43 | | - "postcss-tape": "^5.0.0", |
| 40 | + "postcss-tape": "^5.0.2", |
44 | 41 | "pre-commit": "^1.2.2", |
45 | | - "rollup": "^1.14.6", |
46 | | - "rollup-plugin-babel": "^4.3.2" |
| 42 | + "rollup": "^2.6.0", |
| 43 | + "rollup-plugin-babel": "^4.4.0" |
| 44 | + }, |
| 45 | + "babel": { |
| 46 | + "plugins": [ |
| 47 | + "@babel/plugin-syntax-import-meta" |
| 48 | + ], |
| 49 | + "presets": [ |
| 50 | + [ |
| 51 | + "@babel/env", |
| 52 | + { |
| 53 | + "targets": "maintained node versions" |
| 54 | + } |
| 55 | + ] |
| 56 | + ] |
47 | 57 | }, |
48 | 58 | "eslintConfig": { |
49 | 59 | "env": { |
50 | | - "browser": true, |
51 | 60 | "es6": true, |
52 | 61 | "node": true |
53 | 62 | }, |
54 | 63 | "extends": "eslint:recommended", |
55 | | - "parser": "babel-eslint", |
56 | | - "parserOptions": { |
57 | | - "ecmaVersion": 2018, |
58 | | - "impliedStrict": true, |
59 | | - "sourceType": "module" |
60 | | - }, |
61 | | - "root": true |
| 64 | + "parser": "babel-eslint" |
| 65 | + }, |
| 66 | + "rollup": { |
| 67 | + "input": "src/index.js", |
| 68 | + "plugins": [ |
| 69 | + "rollup-plugin-babel" |
| 70 | + ], |
| 71 | + "output": [ |
| 72 | + { |
| 73 | + "file": "dist/index.cjs.js", |
| 74 | + "format": "cjs" |
| 75 | + }, |
| 76 | + { |
| 77 | + "file": "dist/index.esm.js", |
| 78 | + "format": "esm" |
| 79 | + } |
| 80 | + ] |
62 | 81 | }, |
63 | 82 | "keywords": [ |
64 | 83 | "postcss", |
|
0 commit comments