Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bump oclif dependencies #322

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"types": "lib/index.d.ts",
"bugs": "https://github.com/contentful-labs/cf-content-types-generator/issues",
"engines": {
"node": ">=12.0.0"
"node": ">=18.0.0"
},
"oclif": {
"default": ".",
Expand All @@ -23,30 +23,31 @@
"/lib"
],
"dependencies": {
"@oclif/core": "^2.11.6",
"@oclif/plugin-help": "^5.2.18",
"@oclif/core": "^3.16.0",
"@oclif/plugin-help": "^6.0.9",
"contentful": "^10.6.1",
"contentful-export": "^7.19.77",
"contentful-management": "^10.40.1",
"fs-extra": "^11.1.1",
"fs-extra": "^11.2.0",
"lodash": "^4.17.21",
"ts-morph": "^19.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@types/fs-extra": "^11.0.1",
"@types/cli-progress": "^3.11.5",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.4",
"@types/lodash": "^4.14.155",
"@types/node": "^18.11.17",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4.0.0",
"eslint-config-oclif-typescript": "^1.0.2",
"eslint-config-oclif-typescript": "^2.0.1",
"eslint-config-prettier": "^8.6.0",
"husky": "^8.0.0",
"jest": "^29.6.4",
"jest-fixtures": "^0.6.0",
"lint-staged": "^13.1.0",
"oclif": "^3.4.3",
"oclif": "^4.1.3",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.0.0",
"semantic-release": "^19.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ContentfulMdg extends Command {
async run(): Promise<string | void> {
const { args, flags } = await this.parse(ContentfulMdg);

if (args.file && !fs.existsSync(args.file)) {
if (args.file && !fs.pathExistsSync(args.file)) {
this.error(`file ${args.file} doesn't exists.`);
}

Expand Down Expand Up @@ -104,7 +104,7 @@ class ContentfulMdg extends Command {

if (flags.out) {
const outDir = path.resolve(flags.out);
if (!flags.preserve && fs.existsSync(outDir)) {
if (!flags.preserve && fs.pathExistsSync(outDir)) {
await fs.remove(outDir);
}

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/type/default-content-type-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class DefaultContentTypeRenderer extends BaseContentTypeRenderer {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-unused-vars
protected addDefaultImports(context: RenderContext): void {}

protected renderField(
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/type/v10-content-type-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class V10ContentTypeRenderer extends BaseContentTypeRenderer {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-unused-vars
protected addDefaultImports(context: RenderContext): void {}

protected renderField(
Expand Down
1 change: 1 addition & 0 deletions test/cf-definitions-builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { writeFile } from 'fs-extra';
import { cleanupTempDirs, createTempDir } from 'jest-fixtures';
import * as path from 'node:path';

// eslint-disable-next-line import/no-named-as-default
import CFDefinitionsBuilder, {
DefaultContentTypeRenderer,
LocalizedContentTypeRenderer,
Expand Down
3 changes: 1 addition & 2 deletions test/property-imports.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { propertyImports } from '../src';
import { createDefaultContext } from '../src';
import { propertyImports, createDefaultContext } from '../src';

describe('A typeImports function', () => {
it('returns imports for referenced Entry', () => {
Expand Down
Loading