@digigov/cli 1.0.0-rc → 1.0.0-rc.2
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 +1 -1
- package/lib.js +5 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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/1.0.0-rc darwin-arm64 node-v16.20.0
|
|
22
|
+
@digigov/cli/1.0.0-rc.2 darwin-arm64 node-v16.20.0
|
|
23
23
|
$ digigov --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ digigov COMMAND
|
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 = {}
|
|
@@ -95,6 +99,7 @@ function resolveProject(dir) {
|
|
|
95
99
|
workspace,
|
|
96
100
|
ignore,
|
|
97
101
|
digigov,
|
|
102
|
+
externalLockFile,
|
|
98
103
|
};
|
|
99
104
|
}
|
|
100
105
|
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.0-rc","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-rc.2","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"}]}}}
|