|
7 | 7 | "repository": "csstools/postcss-env-function", |
8 | 8 | "homepage": "https://github.com/csstools/postcss-env-function#readme", |
9 | 9 | "bugs": "https://github.com/csstools/postcss-env-function/issues", |
10 | | - "main": "index.cjs.js", |
11 | | - "module": "index.esm.mjs", |
| 10 | + "main": "dist/index.js", |
| 11 | + "module": "dist/index.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 | | - "prepublishOnly": "npm test", |
20 | | - "pretest:tape": "rollup -c .rollup.js --silent", |
21 | | - "test": "npm run test:js && npm run test:tape", |
22 | | - "test:js": "eslint src/{*,**/*}.js --cache --ignore-path .gitignore --quiet", |
23 | | - "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", |
| 23 | + "prepublishOnly": "npm test" |
24 | 24 | }, |
25 | 25 | "engines": { |
26 | 26 | "node": ">=8.0.0" |
27 | 27 | }, |
28 | 28 | "dependencies": { |
29 | | - "postcss": "^7.0.17", |
30 | | - "postcss-values-parser": "^3.0.4" |
| 29 | + "postcss": "^7.0.27", |
| 30 | + "postcss-values-parser": "^3.2.0" |
31 | 31 | }, |
32 | 32 | "devDependencies": { |
33 | | - "@babel/core": "^7.4.5", |
34 | | - "@babel/plugin-syntax-dynamic-import": "^7.2.0", |
35 | | - "@babel/preset-env": "^7.4.5", |
36 | | - "babel-eslint": "^10.0.1", |
37 | | - "eslint": "^5.16.0", |
38 | | - "postcss-tape": "^5.0.0", |
| 33 | + "@babel/core": "^7.9.0", |
| 34 | + "@babel/preset-env": "^7.9.5", |
| 35 | + "babel-eslint": "^10.1.0", |
| 36 | + "eslint": "^6.8.0", |
| 37 | + "postcss-tape": "^5.0.2", |
39 | 38 | "pre-commit": "^1.2.2", |
40 | | - "rollup": "^1.15.3", |
41 | | - "rollup-plugin-babel": "^4.3.2" |
| 39 | + "rollup": "^2.7.2", |
| 40 | + "rollup-plugin-babel": "^4.4.0" |
| 41 | + }, |
| 42 | + "babel": { |
| 43 | + "presets": [ |
| 44 | + [ |
| 45 | + "@babel/env", |
| 46 | + { |
| 47 | + "targets": "maintained node versions" |
| 48 | + } |
| 49 | + ] |
| 50 | + ] |
42 | 51 | }, |
43 | 52 | "eslintConfig": { |
44 | 53 | "env": { |
45 | | - "browser": true, |
46 | 54 | "es6": true, |
47 | 55 | "node": true |
48 | 56 | }, |
49 | 57 | "extends": "eslint:recommended", |
50 | | - "parser": "babel-eslint", |
51 | | - "parserOptions": { |
52 | | - "ecmaVersion": 2018, |
53 | | - "impliedStrict": true, |
54 | | - "sourceType": "module" |
55 | | - }, |
56 | | - "root": true |
| 58 | + "parser": "babel-eslint" |
| 59 | + }, |
| 60 | + "rollup": { |
| 61 | + "input": "src/index.js", |
| 62 | + "plugins": [ |
| 63 | + "rollup-plugin-babel" |
| 64 | + ], |
| 65 | + "output": [ |
| 66 | + { |
| 67 | + "file": "dist/index.js", |
| 68 | + "format": "cjs" |
| 69 | + }, |
| 70 | + { |
| 71 | + "file": "dist/index.mjs", |
| 72 | + "format": "esm" |
| 73 | + } |
| 74 | + ] |
57 | 75 | }, |
58 | 76 | "keywords": [ |
59 | 77 | "postcss", |
|
0 commit comments