feat: modified setup

This commit is contained in:
yungblud 2023-04-13 16:08:24 +09:00
parent fe4e2bfcd9
commit f5dc4992fb
4 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

@ -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, '../../'),
}, },
}, },
}; };

View File

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