rigjs 2.1.5 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,7 +70,7 @@ export default async (cmd: any) => {
70
70
  case FrameworkType.vue: {
71
71
  vueEnv.useEnv(ep.vue_env!, ep.extra_env);
72
72
  //推测vue脚本
73
- if (!ep.build) ep.build = 'npx vue-cli-service build --mode rig';
73
+ if (!ep.build) ep.build = `npx vue-cli-service build --mode rig --dest ${ep.extra_env['OUTPUT_DIR']}`;
74
74
  }
75
75
  break;
76
76
  default:
@@ -42,6 +42,7 @@ class Endpoint {
42
42
 
43
43
  static createEndpointArr(cicdConfig: CICDConfig, schema: DirLevel[]) {
44
44
  const endpointDict = cicdConfig.endpoints;
45
+ if (!endpointDict) throw new Error('No endpoints found');
45
46
  return Object.keys(endpointDict).map((dir) => {
46
47
  const info = endpointDict[dir];
47
48
  return new Endpoint(dir, info, schema);
@@ -78,6 +78,7 @@ const clone = (target, dep) => {
78
78
  }
79
79
  }
80
80
  const checkDepsValid = (rigJson5) => {
81
+ print.info(`checkDepsValid`);
81
82
  let valid = true;
82
83
  for (let rig of rigJson5) {
83
84
  try {
@@ -113,8 +114,8 @@ const checkDepsValid = (rigJson5) => {
113
114
 
114
115
  //从rigJson5获取该依赖的版本号
115
116
  const dep = rigJson5.find(r => r.name === key);
117
+ print.info(`checking: ${key}[${min},${max}]`);
116
118
  if (dep) {
117
- console.log(min,max,dep);
118
119
  if (min) {
119
120
  valid = compareVersions(dep.version, min) >= 0
120
121
  }
@@ -131,7 +132,7 @@ const checkDepsValid = (rigJson5) => {
131
132
  })
132
133
  }
133
134
  } catch (e) {
134
-
135
+ print.error(`checkDepsValid failed:${e.message}`);
135
136
  valid = false;
136
137
  }
137
138
  return valid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "2.1.5",
3
+ "version": "2.1.8",
4
4
  "description": "A multi-repos dev tool based on yarn and git.Rig is inspired by cocoapods. Not like those monorepo solutions,rig is a tool for organizing multi-repos.",
5
5
  "keywords": [
6
6
  "modular",
package/tsconfig.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "esModuleInterop": true,
9
9
  "experimentalDecorators": true,
10
10
  "allowSyntheticDefaultImports": true,
11
+ "useUnknownInCatchVariables": false,
11
12
  "sourceMap": true,
12
13
  "baseUrl": ".",
13
14
  "resolveJsonModule": true,