Skip to content

Commit

Permalink
fix: oclif command location
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolink committed Sep 19, 2023
1 parent 8d7a248 commit d436893
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Empty file modified bin/dev
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"node": ">=12.0.0"
},
"oclif": {
"bin": "cf-content-types-generator"
"default": ".",
"commands": "./lib/commands"
},
"repository": "contentful-labs/cf-content-types-generator",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts → src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import contentfulExport from 'contentful-export';
import * as fs from 'fs-extra';
import { writeFile } from 'fs-extra';
import * as path from 'node:path';
import CFDefinitionsBuilder from './cf-definitions-builder';
import CFDefinitionsBuilder from '../cf-definitions-builder';
import {
ContentTypeRenderer,
DefaultContentTypeRenderer,
Expand All @@ -13,7 +13,7 @@ import {
TypeGuardRenderer,
V10ContentTypeRenderer,
V10TypeGuardRenderer,
} from './renderer';
} from '../renderer';

class ContentfulMdg extends Command {
static description = 'Contentful Content Types (TS Definitions) Generator';
Expand Down

0 comments on commit d436893

Please sign in to comment.