Skip to content

Commit

Permalink
fix(npm): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Apr 24, 2022
1 parent eebbcde commit 4e5a1cf
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 89 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@
],
"dependencies": {
"chalk": "4.1.2",
"commander": "9.1.0",
"commander": "9.2.0",
"cosmiconfig": "7.0.1",
"expect-more": "1.2.0",
"fp-ts": "2.11.9",
"fs-extra": "10.0.1",
"fp-ts": "2.12.0",
"fs-extra": "10.1.0",
"glob": "8.0.1",
"minimatch": "5.0.1",
"read-yaml-file": "2.1.0",
"semver": "7.3.6"
"semver": "7.3.7"
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/glob": "7.2.0",
"@types/jest": "27.4.1",
"@types/node": "17.0.23",
"@types/node": "17.0.25",
"@types/semver": "7.3.9",
"@typescript-eslint/eslint-plugin": "5.19.0",
"@typescript-eslint/parser": "5.19.0",
"eslint": "8.13.0",
"@typescript-eslint/eslint-plugin": "5.20.0",
"@typescript-eslint/parser": "5.20.0",
"eslint": "8.14.0",
"eslint-plugin-import": "2.26.0",
"expect-more-jest": "5.4.0",
"jest": "27.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/bin-fix-mismatches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { fixMismatches } from './fix-mismatches';

program.description(
Expand Down
2 changes: 1 addition & 1 deletion src/bin-format/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { format } from './format';

program.description(
Expand Down
2 changes: 1 addition & 1 deletion src/bin-lint-semver-ranges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { lintSemverRanges } from './lint-semver-ranges';

program.description(
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list-mismatches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { listMismatches } from './list-mismatches';

program.description(
Expand Down
1 change: 0 additions & 1 deletion src/bin-list-mismatches/list-mismatches.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import chalk from 'chalk';
import { version } from 'os';
import { getExpectedVersion } from '../bin-fix-mismatches/get-expected-version';
import { listVersionGroups } from '../bin-list/list-version-groups';
import type { ProgramInput } from '../lib/get-input';
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { list } from './list';

program.description(' List all dependencies required by your packages.');
Expand Down
2 changes: 1 addition & 1 deletion src/bin-set-semver-ranges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import chalk from 'chalk';
import { program } from 'commander';
import { option } from '../option';
import { disk } from '../lib/disk';
import { getInput } from '../lib/get-input';
import { option } from '../option';
import { setSemverRanges } from './set-semver-ranges';

program.description(
Expand Down
6 changes: 5 additions & 1 deletion src/lib/disk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export type Disk = typeof disk;

export const disk = {
globSync(pattern: string): string[] {
return globSync(pattern, { ignore: '**/node_modules/**', absolute: true, cwd: CWD });
return globSync(pattern, {
ignore: '**/node_modules/**',
absolute: true,
cwd: CWD,
});
},
readConfigFileSync(): Partial<SyncpackConfig> {
const rcSearch = cosmiconfigSync('syncpack').search();
Expand Down
4 changes: 2 additions & 2 deletions src/lib/get-input/get-wrappers/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as E from 'fp-ts/lib/Either';
import * as O from 'fp-ts/lib/Option';
import { flow, pipe } from 'fp-ts/lib/function';
import * as O from 'fp-ts/lib/Option';
import type { SyncpackConfig } from '../../../constants';
import type { Disk } from '../../../lib/disk';
import { getFilePaths } from './get-file-paths';
import { readJsonSafe } from './get-patterns/read-json-safe';
import { removeReadonlyType } from './readonly';
import type { Disk } from '../../../lib/disk';

export interface Source {
bugs?: { url: string } | string;
Expand Down
2 changes: 1 addition & 1 deletion src/option.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chalk from 'chalk';
import { collect } from './lib/collect';
import { DEFAULT_CONFIG } from './constants';
import { collect } from './lib/collect';

export const option = {
dev: ['-d, --dev', chalk`include {yellow devDependencies}`],
Expand Down

0 comments on commit 4e5a1cf

Please sign in to comment.