mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Set storybook folder to .storybook
.
This commit is contained in:
parent
6d3d634b6b
commit
24ca226d52
2
app/react-native/src/server/cli.js
vendored
2
app/react-native/src/server/cli.js
vendored
@ -28,7 +28,7 @@ function getCli() {
|
||||
.option('--quiet', 'Suppress verbose build output')
|
||||
.parse(process.argv);
|
||||
|
||||
const configDir = path.resolve(program.configDir || './storybook');
|
||||
const configDir = path.resolve(program.configDir || './.storybook');
|
||||
|
||||
return {
|
||||
...program,
|
||||
|
@ -15,6 +15,7 @@
|
||||
"preset": "jest-expo"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": "^2.6.0",
|
||||
"expo": "^31.0.4",
|
||||
"prop-types": "^15.6.2",
|
||||
"react": "16.5.1",
|
||||
|
@ -35,7 +35,7 @@ export default async npmOptions => {
|
||||
const projectName =
|
||||
dirname && dirname.slice('ios/'.length, dirname.length - '.xcodeproj'.length - 1);
|
||||
if (projectName) {
|
||||
shell.sed('-i', '%APP_NAME%', projectName, 'storybook/storybook.js');
|
||||
shell.sed('-i', '%APP_NAME%', projectName, '.storybook/storybook.js');
|
||||
} else {
|
||||
paddedLog(
|
||||
chalk.red(
|
||||
|
Loading…
x
Reference in New Issue
Block a user