ソースを参照

Added: 增加私有镜像仓库发布

洪海涛 3 年 前
コミット
4ddf1e480c
2 ファイル変更12 行追加7 行削除
  1. 7 0
      README.md
  2. 5 7
      workspace.jsonc

+ 7 - 0
README.md

@@ -19,3 +19,10 @@ dnpm publish
 - appjs 为测试文件
 
 - index.js 为统一导出出口
+
+## 滴私有 NPM 镜像
+### 添加发布包的协调维护者
+```bash
+dnpm owner add 协同者名称 包名称
+例如:<dnpm|npm> owner add qinzhipeng_v @didi/platformui
+```

+ 5 - 7
workspace.jsonc

@@ -1,7 +1,7 @@
 /**
  * this is the main configuration file of your bit workspace.
  * for full documentation, please see: https://harmony-docs.bit.dev/workspace/configurations
- **/{
+ **/ {
   "$schema": "https://static.bit.dev/teambit/schemas/schema.json",
   /**
    * main configuration of the Bit workspace.
@@ -55,9 +55,7 @@
       }
     },
     "packageManagerArgs": [],
-    "devFilePatterns": [
-      "**/*.spec.ts"
-    ],
+    "devFilePatterns": ["**/*.spec.ts"],
     "strictPeerDependencies": true,
     "installFromBitDevRegistry": true,
     "savePrefix": ""
@@ -73,8 +71,8 @@
     /**
      * "*" is a special rule which applied on all components in the workspace.
      **/
-    "*": {}
-    /*"{platformui*/ /**}": {
+    /* "*": {} */
+    "{platformui*/ /**}": {
       "teambit.react/react": {},
       "teambit.pkg/pkg": {
         "packageManagerPublishArgs": ["--access public"],
@@ -86,6 +84,6 @@
           }
         }
       }
-    }*/
+    }
   }
 }