oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.16k stars 2.77k forks source link

[install] monorepo bin doesn't exist #223

Closed natew closed 1 year ago

natew commented 2 years ago

Installed on Mojave using curl script.

To repro:

git clone git@github.com:tamagui/tamagui.git
cd tamagui
bun i
cd packages/patch-rnw
bun run build

A few issues, at first I got this, but then I tried fresh and got:

/bin/bash: tamagui-build: command not found

But the @tamagui/build package should provide it.

Electroid commented 1 year ago

This issue appears to be fixed as of Bun v1.0.7, now that bun install supports workspaces.

❯ bun i
bun install v1.0.7 (fa1bbec0)
 + @tamagui/accordion@workspace:packages/accordion
 + @tamagui/adapt@workspace:packages/adapt
 + @tamagui/alert-dialog@workspace:packages/alert-dialog
 + @tamagui/animate@workspace:packages/animate
 + @tamagui/animate-presence@workspace:packages/animate-presence
 + @tamagui/animations-css@workspace:packages/animations-css
 + @tamagui/animations-moti@workspace:packages/animations-moti
 + @tamagui/animations-react-native@workspace:packages/animations-react-native
 + @tamagui/animations-reanimated@workspace:packages/animations-reanimated
 + @tamagui/aria-hidden@workspace:packages/aria-hidden
 + @tamagui/avatar@workspace:packages/avatar
 + @tamagui/babel-plugin@workspace:packages/babel-plugin
 + @tamagui/build@workspace:packages/build
 + @tamagui/button@workspace:packages/button
 + @tamagui/calc@workspace:packages/calc
 + @tamagui/card@workspace:packages/card
 + @tamagui/checkbox@workspace:packages/checkbox
 + @tamagui/cli@workspace:packages/cli
 + @tamagui/cli-color@workspace:packages/cli-color
 + @tamagui/code-to-html@workspace:packages/code-to-html
 + @tamagui/collapsible@workspace:packages/collapsible
 + @tamagui/collection@workspace:packages/collection
 + @tamagui/colors@workspace:packages/colors
 + @tamagui/components-test@workspace:packages/components-test
 + @tamagui/compose-refs@workspace:packages/compose-refs
 + @tamagui/config@workspace:packages/config
 + @tamagui/config-base@workspace:packages/config-base
 + @tamagui/config-default@workspace:packages/config-default
 + @tamagui/constants@workspace:packages/constants
 + @tamagui/core@workspace:packages/core
 + @tamagui/core-test@workspace:packages/core-test
 + @tamagui/create-context@workspace:packages/create-context
 + @tamagui/create-theme@workspace:packages/create-theme
 + @tamagui/create-themes@workspace:packages/create-themes
 + @tamagui/cubic-bezier-animator@workspace:packages/cubic-bezier-animator
 + @tamagui/demos@workspace:packages/demos
 + @tamagui/dialog@workspace:packages/dialog
 + @tamagui/dismissable@workspace:packages/dismissable
 + @tamagui/fake-react-native@workspace:packages/fake-react-native
 + @tamagui/floating@workspace:packages/floating
 + @tamagui/focus-scope@workspace:packages/focus-scope
 + @tamagui/focusable@workspace:packages/focusable
 + @tamagui/font@workspace:packages/font
 + @tamagui/font-cherry-bomb@workspace:packages/font-cherry-bomb
 + @tamagui/font-dm-sans@workspace:packages/font-dm-sans
 + @tamagui/font-dm-serif-display@workspace:packages/font-dm-serif-display
 + @tamagui/font-fira-mono@workspace:packages/font-fira-mono
 + @tamagui/font-glusp@workspace:packages/font-glusp
 + @tamagui/font-inter@workspace:packages/font-inter
 + @tamagui/font-munro@workspace:packages/font-munro
 + @tamagui/font-nohemi@workspace:packages/font-nohemi
 + @tamagui/font-silkscreen@workspace:packages/font-silkscreen
 + @tamagui/font-size@workspace:packages/font-size
 + @tamagui/form@workspace:packages/form
 + @tamagui/generate-themes@workspace:packages/generate-themes
 + @tamagui/get-button-sized@workspace:packages/get-button-sized
 + @tamagui/get-font-sized@workspace:packages/get-font-sized
 + @tamagui/get-token@workspace:packages/get-token
 + @tamagui/git-crypt@workspace:packages/git-crypt
 + @tamagui/group@workspace:packages/group
 + @tamagui/helpers@workspace:packages/helpers
 + @tamagui/helpers-icon@workspace:packages/helpers-icon
 + @tamagui/helpers-node@workspace:packages/helpers-node
 + @tamagui/helpers-tamagui@workspace:packages/helpers-tamagui
 + @tamagui/image@workspace:packages/image
 + @tamagui/kitchen-sink@workspace:apps/kitchen-sink
 + @tamagui/label@workspace:packages/label
 + @tamagui/linear-gradient@workspace:packages/linear-gradient
 + @tamagui/list-item@workspace:packages/list-item
 + @tamagui/logo@workspace:packages/logo
 + @tamagui/lucide-icons@workspace:packages/lucide-icons
 + @tamagui/menu@workspace:packages/menu
 + @tamagui/next-plugin@workspace:packages/next-plugin
 + @tamagui/next-theme@workspace:packages/next-theme
 + @tamagui/normalize-css-color@workspace:packages/normalize-css-color
 + @tamagui/polyfill-dev@workspace:packages/polyfill-dev
 + @tamagui/popover@workspace:packages/popover
 + @tamagui/popper@workspace:packages/popper
 + @tamagui/portal@workspace:packages/portal
 + @tamagui/progress@workspace:packages/progress
 + @tamagui/proxy-worm@workspace:packages/proxy-worm
 + @tamagui/radio-group@workspace:packages/radio-group
 + @tamagui/react-17-patch@workspace:packages/react-17-patch
 + @tamagui/react-native-media-driver@workspace:packages/react-native-media-driver
 + @tamagui/react-native-prebuilt@workspace:packages/react-native-prebuilt
 + @tamagui/react-native-svg@workspace:packages/react-native-svg
 + @tamagui/react-native-use-pressable@workspace:packages/react-native-use-pressable
 + @tamagui/react-native-use-responder-events@workspace:packages/react-native-use-responder-events
 + @tamagui/remove-scroll@workspace:packages/remove-scroll
 + @tamagui/roving-focus@workspace:packages/roving-focus
 + @tamagui/sandbox-ui@workspace:packages/sandbox-ui
 + @tamagui/scroll-view@workspace:packages/scroll-view
 + @tamagui/select@workspace:packages/select
 + @tamagui/separator@workspace:packages/separator
 + @tamagui/shapes@workspace:packages/shapes
 + @tamagui/sheet@workspace:packages/sheet
 + @tamagui/shorthands@workspace:packages/shorthands
 + @tamagui/simple-hash@workspace:packages/simple-hash
 + @tamagui/site@workspace:apps/site
 + @tamagui/site-config@workspace:packages/site-config
 + @tamagui/slider@workspace:packages/slider
 + @tamagui/stack@workspace:apps/tamastack
 + @tamagui/stacks@workspace:packages/stacks
 + @tamagui/static@workspace:packages/static
 + @tamagui/static-tests@workspace:packages/static-tests
 + @tamagui/studio@workspace:apps/studio
 + @tamagui/switch@workspace:packages/switch
 + @tamagui/tabs@workspace:packages/tabs
 + @tamagui/test-design-system@workspace:packages/test-design-system
 + @tamagui/text@workspace:packages/text
 + @tamagui/text-test@workspace:packages/text-test
 + @tamagui/theme@workspace:packages/theme
 + @tamagui/theme-base@workspace:packages/theme-base
 + @tamagui/theme-builder@workspace:packages/theme-builder
 + @tamagui/themes@workspace:packages/themes
 + @tamagui/timer@workspace:packages/timer
 + @tamagui/toast@workspace:packages/toast
 + @tamagui/toggle-group@workspace:packages/toggle-group
 + @tamagui/tooltip@workspace:packages/tooltip
 + @tamagui/types@workspace:packages/types
 + @tamagui/use-callback-ref@workspace:packages/use-callback-ref
 + @tamagui/use-constant@workspace:packages/use-constant
 + @tamagui/use-controllable-state@workspace:packages/use-controllable-state
 + @tamagui/use-debounce@workspace:packages/use-debounce
 + @tamagui/use-did-finish-ssr@workspace:packages/use-did-finish-ssr
 + @tamagui/use-direction@workspace:packages/use-direction
 + @tamagui/use-escape-keydown@workspace:packages/use-escape-keydown
 + @tamagui/use-event@workspace:packages/use-event
 + @tamagui/use-force-update@workspace:packages/use-force-update
 + @tamagui/use-keyboard-visible@workspace:packages/use-keyboard-visible
 + @tamagui/use-presence@workspace:packages/use-presence
 + @tamagui/use-previous@workspace:packages/use-previous
 + @tamagui/use-store@workspace:packages/use-store
 + @tamagui/use-window-dimensions@workspace:packages/use-window-dimensions
 + @tamagui/visually-hidden@workspace:packages/visually-hidden
 + @tamagui/vite-plugin@workspace:packages/vite-plugin
 + @tamagui/vite-plugin-internal@workspace:packages/vite-plugin-internal
 + @tamagui/web@workspace:packages/web
 + create-tamagui@workspace:packages/create-tamagui
 + react-native-web-internals@workspace:packages/react-native-web-internals
 + react-native-web-lite@workspace:packages/react-native-web-lite
 + tamagui@workspace:packages/tamagui
 + tamagui-loader@workspace:packages/loader
 + vertql@workspace:apps/vertql
 + @biomejs/biome@1.3.1
 + @manypkg/cli@0.19.2 (v0.21.0 available)
 + @nderscore/tamagui-typescript-plugin@0.3.1 (v0.6.0 available)
 + @vercel/og@0.5.20
 + check-dependency-version-consistency@3.3.0 (v4.1.0 available)
 + import-sort-style-module@6.0.0
 + npm-run-all@4.1.5
 + p-map@5.5.0 (v6.0.0 available)
 + prettier@2.8.8 (v3.0.3 available)
 + pretty-quick@3.1.3
 + prompts@2.1.0 (v2.4.2 available)
 + turbo@1.10.16
 + typescript@5.2.2
 + ultra-runner@3.10.5
☔️ success workspaces valid!
/bin/bash: yarn: command not found

 2599 packages installed [11.13s]
❯ bunx tamagui-build
built tamagui-monorepo in 4 ms

You can upgrade by running bun upgrade. If you find that this bug still persists, please feel free to re-open this issue.