From 400af74faab6687ec913fa0ac16fcfbc9a91c197 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Sat, 29 Apr 2023 17:25:43 +0200 Subject: [PATCH] Update dependencies and apply coding standard --- package.json | 16 ++++++++-------- src/core.class.ts | 4 +++- src/option.class.ts | 1 + tests/cli.spec.ts | 3 ++- tests/core.class.spec.ts | 1 + tests/option.class.spec.ts | 1 + 6 files changed, 16 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d18888f..1038b00 100644 --- a/package.json +++ b/package.json @@ -30,25 +30,25 @@ }, "dependencies": { - "commander": "10.0.0", + "commander": "10.0.1", "fast-glob": "3.2.12" }, "devDependencies": { - "@isnotdefined/eslint-config": "8.1.0", - "@types/chai": "4.3.4", + "@isnotdefined/eslint-config": "9.5.0", + "@types/chai": "4.3.5", "@types/mocha": "10.0.1", - "@types/node": "18.11.18", + "@types/node": "18.16.3", "chai": "4.3.7", - "eslint": "8.32.0", + "eslint": "8.39.0", "mocha": "10.2.0", - "rollup": "3.10.0", + "rollup": "3.21.1", "rollup-plugin-add-shebang": "0.3.1", "rollup-plugin-copy": "3.4.0", "rollup-plugin-delete": "2.0.0", - "rollup-plugin-ts": "3.1.1", + "rollup-plugin-ts": "3.2.0", "ts-node": "10.9.1", - "typescript": "4.9.4" + "typescript": "5.0.4" }, "scripts": { diff --git a/src/core.class.ts b/src/core.class.ts index 99ca0bb..0482f9c 100755 --- a/src/core.class.ts +++ b/src/core.class.ts @@ -1,8 +1,10 @@ import { EOL } from 'os'; import fs from 'fs'; -import glob from 'fast-glob'; import PATH, { dirname, basename } from 'path'; + +import glob from 'fast-glob'; import { program, Option as CommanderOption } from 'commander'; + import { Helper } from './helper.class.js'; import { Option } from './option.class.js'; import { Metadata, File, Data, Chunk } from './core.interface.js'; diff --git a/src/option.class.ts b/src/option.class.ts index 5858f98..f784b84 100644 --- a/src/option.class.ts +++ b/src/option.class.ts @@ -1,4 +1,5 @@ import { PathLike } from 'fs'; + import { Helper } from './helper.class.js'; import { Options } from './option.interface.js'; diff --git a/tests/cli.spec.ts b/tests/cli.spec.ts index 0495c83..955d743 100644 --- a/tests/cli.spec.ts +++ b/tests/cli.spec.ts @@ -1,7 +1,8 @@ import fs from 'fs'; -import { expect } from 'chai'; import { exec } from 'child_process'; +import { expect } from 'chai'; + describe('cli', () => { it('run main command', done => diff --git a/tests/core.class.spec.ts b/tests/core.class.spec.ts index 1e96ab4..6e45a92 100644 --- a/tests/core.class.spec.ts +++ b/tests/core.class.spec.ts @@ -1,4 +1,5 @@ import { expect } from 'chai'; + import { Core, Option, Helper } from '../src'; describe('core', () => diff --git a/tests/option.class.spec.ts b/tests/option.class.spec.ts index 68660a5..31146ad 100644 --- a/tests/option.class.spec.ts +++ b/tests/option.class.spec.ts @@ -1,4 +1,5 @@ import { expect } from 'chai'; + import { Option, Helper } from '../src'; describe('option', () =>