-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: simplify workspace link in examples
- Loading branch information
Showing
11 changed files
with
220 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 2 additions & 11 deletions
13
examples/AnalyticsReactNativeExample/react-native.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
const path = require('path'); | ||
const corePackage = require('../../packages/core/package.json'); | ||
const sovranPackage = require('../../packages/sovran/package.json'); | ||
|
||
const basePath = path.join(__dirname, '..', '..', 'packages'); | ||
const { rootMap } = require('./workspace') // Load the linked data | ||
|
||
module.exports = { | ||
dependencies: { | ||
// Local packages need to be referenced here to be linked to the app | ||
// This is not required in a standalone production app | ||
[corePackage.name]: { | ||
root: path.join(basePath, 'core'), | ||
}, | ||
[sovranPackage.name]: { | ||
root: path.join(basePath, 'sovran'), | ||
}, | ||
...rootMap | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const { getLinkedData } = require('../linkHelper') | ||
|
||
module.exports = { | ||
...getLinkedData(['core', 'sovran']) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
const path = require('path'); | ||
const corePackage = require('../../packages/core/package.json'); | ||
const sovranPackage = require('../../packages/sovran/package.json'); | ||
|
||
const basePath = path.join(__dirname, '..', '..', 'packages'); | ||
const { rootMap } = require('./workspace') // Load the linked data | ||
|
||
module.exports = { | ||
dependencies: { | ||
// Local packages need to be referenced here to be linked to the app | ||
// This is not required in a standalone production app | ||
[corePackage.name]: { | ||
root: path.join(basePath, 'core'), | ||
}, | ||
[sovranPackage.name]: { | ||
root: path.join(basePath, 'sovran'), | ||
}, | ||
...rootMap | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const { getLinkedData } = require('../linkHelper') | ||
|
||
module.exports = { | ||
...getLinkedData(['core', 'sovran']) | ||
} |
Oops, something went wrong.