@digigov/cli 0.6.5 → 1.0.0-4e7b7994

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.6.5 darwin-arm64 node-v16.14.2
22
+ @digigov/cli/1.0.0-4e7b7994 linux-x64 node-v16.17.1
23
23
  $ digigov --help [COMMAND]
24
24
  USAGE
25
25
  $ digigov COMMAND
@@ -44,8 +44,6 @@ 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.6.5/src/commands/hello.ts)_
48
-
49
47
  ## `digigov help [COMMAND]`
50
48
 
51
49
  display help for digigov
package/lib.js CHANGED
@@ -10,6 +10,10 @@ const rushLib = require('@microsoft/rush-lib');
10
10
  function resolveProject(dir) {
11
11
  const pkg = pkgUp.sync({ cwd: dir || process.cwd() });
12
12
  const root = path.dirname(pkg);
13
+ let externalLockFile = false;
14
+ if (fs.existsSync(path.join(root, 'yarn.lock')) || fs.existsSync(path.join(root, 'package-lock.json'))) {
15
+ externalLockFile = true;
16
+ }
13
17
  let distDir = 'dist';
14
18
  let src = 'src';
15
19
  let workspace = {}
@@ -51,7 +55,7 @@ function resolveProject(dir) {
51
55
  const isNodeLib = !isLib && !isApp && !isWorkspace && !isDocs;
52
56
 
53
57
  let ignore = path.resolve(root, '.gitignore');
54
- if (!fs.existsSync(ignore)) {
58
+ if (!fs.existsSync(ignore) && workspace.root) {
55
59
  ignore = path.resolve(workspace.root, '.gitignore');
56
60
  }
57
61
 
@@ -95,6 +99,7 @@ function resolveProject(dir) {
95
99
  workspace,
96
100
  ignore,
97
101
  digigov,
102
+ externalLockFile,
98
103
  };
99
104
  }
100
105
 
@@ -1 +1 @@
1
- {"version":"0.6.5","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":"1.0.0-4e7b7994","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,7 +1,7 @@
1
1
  {
2
2
  "name": "@digigov/cli",
3
3
  "description": "CLI for Digigov apps and libs with plugin support",
4
- "version": "0.6.5",
4
+ "version": "1.0.0-4e7b7994",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "bin": {
7
7
  "digigov": "./bin/run"
@@ -61,7 +61,6 @@
61
61
  "init": "./lib/hooks/init/addcommand"
62
62
  }
63
63
  },
64
- "repository": "tooling/cli",
65
64
  "scripts": {
66
65
  "publint": "publint",
67
66
  "lint": "echo 'no lint needed (yet)'",