Skip to content

Commit

Permalink
fix: common example paths
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsek committed Sep 11, 2024
1 parent e004ab1 commit b724c14
Show file tree
Hide file tree
Showing 4 changed files with 3,352 additions and 79 deletions.
4 changes: 2 additions & 2 deletions apps/CommonExample/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const pak = require('../package.json');
const pak = require('../../package.json');

module.exports = {
presets: ['module:@react-native/babel-preset'],
Expand All @@ -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),
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions apps/CommonExample/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const path = require('path');
const escape = require('escape-string-regexp');
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({ ...pak.peerDependencies });

/**
Expand Down
4 changes: 2 additions & 2 deletions apps/CommonExample/react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const pak = require('../package.json');
const pak = require('../../package.json');

module.exports = {
project: {
Expand All @@ -9,7 +9,7 @@ module.exports = {
},
dependencies: {
[pak.name]: {
root: path.join(__dirname, '..'),
root: path.join(__dirname, '../../'),
},
},
};
Loading

0 comments on commit b724c14

Please sign in to comment.