UNPKG
postinstall
Version:
latest (0.11.2)
0.11.2
0.11.1
0.11.0
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.0
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.2
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
Deploy files from modules after npm install
github.com/kapouer/postinstall
kapouer/postinstall
postinstall
/
commands
/
copy.js
9 lines
(6 loc)
•
175 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
copy =
require
(
"@danieldietrich/copy"
);
module
.
exports
=
function
(
inputs, output
) {
return
Promise
.
all
(inputs.
map
(
(
input
) =>
{
return
copy
(input, output); })); };