From 8fe9704adfef3784de5e90a50ca60263d94ea259 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Tue, 24 Mar 2020 11:32:28 +0200 Subject: [PATCH] configure core-web to work with github packages --- .npmrc | 1 + package.json | 2 +- src/services/Core/Core.js | 2 +- webpack.config.js | 2 +- yarn.lock | 11 +++++++---- 5 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..ab890481c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@stremio:registry=https://npm.pkg.github.com diff --git a/package.json b/package.json index 31607fa53..c633ce192 100755 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "@sentry/browser": "5.11.1", + "@stremio/stremio-core-web": "0.7.0", "a-color-picker": "1.2.1", "classnames": "2.2.6", "events": "1.1.1", @@ -29,7 +30,6 @@ "react-focus-lock": "2.2.1", "spatial-navigation-polyfill": "git+ssh://git@github.com/Stremio/spatial-navigation.git#381b4f37d138e66ae8ea025e240af3704245e5dc", "stremio-colors": "git+ssh://git@github.com/Stremio/stremio-colors.git#v3.0.0", - "stremio-core-web": "git+ssh://git@github.com/stremio/stremio-core-web.git#da5b37865004d0ae140518c4f276d1ed1a1483d9", "stremio-icons": "git+ssh://git@github.com/Stremio/stremio-icons.git#v2.0.1", "vtt.js": "0.13.0" }, diff --git a/src/services/Core/Core.js b/src/services/Core/Core.js index 03773ed8b..fadfa4e46 100644 --- a/src/services/Core/Core.js +++ b/src/services/Core/Core.js @@ -1,5 +1,5 @@ const EventEmitter = require('events'); -const { default: init, StremioCoreWeb } = require('stremio-core-web'); +const { default: init, StremioCoreWeb } = require('@stremio/stremio-core-web'); function Core() { let active = false; diff --git a/webpack.config.js b/webpack.config.js index 5bff2b026..4f2c6e6fe 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -140,7 +140,7 @@ module.exports = (env, argv) => ({ }), new webpack.ProgressPlugin(), new CopyWebpackPlugin([ - { from: 'node_modules/stremio-core-web/static', to: '' }, + { from: 'node_modules/@stremio/stremio-core-web/static', to: '' }, { from: 'images', to: 'images' }, { from: 'fonts', to: 'fonts' } ]), diff --git a/yarn.lock b/yarn.lock index 4e886b5ce..e81907d9d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1782,6 +1782,13 @@ telejson "^3.0.2" util-deprecate "^1.0.2" +"@stremio/stremio-core-web@0.7.0": + version "0.7.0" + resolved "https://npm.pkg.github.com/download/@stremio/stremio-core-web/0.7.0/e10e27197f239318b81f318bec9a4c87e28fc1431b0254d4fe751f9737cf2782#653e8859c01c88dd45f617669c70c13bf6be0339" + integrity sha512-fy5IVFRcpF873qKhRfH9E9I5CF9qPm6eerPDCZ8m3KUwowz8jCKUrJD7p4li5xHzavAxgG8xgEC4XiY2aoy+PQ== + dependencies: + "@babel/runtime" "7.8.7" + "@svgr/babel-plugin-add-jsx-attribute@^4.2.0": version "4.2.0" resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1" @@ -10731,10 +10738,6 @@ stream-shift@^1.0.0: version "3.0.0" resolved "git+ssh://git@github.com/Stremio/stremio-colors.git#897c9569a167b9f881af9f4b5433ae9644408be3" -"stremio-core-web@git+ssh://git@github.com/stremio/stremio-core-web.git#da5b37865004d0ae140518c4f276d1ed1a1483d9": - version "0.6.0" - resolved "git+ssh://git@github.com/stremio/stremio-core-web.git#da5b37865004d0ae140518c4f276d1ed1a1483d9" - "stremio-icons@git+ssh://git@github.com/Stremio/stremio-icons.git#v2.0.1": version "2.0.1" resolved "git+ssh://git@github.com/Stremio/stremio-icons.git#ec47f5c1a83e4adc352ec218a4c5159e2f03c8f3"