Skip to content

Commit ed898dd

Browse files
committed
Emergency fix: add copy-webpack-plugin back for sse-hooks.
1 parent 4a4bdce commit ed898dd

File tree

3 files changed

+115
-2
lines changed

3 files changed

+115
-2
lines changed

packages/app/config/webpack.prod.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
77
const normalizeName = require('webpack/lib/optimize/SplitChunksPlugin')
88
.normalizeName;
99
const ManifestPlugin = require('webpack-manifest-plugin');
10+
const CopyWebpackPlugin = require('copy-webpack-plugin');
1011
const childProcess = require('child_process');
1112
const commonConfig = require('./webpack.common');
1213

@@ -301,5 +302,11 @@ module.exports = merge(commonConfig, {
301302
fileName: 'file-manifest.json',
302303
publicPath: commonConfig.output.publicPath,
303304
}),
305+
new CopyWebpackPlugin([
306+
{
307+
from: '../sse-hooks/dist',
308+
to: 'public/sse-hooks',
309+
},
310+
]),
304311
].filter(Boolean),
305312
});

packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"chalk": "1.1.3",
7272
"codesandbox-deps": "^0.1.1",
7373
"connect-history-api-fallback": "1.3.0",
74+
"copy-webpack-plugin": "^5.0.3",
7475
"cors": "^2.8.4",
7576
"cross-env": "^5.0.5",
7677
"cross-spawn": "^5.0.1",

yarn.lock

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5836,6 +5836,11 @@ bluebird@^3.5.4:
58365836
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.4.tgz#d6cc661595de30d5b3af5fcedd3c0b3ef6ec5714"
58375837
integrity sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw==
58385838

5839+
bluebird@^3.5.5:
5840+
version "3.5.5"
5841+
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f"
5842+
integrity sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==
5843+
58395844
58405845
version "0.0.3"
58415846
resolved "https://registry.yarnpkg.com/bmp-js/-/bmp-js-0.0.3.tgz#64113e9c7cf1202b376ed607bf30626ebe57b18a"
@@ -6261,6 +6266,26 @@ cacache@^11.0.2:
62616266
unique-filename "^1.1.0"
62626267
y18n "^4.0.0"
62636268

6269+
cacache@^11.3.2:
6270+
version "11.3.3"
6271+
resolved "https://registry.yarnpkg.com/cacache/-/cacache-11.3.3.tgz#8bd29df8c6a718a6ebd2d010da4d7972ae3bbadc"
6272+
integrity sha512-p8WcneCytvzPxhDvYp31PD039vi77I12W+/KfR9S8AZbaiARFBCpsPJS+9uhWfeBfeAtW7o/4vt3MUqLkbY6nA==
6273+
dependencies:
6274+
bluebird "^3.5.5"
6275+
chownr "^1.1.1"
6276+
figgy-pudding "^3.5.1"
6277+
glob "^7.1.4"
6278+
graceful-fs "^4.1.15"
6279+
lru-cache "^5.1.1"
6280+
mississippi "^3.0.0"
6281+
mkdirp "^0.5.1"
6282+
move-concurrently "^1.0.1"
6283+
promise-inflight "^1.0.1"
6284+
rimraf "^2.6.3"
6285+
ssri "^6.0.1"
6286+
unique-filename "^1.1.1"
6287+
y18n "^4.0.0"
6288+
62646289
cache-base@^1.0.1:
62656290
version "1.0.1"
62666291
resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
@@ -7638,6 +7663,24 @@ copy-to-clipboard@^3:
76387663
dependencies:
76397664
toggle-selection "^1.0.3"
76407665

7666+
copy-webpack-plugin@^5.0.3:
7667+
version "5.0.3"
7668+
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-5.0.3.tgz#2179e3c8fd69f13afe74da338896f1f01a875b5c"
7669+
integrity sha512-PlZRs9CUMnAVylZq+vg2Juew662jWtwOXOqH4lbQD9ZFhRG9R7tVStOgHt21CBGVq7k5yIJaz8TXDLSjV+Lj8Q==
7670+
dependencies:
7671+
cacache "^11.3.2"
7672+
find-cache-dir "^2.1.0"
7673+
glob-parent "^3.1.0"
7674+
globby "^7.1.1"
7675+
is-glob "^4.0.1"
7676+
loader-utils "^1.2.3"
7677+
minimatch "^3.0.4"
7678+
normalize-path "^3.0.0"
7679+
p-limit "^2.2.0"
7680+
schema-utils "^1.0.0"
7681+
serialize-javascript "^1.7.0"
7682+
webpack-log "^2.0.0"
7683+
76417684
copyfiles@^1.2.0:
76427685
version "1.2.0"
76437686
resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-1.2.0.tgz#a8da3ac41aa2220ae29bd3c58b6984294f2c593c"
@@ -10617,6 +10660,15 @@ find-cache-dir@^1.0.0:
1061710660
make-dir "^1.0.0"
1061810661
pkg-dir "^2.0.0"
1061910662

10663+
find-cache-dir@^2.1.0:
10664+
version "2.1.0"
10665+
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7"
10666+
integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==
10667+
dependencies:
10668+
commondir "^1.0.1"
10669+
make-dir "^2.0.0"
10670+
pkg-dir "^3.0.0"
10671+
1062010672
find-index@^0.1.1:
1062110673
version "0.1.1"
1062210674
resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4"
@@ -11820,6 +11872,18 @@ glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, gl
1182011872
once "^1.3.0"
1182111873
path-is-absolute "^1.0.0"
1182211874

