openzeppelin-sdk icon indicating copy to clipboard operation
openzeppelin-sdk copied to clipboard

Global CLI installation should not be required for unpack

Open spalladino opened this issue 5 years ago • 1 comments

Since unpack requires an empty directory, the oz binary cannot be installed locally and run via npx oz unpack - it must be installed globally. Even worse, the CLI is then immediately installed locally as it's part of the starter kit dev dependencies.

Reevaluate the unpack flow to ensure the CLI can be installed locally. Some options that come to mind are:

  • Run unpack from outside the CLI, potentially in a package that follows the create- convention to use npm init (see #44)
  • Allow the local directory to have a package.json, and just add the kit's dependencies to it

spalladino avatar Jan 03 '20 18:01 spalladino

Using npm init would be the best IMO.

frangio avatar Mar 02 '20 21:03 frangio