feat: ⚡ modified setup
This commit is contained in:
parent
fe4e2bfcd9
commit
f5dc4992fb
@ -9,7 +9,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
extensions: ['.tsx', '.ts', '.js', '.json'],
|
extensions: ['.tsx', '.ts', '.js', '.json'],
|
||||||
alias: {
|
alias: {
|
||||||
[pak.name]: path.join(__dirname, '../..', pak.source),
|
[pak.name]: path.join(__dirname, '..', pak.source),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -3,7 +3,7 @@ const escape = require('escape-string-regexp');
|
|||||||
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
const exclusionList = require('metro-config/src/defaults/exclusionList');
|
||||||
const pak = require('../../package.json');
|
const pak = require('../../package.json');
|
||||||
|
|
||||||
const root = path.resolve(__dirname, '../..');
|
const root = path.resolve(__dirname, '..');
|
||||||
|
|
||||||
const modules = Object.keys({
|
const modules = Object.keys({
|
||||||
...pak.peerDependencies,
|
...pak.peerDependencies,
|
||||||
|
@ -4,7 +4,7 @@ const pak = require('../../package.json');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
dependencies: {
|
dependencies: {
|
||||||
[pak.name]: {
|
[pak.name]: {
|
||||||
root: path.join(__dirname, '../..'),
|
root: path.join(__dirname, '../../'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"version": "6.0.0-alpha.6",
|
"version": "6.0.0-alpha.6",
|
||||||
"description": "A <Video /> element for react-native",
|
"description": "A <Video /> element for react-native",
|
||||||
"main": "Video.js",
|
"main": "Video.js",
|
||||||
|
"source": "Video.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Community Contributors",
|
"author": "Community Contributors",
|
||||||
"homepage": "https://github.com/react-native-video/react-native-video#readme",
|
"homepage": "https://github.com/react-native-video/react-native-video#readme",
|
||||||
|
Loading…
Reference in New Issue
Block a user