瀏覽代碼

feat: Enable lerna cache

Housein Abo Shaar 1 月之前
父節點
當前提交
172b2fa6cb
共有 2 個文件被更改,包括 23 次插入7 次删除
  1. 10 7
      lerna.json
  2. 13 0
      nx.json

+ 10 - 7
lerna.json

@@ -1,10 +1,13 @@
 {
-    "packages": ["packages/*"],
-    "version": "3.5.0",
-    "npmClient": "npm",
-    "command": {
-        "version": {
-            "push": false
-        }
+  "packages": ["packages/*"],
+  "version": "3.5.0",
+  "npmClient": "npm",
+  "command": {
+    "version": {
+      "push": false
+    },
+    "run": {
+      "cache": true
     }
+  }
 }

+ 13 - 0
nx.json

@@ -0,0 +1,13 @@
+{
+  "targetDefaults": {
+    "build": {
+      "cache": true,
+      "dependsOn": ["^build"],
+      "outputs": ["{projectRoot}/dist"]
+    },
+    "test": {
+      "cache": true,
+      "dependsOn": ["build"]
+    }
+  }
+}