Skip to content

Commit f951e98

Browse files
committed
chore: move example folder to root
1 parent 448fa64 commit f951e98

File tree

107 files changed

+17
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+17
-13
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/example/metro.config.js renamed to example/metro.config.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@ const blacklist = require('metro-config/src/defaults/blacklist');
77

88
module.exports = {
99
projectRoot: __dirname,
10-
watchFolders: [path.resolve(__dirname, '..', '..')],
10+
watchFolders: [path.resolve(__dirname, '..')],
1111

1212
resolver: {
1313
blacklistRE: blacklist(
14-
[
15-
...fs
16-
.readdirSync(path.resolve(__dirname, '..'))
17-
.filter(d => d !== 'example'),
18-
'..',
19-
].map(
14+
[...fs.readdirSync(path.resolve(__dirname, '..', 'packages')), '..'].map(
2015
it =>
2116
new RegExp(
2217
`^${escape(
23-
path.resolve(__dirname, '..', it, 'node_modules')
18+
path.resolve(__dirname, '..', 'packages', it, 'node_modules')
2419
)}\\/.*$`
2520
)
2621
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/example/webpack.config.js renamed to example/webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function(env, argv) {
99

1010
config.module.rules.push({
1111
test: /\.(js|ts|tsx)$/,
12-
include: /packages\/.+/,
12+
include: /(packages|example)\/.+/,
1313
exclude: /node_modules/,
1414
use: 'babel-loader',
1515
});
@@ -40,6 +40,7 @@ module.exports = async function(env, argv) {
4040
config.resolve.alias[`@react-navigation/${name}`] = path.resolve(
4141
__dirname,
4242
'..',
43+
'packages',
4344
name,
4445
'src'
4546
);

lerna.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"packages": [
3-
"packages/*"
3+
"packages/*",
4+
"example"
45
],
56
"npmClient": "yarn",
67
"useWorkspaces": true,
@@ -12,7 +13,13 @@
1213
"createRelease": "github",
1314
"preId": "alpha",
1415
"preDistTag": "next",
15-
"message": "chore: publish"
16+
"message": "chore: publish",
17+
"ignoreChanges": [
18+
"**/__fixtures__/**",
19+
"**/__tests__/**",
20+
"**/*.md",
21+
"**/example/**"
22+
]
1623
}
1724
}
1825
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"private": true,
44
"workspaces": {
55
"packages": [
6-
"packages/*"
6+
"packages/*",
7+
"example"
78
]
89
},
910
"publishConfig": {
@@ -19,7 +20,7 @@
1920
"lint": "eslint --ext '.js,.ts,.tsx' .",
2021
"typescript": "tsc --noEmit",
2122
"test": "jest",
22-
"example": "yarn --cwd packages/example"
23+
"example": "yarn --cwd example"
2324
},
2425
"devDependencies": {
2526
"@babel/plugin-proposal-class-properties": "^7.7.0",

0 commit comments

Comments
 (0)