@cocreate/cli 1.25.0 → 1.26.1
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/CHANGELOG.md +14 -0
- package/docs/index.html +3 -2
- package/package.json +1 -1
- package/src/commands/link.js +33 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.26.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.26.0...v1.26.1) (2023-04-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* repos are linked to process.cwd() ([8ffccc5](https://github.com/CoCreate-app/CoCreate-cli/commit/8ffccc52c2651c9c8079731b63dd1fce26eb2b65))
|
|
7
|
+
|
|
8
|
+
# [1.26.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.25.0...v1.26.0) (2023-04-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* pwa manifest ([b2fe852](https://github.com/CoCreate-app/CoCreate-cli/commit/b2fe85210a3f4c070617d25d7a333b4bb6558813))
|
|
14
|
+
|
|
1
15
|
# [1.25.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.24.0...v1.25.0) (2023-04-24)
|
|
2
16
|
|
|
3
17
|
|
package/docs/index.html
CHANGED
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
<meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
11
11
|
<meta name="robots" content="index,follow" />
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
<link rel="manifest" href="/manifest.json" />
|
|
16
|
+
</head>
|
|
16
17
|
|
|
17
18
|
<body>
|
|
18
19
|
<nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
package/src/commands/link.js
CHANGED
|
@@ -10,10 +10,40 @@ module.exports = async function linkPackages(repos, args) {
|
|
|
10
10
|
if (repo.exclude && repo.exclude.includes('link'))
|
|
11
11
|
continue
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
if (process.cwd() === repo.absolutePath)
|
|
14
|
+
continue
|
|
14
15
|
|
|
15
|
-
await
|
|
16
|
-
|
|
16
|
+
let exitCode = await spawn(repo.packageManager, ['link'], {
|
|
17
|
+
cwd: repo.absolutePath,
|
|
18
|
+
shell: true,
|
|
19
|
+
stdio: 'inherit'
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
if (exitCode !== 0) {
|
|
23
|
+
failed.push({
|
|
24
|
+
name: repo.name,
|
|
25
|
+
des: `${repo.packageManager} link failed`
|
|
26
|
+
})
|
|
27
|
+
console.error(`${repo.name}: ${repo.packageManager} link failed`.red)
|
|
28
|
+
} else {
|
|
29
|
+
console.log(repo.packageManager, 'link', repo.packageName)
|
|
30
|
+
|
|
31
|
+
let exitCode = await spawn(repo.packageManager, ['link', repo.packageName], {
|
|
32
|
+
cwd: process.cwd(),
|
|
33
|
+
shell: true,
|
|
34
|
+
stdio: 'inherit'
|
|
35
|
+
})
|
|
36
|
+
if (exitCode !== 0) {
|
|
37
|
+
failed.push({
|
|
38
|
+
name: repo.name,
|
|
39
|
+
des: `${ repo.packageManager} link ${ repo.packageName} failed`
|
|
40
|
+
});
|
|
41
|
+
console.error(`${repo.name}: ${ repo.packageManager} link ${ repo.packageName} failed`.red)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// await doLink(repo.deps, repo, repos, failed, isLinked)
|
|
46
|
+
// await doLink(repo.devDeps, repo, repos, failed, isLinked)
|
|
17
47
|
}
|
|
18
48
|
}
|
|
19
49
|
catch (err) {
|