Skip to content

Missing oclif dependency after v0.1.6 #53

@daniel-sampliner

Description

@daniel-sampliner

I recently tried to upgrade from v0.1.5 to v0.1.15, however building failed with:

yarn run v1.22.19
$ rm -rf lib && tsc -b && oclif manifest && oclif readme --multi
/bin/sh: oclif: not found
error Command failed with exit code 127.

Manually bisecting, I found that this started breaking after commit 7c4aac3, specifically the removal of @oclif/dev-cli from devDependencies.

Disclaimer: I don't know the first thing about javascript development or packaging.

But what worked for me was to add oclif (the replacement since @oclif/dev-cli has been deprecated) into devDependencies:

diff --git a/package.json b/package.json
index 63d40c4..913f542 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
     "tslib": "^2.4.0"
   },
   "devDependencies": {
+    "oclif": "^3",
     "@oclif/test": "^2.1.0",
     "@types/chai": "^4",
     "@types/fs-extra": "^9.0.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions