@digigov/cli 0.5.30 → 0.6.1-alpha

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/README.md CHANGED
@@ -19,7 +19,7 @@ $ npm install -g @digigov/cli
19
19
  $ digigov COMMAND
20
20
  running command...
21
21
  $ digigov (-v|--version|version)
22
- @digigov/cli/0.5.30 linux-x64 node-v16.6.1
22
+ @digigov/cli/0.6.1-alpha darwin-arm64 node-v16.14.2
23
23
  $ digigov --help [COMMAND]
24
24
  USAGE
25
25
  $ digigov COMMAND
@@ -44,7 +44,7 @@ EXAMPLE
44
44
  hello world from ./src/hello.ts!
45
45
  ```
46
46
 
47
- _See code: [src/commands/hello.ts](https://github.com/tooling/cli/blob/v0.5.30/src/commands/hello.ts)_
47
+ _See code: [src/commands/hello.ts](https://github.com/tooling/cli/blob/v0.6.1-alpha/src/commands/hello.ts)_
48
48
 
49
49
  ## `digigov help [COMMAND]`
50
50
 
@@ -61,5 +61,5 @@ OPTIONS
61
61
  --all see all commands in CLI
62
62
  ```
63
63
 
64
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_
64
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.3.1/src/commands/help.ts)_
65
65
  <!-- commandsstop -->
package/lib.js CHANGED
@@ -173,7 +173,7 @@ function aliases(dir, absolute = false) {
173
173
  const packages = resolveLocalPackages(project.root, deps);
174
174
  Object.keys(packages).forEach((key) => {
175
175
  const project = packages[key];
176
- if (deps.includes(project.name) || project.isWorkspace) {
176
+ if (deps.includes(project.name) && project.package.devDependencies && project.package.devDependencies['@digigov/cli-build'] && project.isWorkspace) {
177
177
  const projectSrc = path.join(project.root, project.src);
178
178
  if (absolute) {
179
179
  aliases[project.name] = path.resolve(root, projectSrc);
@@ -226,7 +226,7 @@ class DigigovCommand extends Command {
226
226
  const { stdout: currentBinFolder } = await execa('npm', ['bin'])
227
227
  executable = path.join(currentBinFolder, script)
228
228
  }
229
- if(!fs.existsSync(executable)){
229
+ if (!fs.existsSync(executable)) {
230
230
  throw new Error(`Executable ${script} not installed`)
231
231
  }
232
232
  console.log('Running ', executable, ...args)
@@ -1 +1 @@
1
- {"version":"0.5.30","commands":{"hello":{"id":"hello","description":"describe the command here","pluginName":"@digigov/cli","pluginType":"core","aliases":[],"examples":["$ digigov hello\nhello world from ./src/hello.ts!\n"],"flags":{},"args":[{"name":"file"}]}}}
1
+ {"version":"0.6.1-alpha","commands":{"hello":{"id":"hello","description":"describe the command here","pluginName":"@digigov/cli","pluginType":"core","aliases":[],"examples":["$ digigov hello\nhello world from ./src/hello.ts!\n"],"flags":{},"args":[{"name":"file"}]}}}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@digigov/cli",
3
3
  "description": "CLI for Digigov apps and libs with plugin support",
4
- "version": "0.5.30",
5
- "author": "GRNET Devs",
4
+ "version": "0.6.1-alpha",
5
+ "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "bin": {
7
7
  "digigov": "./bin/run"
8
8
  },
@@ -11,31 +11,31 @@
11
11
  "@oclif/config": "1",
12
12
  "@oclif/plugin-help": "3",
13
13
  "tslib": "1",
14
- "cli-ux": "~5.5.1",
15
- "@oclif/errors": "~1.3.4",
14
+ "cli-ux": "5.5.1",
15
+ "@oclif/errors": "1.3.4",
16
16
  "pkg-up": "3.1.0",
17
- "fs-extra": "9.1.0",
18
- "deepmerge": "~4.2.2",
17
+ "fs-extra": "10.0.0",
18
+ "deepmerge": "4.2.2",
19
19
  "execa": "5.0.0",
20
20
  "rimraf": "3.0.2",
21
21
  "glob": "7.1.6",
22
- "@microsoft/rush-lib": "~5.46.1"
22
+ "@microsoft/rush-lib": "5.64.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@oclif/dev-cli": "1",
26
26
  "@oclif/test": "1",
27
27
  "@types/chai": "4",
28
28
  "@types/mocha": "5",
29
- "@types/node": "14.14.9",
29
+ "@types/node": "16.6.2",
30
30
  "chai": "4",
31
- "globby": "10",
31
+ "globby": "11.0.0",
32
32
  "mocha": "5",
33
33
  "nyc": "14",
34
34
  "ts-node": "8",
35
35
  "typescript": "4.2.3"
36
36
  },
37
37
  "engines": {
38
- "node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0"
38
+ "node": ">=12.13.0"
39
39
  },
40
40
  "files": [
41
41
  "/bin",
@@ -48,7 +48,6 @@
48
48
  "keywords": [
49
49
  "oclif"
50
50
  ],
51
- "license": "\\",
52
51
  "main": "lib/index.js",
53
52
  "oclif": {
54
53
  "commands": "./lib/commands",