Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 4f9e4f3

Browse files
fix: revert the * as X syntax as not feasible
1 parent 14f1dd0 commit 4f9e4f3

22 files changed

+26
-28
lines changed

scripts/colors.script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ yarn tsx scripts/colors.script.ts
55
*/
66

77
import type { Color, Modifiers } from 'chalk'
8-
import { chalk } from '../src/colors/colors'
8+
import chalk from 'chalk'
99
import { runScript } from '../src/script/runScript'
1010

1111
const s = 'Hello World! 1 2 3 4 5ms'

src/bin/generate-build-info.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env node
22

3-
import * as fs from 'node:fs'
4-
import * as path from 'node:path'
3+
import fs from 'node:fs'
4+
import path from 'node:path'
55
import type { UnixTimestamp } from '@naturalcycles/js-lib'
6-
import * as yargs from 'yargs'
6+
import yargs from 'yargs'
77
import { appendToBashEnv, appendToGithubEnv, appendToGithubOutput } from '../fs/json2env'
88
import { runScript } from '../script/runScript'
99
import { generateBuildInfo } from '../util/buildInfo.util'

src/bin/json2env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs'
3+
import yargs from 'yargs'
44
import { json2env } from '../fs/json2env'
55
import { runScript } from '../script/runScript'
66

src/bin/kpy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs'
3+
import yargs from 'yargs'
44
import { kpySync } from '../fs/kpy'
55
import { runScript } from '../script/runScript'
66

src/bin/secrets-decrypt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs'
3+
import yargs from 'yargs'
44
import { dimGrey } from '../colors/colors'
55
import { runScript } from '../script/runScript'
66
import type { DecryptCLIOptions } from '../secret/secrets-decrypt.util'

src/bin/secrets-encrypt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs'
3+
import yargs from 'yargs'
44
import { dimGrey } from '../colors/colors'
55
import { runScript } from '../script/runScript'
66
import type { EncryptCLIOptions } from '../secret/secrets-encrypt.util'

src/bin/secrets-gen-key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
import { randomBytes } from 'node:crypto'
4-
import * as yargs from 'yargs'
4+
import yargs from 'yargs'
55
import { dimGrey } from '../colors/colors'
66
import { runScript } from '../script/runScript'
77

src/bin/slack-this.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import * as yargs from 'yargs'
3+
import yargs from 'yargs'
44
import { SlackService } from '..'
55
import { runScript } from '../script/runScript'
66

src/colors/colors.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import * as tty from 'node:tty'
1+
import tty from 'node:tty'
22
import chalk from 'chalk'
33

4-
export { chalk }
5-
64
/**
75
* Based on: https://github.com/sindresorhus/yoctocolors/pull/5
86
*

src/fs/fs2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Credit to: fs-extra (https://github.com/jprichardson/node-fs-extra)
1717
import type { RmOptions, Stats } from 'node:fs'
1818
import fs from 'node:fs'
1919
import fsp from 'node:fs/promises'
20-
import * as path from 'node:path'
20+
import path from 'node:path'
2121
import { createGzip, createUnzip } from 'node:zlib'
2222
import { _isTruthy, _jsonParse } from '@naturalcycles/js-lib'
2323
import type { DumpOptions } from 'js-yaml'
24-
import * as yaml from 'js-yaml'
24+
import yaml from 'js-yaml'
2525
import { transformToNDJson } from '../stream/ndjson/transformToNDJson'
2626
import type { ReadableTyped, TransformTyped } from '../stream/stream.model'
2727
import { transformSplitOnNewline } from '../stream/transform/transformSplit'

0 commit comments

Comments
 (0)