feat: ⚡ modified setup
This commit is contained in:
parent
f5dc4992fb
commit
4ddecbf42b
@ -9,7 +9,7 @@ module.exports = {
|
||||
{
|
||||
extensions: ['.tsx', '.ts', '.js', '.json'],
|
||||
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 pak = require('../../package.json');
|
||||
|
||||
const root = path.resolve(__dirname, '..');
|
||||
const root = path.resolve(__dirname, '../../');
|
||||
|
||||
const modules = Object.keys({
|
||||
...pak.peerDependencies,
|
||||
|
@ -3,7 +3,9 @@
|
||||
"extends": "@tsconfig/react-native/tsconfig.json", /* Recommended React Native TSConfig base */
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||
|
||||
"paths": {
|
||||
"react-native-video": ["../../Video.js"]
|
||||
},
|
||||
/* Completeness */
|
||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
}
|
||||
|
@ -23,6 +23,10 @@
|
||||
"keymirror": "^0.1.1",
|
||||
"prop-types": "^15.7.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
"react-native": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "yarn eslint .",
|
||||
"xbasic": "yarn --cwd examples/basic",
|
||||
|
Loading…
Reference in New Issue
Block a user