@cocreate/cli 1.26.1 → 1.27.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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.27.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.27.0...v1.27.1) (2023-04-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * workflow node verssion 16 ([876fa50](https://github.com/CoCreate-app/CoCreate-cli/commit/876fa50ed8aaa8241442d252c26da4d0a29c84bb))
7
+
8
+ # [1.27.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.26.1...v1.27.0) (2023-04-24)
9
+
10
+
11
+ ### Features
12
+
13
+ * support for pnpm package manager ([187d866](https://github.com/CoCreate-app/CoCreate-cli/commit/187d866d41177aac1c05db284174377636b74645))
14
+
1
15
  ## [1.26.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.26.0...v1.26.1) (2023-04-24)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.26.1",
3
+ "version": "1.27.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",
@@ -59,8 +59,8 @@
59
59
  "coc": "src/coc.js"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.6.5",
63
- "@cocreate/hosting": "^1.8.5",
62
+ "@cocreate/docs": "^1.7.1",
63
+ "@cocreate/hosting": "^1.9.2",
64
64
  "colors": "latest",
65
65
  "glob": "^7.1.7",
66
66
  "prettier": "^2.3.2",
package/src/addMeta.js CHANGED
@@ -47,16 +47,21 @@ module.exports = async function addMeta(repos, failed, directory) {
47
47
  repos[i].packageManager = 'npm'
48
48
  let lockFile = path.resolve(repos[i].absolutePath, 'package-lock.json');
49
49
  if (!fs.existsSync(lockFile)) {
50
- lockFile = path.resolve(repos[i].absolutePath, 'yarn.lock');
50
+ lockFile = path.resolve(repos[i].absolutePath, 'pnpm-lock.yaml');
51
51
  if (fs.existsSync(lockFile))
52
- repos[i].packageManager = 'yarn'
52
+ repos[i].packageManager = 'pnpm'
53
53
  else {
54
- try {
55
- const { error } = await exec('yarn --version');
56
- if (!error)
57
- repos[i].packageManager = 'yarn'
58
- } catch(e) {
54
+ lockFile = path.resolve(repos[i].absolutePath, 'yarn.lock');
55
+ if (fs.existsSync(lockFile))
56
+ repos[i].packageManager = 'yarn'
57
+ else {
58
+ try {
59
+ const { error } = await exec('yarn --version');
60
+ if (!error)
61
+ repos[i].packageManager = 'yarn'
62
+ } catch(e) {
59
63
 
64
+ }
60
65
  }
61
66
  }
62
67
  packageManager = repos[i].packageManager
@@ -64,11 +64,11 @@ jobs:
64
64
  VERSION: '\${{ needs.release.outputs.new_release_version }}'
65
65
  steps:
66
66
  - name: Checkout
67
- uses: actions/checkout@v2
67
+ uses: actions/checkout@v3
68
68
  - name: setup nodejs
69
- uses: actions/setup-node@v2
69
+ uses: actions/setup-node@v3
70
70
  with:
71
- node-version: 14.15.4
71
+ node-version: 16
72
72
  - name: yarn install
73
73
  run: >
74
74
  echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" >
@@ -41,11 +41,11 @@ jobs:
41
41
 
42
42
  steps:
43
43
  - name: Checkout
44
- uses: actions/checkout@v2
44
+ uses: actions/checkout@v3
45
45
  - name: setup nodejs
46
- uses: actions/setup-node@v2
46
+ uses: actions/setup-node@v3
47
47
  with:
48
- node-version: 14.15.4
48
+ node-version: 16
49
49
  - name: yarn install
50
50
  run: >
51
51
  echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" >