fix(ui): build scripts for the shui primitives

This commit is contained in:
charlie
2024-05-11 16:17:40 +08:00
parent 061700c6b1
commit aa38cd3a17
3 changed files with 3 additions and 6 deletions

4
.gitmodules vendored
View File

@@ -1,4 +0,0 @@
[submodule "packages/ui/primitives"]
path = packages/ui/primitives
url = https://github.com/xyhp915/primitives.git
shallow = true

View File

@@ -75,7 +75,7 @@
"android:dev": "cross-env PLATFORM=android gulp cap",
"tldraw:build": "yarn --cwd packages/tldraw install",
"amplify:build": "yarn --cwd packages/amplify install",
"ui:build": "git submodule update --quiet --init --depth=1 && yarn --cwd packages/ui install",
"ui:build": "yarn --cwd packages/ui install",
"postinstall": "yarn tldraw:build && yarn amplify:build && yarn ui:build"
},
"dependencies": {

View File

@@ -8,7 +8,8 @@
"build:ui:only": "parcel build --target ui",
"build:ui": "rm -rf .parcel-cache && yarn build:ui:only",
"watch:storybook": "storybook dev -p 6006",
"preinstall": "cd primitives/ && yarn install && yarn build",
"install:primitives": "rm -rf primitives/ && git clone https://github.com/xyhp915/primitives.git --depth=1",
"preinstall": "yarn install:primitives && cd primitives/ && yarn install && yarn build",
"postinstall": "yarn build:ui"
},
"dependencies": {