rigjs 3.0.12 → 3.0.14
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 +36 -36
- package/lib/postinstall/index.ts +2 -0
- package/lib/preinstall/index.ts +4 -0
- package/package.json +1 -1
- package/package.rig.json5 +0 -8
package/lib/postinstall/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import fs from 'fs';
|
|
|
9
9
|
import path from 'path';
|
|
10
10
|
import print from '../print';
|
|
11
11
|
import RigConfig from '@/classes/RigConfig';
|
|
12
|
+
import {rootLogger} from "ts-jest";
|
|
12
13
|
|
|
13
14
|
//link开发库
|
|
14
15
|
export default async () => {
|
|
@@ -22,6 +23,7 @@ export default async () => {
|
|
|
22
23
|
let devDeps = [];
|
|
23
24
|
for (let rigName in rigConfig.dependencies) {
|
|
24
25
|
const dep = rigConfig.dependencies[rigName];
|
|
26
|
+
console.log(rigConfig);
|
|
25
27
|
if (dep.dev) {
|
|
26
28
|
//link rig_dev下的库
|
|
27
29
|
print.warn(`developing:${dep.name}`);
|
package/lib/preinstall/index.ts
CHANGED
|
@@ -65,8 +65,12 @@ export default async (cmd:any) => {
|
|
|
65
65
|
//不是开发中状态,不处理,不去删除已下载的模块
|
|
66
66
|
//预安装时在node_modules中要先清除json5里的库
|
|
67
67
|
if (fs.existsSync(`node_modules/${dep.name}`)) {
|
|
68
|
+
if (fs.lstatSync(`node_modules/${dep.name}`).isSymbolicLink()){
|
|
69
|
+
fs.unlinkSync(`node_modules/${dep.name}`);
|
|
70
|
+
}
|
|
68
71
|
shell.rm('-rf', `node_modules/${dep.name}`);
|
|
69
72
|
}
|
|
73
|
+
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
//强制删除.yarn-integrity,重装依赖
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rigjs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "A multi-repos dev tool based on yarn and git.Rigjs is intended to be the simplest way to develop,share and deliver codes between different developers or different projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"modular",
|