|
21 | 21 | "css-in-js"
|
22 | 22 | ],
|
23 | 23 | "engines": {},
|
| 24 | + "main": "./dist/css-vendor.cjs.js", |
| 25 | + "module": "./dist/css-vendor.esm.js", |
| 26 | + "files": [ |
| 27 | + "dist" |
| 28 | + ], |
24 | 29 | "scripts": {
|
25 | 30 | "all": "yarn lint && yarn test && yarn build",
|
26 |
| - "build": "yarn clean && yarn build:lib && yarn build:dist", |
27 |
| - "build:lib": "babel src --out-dir lib", |
28 |
| - "build:dist": "yarn build:dist:max && yarn build:dist:min", |
29 |
| - "build:dist:max": "cross-env webpack --mode=development src/index.js --output-filename=css-vendor.js", |
30 |
| - "build:dist:min": "cross-env webpack --mode=production src/index.js --output-filename=css-vendor.min.js", |
31 |
| - "clean": "rimraf {lib,dist,tmp}/*", |
| 31 | + "build": "yarn clean && yarn rollup -c", |
| 32 | + "clean": "rimraf {dist,tmp}/*", |
32 | 33 | "lint": "eslint ./src ./tests --fix",
|
33 | 34 | "lint:staged": "lint-staged",
|
34 | 35 | "test": "cross-env NODE_ENV=test karma start --single-run ",
|
|
37 | 38 | "prepublishOnly": "yarn all"
|
38 | 39 | },
|
39 | 40 | "license": "MIT",
|
40 |
| - "main": "./lib/index", |
41 | 41 | "devDependencies": {
|
42 | 42 | "@babel/core": "^7.2.2",
|
| 43 | + "@babel/plugin-transform-runtime": "^7.2.0", |
43 | 44 | "@babel/preset-env": "^7.2.3",
|
44 | 45 | "autoprefixer": "^9.3.1",
|
45 | 46 | "babel-cli": "^6.5.1",
|
|
76 | 77 | "postcss-js": "^2.0.0",
|
77 | 78 | "pre-commit": "^1.1.3",
|
78 | 79 | "rimraf": "^2.6.2",
|
| 80 | + "rollup": "^1.1.2", |
| 81 | + "rollup-plugin-babel": "^4.3.2", |
| 82 | + "rollup-plugin-node-resolve": "^4.0.0", |
| 83 | + "rollup-plugin-replace": "^2.1.0", |
| 84 | + "rollup-plugin-size-snapshot": "^0.8.0", |
| 85 | + "rollup-plugin-terser": "^4.0.3", |
79 | 86 | "webpack": "^4.15.1",
|
80 | 87 | "webpack-cli": "^3.0.8"
|
81 | 88 | },
|
82 | 89 | "dependencies": {
|
| 90 | + "@babel/runtime": "^7.3.1", |
83 | 91 | "is-in-browser": "^1.0.2"
|
84 | 92 | },
|
85 | 93 | "lint-staged": {
|
|
88 | 96 | "git add"
|
89 | 97 | ]
|
90 | 98 | },
|
91 |
| - "pre-commit": "lint:staged", |
92 |
| - "files": [ |
93 |
| - "dist", |
94 |
| - "lib" |
95 |
| - ] |
| 99 | + "pre-commit": "lint:staged" |
96 | 100 | }
|
0 commit comments