rigjs 3.0.12 → 3.0.13
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 +3 -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
|
@@ -67,6 +67,9 @@ export default async (cmd:any) => {
|
|
|
67
67
|
if (fs.existsSync(`node_modules/${dep.name}`)) {
|
|
68
68
|
shell.rm('-rf', `node_modules/${dep.name}`);
|
|
69
69
|
}
|
|
70
|
+
if (fs.lstatSync(`node_modules/${dep.name}`).isSymbolicLink()){
|
|
71
|
+
fs.unlinkSync(`node_modules/${dep.name}`);
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
//强制删除.yarn-integrity,重装依赖
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rigjs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
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",
|