Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add "prepare" script for github installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Feb 20, 2018
1 parent 902c848 commit 801f9d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"pretest": "npm run build",
"test": "mocha",
"posttest": "eslint src test/*.js",
"prepublish": "npm test",
"lint": "eslint src"
"lint": "eslint src",
"prepublishOnly": "npm test",
"prepare": "npm run build"
},
"files": [
"src",
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import buble from 'rollup-plugin-buble';

export default {
entry: 'src/index.js',
input: 'src/index.js',
plugins: [ buble() ],
external: [ 'path', 'fs', 'builtin-modules', 'resolve', 'browser-resolve', 'is-module' ],
targets: [
{ dest: 'dist/rollup-plugin-node-resolve.cjs.js', format: 'cjs' },
{ dest: 'dist/rollup-plugin-node-resolve.es.js', format: 'es' }
output: [
{ file: 'dist/rollup-plugin-node-resolve.cjs.js', format: 'cjs' },
{ file: 'dist/rollup-plugin-node-resolve.es.js', format: 'es' }
]
};

0 comments on commit 801f9d5

Please sign in to comment.