Skip to content

Commit 3075b86

Browse files
committed
Optionally skip package installation.
1 parent 5033635 commit 3075b86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/cli-install.js

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ const yarnInstall = (local) => {
6868
const repositoryInstall = async (remote, local) => {
6969
ensureLocalDir(local)
7070
await ensureGitClone(remote, local)
71+
72+
const options = cli.opts()
73+
if (options.skipPackages) return
74+
7175
await yarnInstall(local)
7276
}
7377

@@ -77,6 +81,7 @@ const repositoryInstall = async (remote, local) => {
7781
cli
7882
.version(version)
7983
.arguments('[repository]')
84+
.option('--skip-packages', "don't install packages")
8085
.action(async (repository) => {
8186
try {
8287
ensureGitIgnore()

0 commit comments

Comments
 (0)