Skip to content

Commit

Permalink
Build create-wmr using the same Rollup config as wmr.
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Feb 23, 2021
1 parent f022159 commit aa7ffb3
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1,283 deletions.
3 changes: 1 addition & 2 deletions packages/create-wmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./dist/index.js",
"bin": "./dist/index.js",
"scripts": {
"prepare": "microbundle --target node -f cjs --no-sourcemap --compress --external none src/index.js"
"prepare": "rollup -c ../wmr/rollup.config.js -i src/index.js -o dist/index.js"
},
"author": "The Preact Authors (https://preactjs.com)",
"repository": "preactjs/wmr",
Expand All @@ -17,7 +17,6 @@
"devDependencies": {
"@types/node": "^14.14.8",
"kleur": "^4.1.3",
"microbundle": "^0.13.0",
"ora": "^5.1.0",
"pkg-install": "^1.0.0",
"sade": "^1.7.4"
Expand Down
4 changes: 4 additions & 0 deletions packages/wmr/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Note:
* This Rollup config is used to build both the `wmr` and `create-wmr` packages.
*/
import { resolve, sep } from 'path';
import shebangPlugin from 'rollup-plugin-preserve-shebang';
import commonjs from '@rollup/plugin-commonjs';
Expand Down
Loading

0 comments on commit aa7ffb3

Please sign in to comment.