Skip to content

Commit

Permalink
rollup-plugin-copy 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter committed Jul 12, 2019
1 parent 00a3c60 commit b71ce68
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 13 deletions.
16 changes: 12 additions & 4 deletions config/rollup.main-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ const ESModules = [
plugins: [
removeWorkerWhitespace(),
copy({
targets: ['config/dist-packaging/debug/package.json'],
outputFolder: 'dist/debug',
targets: [
{
src: 'config/dist-packaging/debug/package.json',
dest: 'dist/debug',
},
],
}),
replace({
DEBUG_ENABLED: true,
Expand All @@ -74,8 +78,12 @@ const ESModules = [
plugins: [
removeWorkerWhitespace(),
copy({
targets: ['config/dist-packaging/amp/package.json'],
outputFolder: 'dist/amp',
targets: [
{
src: 'config/dist-packaging/amp/package.json',
dest: 'dist/amp',
},
],
}),
replace({
DEBUG_ENABLED: true,
Expand Down
32 changes: 24 additions & 8 deletions config/rollup.worker-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ const ESModules = [
},
plugins: [
copy({
targets: ['config/dist-packaging/worker/package.json'],
outputFolder: 'dist/worker',
targets: [
{
src: 'config/dist-packaging/worker/package.json',
dest: 'dist/worker',
},
],
}),
replace({
DEBUG_ENABLED: false,
Expand All @@ -65,8 +69,12 @@ const ESModules = [
},
plugins: [
copy({
targets: ['config/dist-packaging/debug/worker/package.json'],
outputFolder: 'dist/debug/worker',
targets: [
{
src: 'config/dist-packaging/debug/worker/package.json',
dest: 'dist/debug/worker',
},
],
}),
replace({
DEBUG_ENABLED: false,
Expand All @@ -87,8 +95,12 @@ const ESModules = [
},
plugins: [
copy({
targets: ['config/dist-packaging/amp/worker/package.json'],
outputFolder: 'dist/amp/worker',
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
replace({
DEBUG_ENABLED: true,
Expand All @@ -109,8 +121,12 @@ const ESModules = [
},
plugins: [
copy({
targets: ['config/dist-packaging/amp/worker/package.json'],
outputFolder: 'dist/amp/worker',
targets: [
{
src: 'config/dist-packaging/amp/worker/package.json',
dest: 'dist/amp/worker',
},
],
}),
replace({
DEBUG_ENABLED: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"rimraf": "2.6.3",
"rollup": "1.16.7",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-copy": "2.0.1",
"rollup-plugin-copy": "3.0.0",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-terser": "5.1.1",
"sinon": "7.3.2",
Expand Down

0 comments on commit b71ce68

Please sign in to comment.