callstack / react-native-builder-bob

👷‍♂️ Simple set of CLIs to scaffold and build React Native libraries for different targets
https://callstack.github.io/react-native-builder-bob/
2.78k stars 184 forks source link

Unable to exclude storybook files #617

Closed vincentsartoko closed 2 months ago

vincentsartoko commented 2 months ago

Description

I have src/components/Component/index.stories.tsx and this code on bob.config.js

module.exports = {
  exclude: ['./src/components/**/index.stories.tsx', './src/stories/**']
};

This still causes build error when doing bob build. Anyone knows why?

Packages

Selected options

-

Link to repro

-

Environment

System: OS: Windows 10 10.0.19045 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 5.62 GB / 15.85 GB Binaries: Node: version: 20.14.0 path: C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: version: 10.8.1 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowAllTrustedApps: Disabled Versions:

info React Native v0.75.2 is now available (your project is running on v0.75.1). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.75.2 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.75.1&to=0.75.2 info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".