rigjs 2.1.4 → 2.1.7
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.
- package/built/index.js +188 -72107
- package/lib/build/index.ts +1 -1
- package/lib/preinstall/index.js +3 -2
- package/package.json +2 -2
- package/tsconfig.json +1 -0
package/lib/build/index.ts
CHANGED
|
@@ -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 =
|
|
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:
|
package/lib/preinstall/index.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.1.7",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"t": "node lib/rig/index.js tag",
|
|
32
32
|
"deliver": "rig tag & yarn build & npm publish --registry=https://registry.npmjs.org",
|
|
33
33
|
"deliver:alpha": "rig tag & yarn build & npm publish --registry=https://registry.npmjs.org --tag alpha",
|
|
34
|
-
"build": "esbuild lib/rig/index.ts --platform=node --bundle --sourcemap=inline --outfile=built/index.js --external:shelljs"
|
|
34
|
+
"build": "esbuild lib/rig/index.ts --platform=node --bundle --sourcemap=inline --minify --outfile=built/index.js --external:shelljs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@types/ali-oss": "^6.16.3",
|