11875+
glob@^7.1.4:
11876+
version "7.1.4"
11877+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255"
11878+
integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==
11879+
dependencies:
11880+
fs.realpath "^1.0.0"
11881+
inflight "^1.0.4"
11882+
inherits "2"
11883+
minimatch "^3.0.4"
11884+
once "^1.3.0"
11885+
path-is-absolute "^1.0.0"
11886+
1182311887
glob@~3.1.21:
1182411888
version "3.1.21"
1182511889
resolved "https://registry.yarnpkg.com/glob/-/glob-3.1.21.tgz#d29e0a055dea5138f4d07ed40e8982e83c2066cd"
@@ -13633,6 +13697,13 @@ is-glob@^4.0.0:
1363313697
dependencies:
1363413698
is-extglob "^2.1.1"
1363513699

13700+
is-glob@^4.0.1:
13701+
version "4.0.1"
13702+
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
13703+
integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==
13704+
dependencies:
13705+
is-extglob "^2.1.1"
13706+
1363613707
is-gzip@^1.0.0:
1363713708
version "1.0.0"
1363813709
resolved "https://registry.yarnpkg.com/is-gzip/-/is-gzip-1.0.0.tgz#6ca8b07b99c77998025900e555ced8ed80879a83"
@@ -15919,7 +15990,7 @@ [email protected], loader-utils@^1.0.0, loader-utils@^1.0.2, loader-utils@^1.1.
1591915990
emojis-list "^2.0.0"
1592015991
json5 "^0.5.0"
1592115992

15922-
[email protected], loader-utils@^1.0.1:
15993+
[email protected], loader-utils@^1.0.1, loader-utils@^1.2.3:
1592315994
version "1.2.3"
1592415995
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7"
1592515996
integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==
@@ -16354,6 +16425,13 @@ lru-cache@^4.0.1, lru-cache@^4.1.1, lru-cache@^4.1.3:
1635416425
pseudomap "^1.0.2"
1635516426
yallist "^2.1.2"
1635616427

16428+
lru-cache@^5.1.1:
16429+
version "5.1.1"
16430+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
16431+
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
16432+
dependencies:
16433+
yallist "^3.0.2"
16434+
1635716435
ltcdr@^2.2.1:
1635816436
version "2.2.1"
1635916437
resolved "https://registry.yarnpkg.com/ltcdr/-/ltcdr-2.2.1.tgz#5ab87ad1d4c1dab8e8c08bbf037ee0c1902287cf"
@@ -16381,6 +16459,14 @@ make-dir@^1.0.0, make-dir@^1.3.0:
1638116459
dependencies:
1638216460
pify "^3.0.0"
1638316461

16462+
make-dir@^2.0.0:
16463+
version "2.1.0"
16464+
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
16465+
integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==
16466+
dependencies:
16467+
pify "^4.0.1"
16468+
semver "^5.6.0"
16469+
1638416470
make-error@^1.1.1, make-error@^1.3.4:
1638516471
version "1.3.4"
1638616472
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.4.tgz#19978ed575f9e9545d2ff8c13e33b5d18a67d535"
@@ -18214,6 +18300,13 @@ p-limit@^2.0.0:
1821418300
dependencies:
1821518301
p-try "^2.0.0"
1821618302

18303+
p-limit@^2.2.0:
18304+
version "2.2.0"
18305+
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2"
18306+
integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==
18307+
dependencies:
18308+
p-try "^2.0.0"
18309+
1821718310
p-locate@^2.0.0:
1821818311
version "2.0.0"
1821918312
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
@@ -22277,6 +22370,11 @@ serialize-javascript@^1.4.0:
2227722370
version "1.5.0"
2227822371
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.5.0.tgz#1aa336162c88a890ddad5384baebc93a655161fe"
2227922372

22373+
serialize-javascript@^1.7.0:
22374+
version "1.7.0"
22375+
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65"
22376+
integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA==
22377+
2228022378
serve-favicon@^2.4.5:
2228122379
version "2.5.0"
2228222380
resolved "https://registry.yarnpkg.com/serve-favicon/-/serve-favicon-2.5.0.tgz#935d240cdfe0f5805307fdfe967d88942a2cbcf0"
@@ -22945,7 +23043,7 @@ ssri@^5.2.4:
2294523043
dependencies:
2294623044
safe-buffer "^5.1.1"
2294723045

22948-
ssri@^6.0.0:
23046+
ssri@^6.0.0, ssri@^6.0.1:
2294923047
version "6.0.1"
2295023048
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
2295123049
dependencies:
@@ -24632,6 +24730,13 @@ unique-filename@^1.1.0:
2463224730
dependencies:
2463324731
unique-slug "^2.0.0"
2463424732

24733+
unique-filename@^1.1.1:
24734+
version "1.1.1"
24735+
resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230"
24736+
integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==
24737+
dependencies:
24738+
unique-slug "^2.0.0"
24739+
2463524740
unique-slug@^2.0.0:
2463624741
version "2.0.0"
2463724742
resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.0.tgz#db6676e7c7cc0629878ff196097c78855ae9f4ab"

0 commit comments

Comments
 (0)