Explorar o código

fix(ui): build scripts for the shui primitives

charlie hai 1 ano
pai
achega
aa38cd3a17
Modificáronse 3 ficheiros con 3 adicións e 6 borrados
  1. 0 4
      .gitmodules
  2. 1 1
      package.json
  3. 2 1
      packages/ui/package.json

+ 0 - 4
.gitmodules

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

+ 1 - 1
package.json

@@ -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": {

+ 2 - 1
packages/ui/package.json

@@ -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": {