configure core-web to work with github packages

This commit is contained in:
nklhrstv 2020-03-24 11:32:28 +02:00
parent 365bd5cbbc
commit 8fe9704adf
5 changed files with 11 additions and 7 deletions

1
.npmrc Normal file
View file

@ -0,0 +1 @@
@stremio:registry=https://npm.pkg.github.com

View file

@ -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"
},

View file

@ -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;

View file

@ -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' }
]),

View file

@ -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"