Skip to content

Commit

Permalink
fix lint warnings and remove jsr stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jul 7, 2024
1 parent a1e3222 commit cdd2b2f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm && npm publish --provenance
- name: JSR publish
run: deno publish
8 changes: 1 addition & 7 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,5 @@
"semiColons": false,
"singleQuote": true
},
"exclude": ["npm", "coverage", ".cache"],
"name": "@stauro/spektr",
"version": "0.1.1",
"exports": {
".": "./spektr.ts",
"./plugins/color": "./plugins.color.ts"
}
"exclude": ["npm", "coverage", ".cache"]
}
2 changes: 1 addition & 1 deletion parse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typeDetect from 'https://deno.land/x/[email protected]/index.js'
import { Option, ParsedOptions } from './types.ts'
import type { Option, ParsedOptions } from './types.ts'
import { parseArgs, type ParseArgsConfig } from 'node:util'

export const handleArgParsing = <
Expand Down
14 changes: 7 additions & 7 deletions spektr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type ParseArgsConfig } from 'node:util'
import {
import type { ParseArgsConfig } from 'node:util'
import type {
Action,
Command,
Middleware,
Expand All @@ -16,7 +16,7 @@ import {
makeFullPath,
} from './utils.ts'
import { getBorderCharacters, table } from './deps.ts'
import { Plugin } from './types.ts'
import type { Plugin } from './types.ts'

/**
* Skeptr CLI app class.
Expand Down Expand Up @@ -282,11 +282,11 @@ export class CLI {
*/
program(
prefix: string,
program = new CLI({
program: CLI = new CLI({
name: prefix,
prefix,
}),
) {
): CLI {
program.plugins = this.plugins.concat(program.plugins)

for (const plugin of program.plugins) {
Expand All @@ -306,7 +306,7 @@ export class CLI {
createVersionMessage(
version = '0.0.0',
misc = '',
) {
): string {
return this.name
? `${this.name}: ${version}${misc}`
: `Spektr: ${version}${misc}`
Expand All @@ -331,7 +331,7 @@ export class CLI {
}],
})
}
helpMessage() {
helpMessage(): string {
const defaultCommands = this.commands.filter((cmd) => cmd.name === '')

const defaultCommandOptions = defaultCommands.map((cmd) => cmd.options).map(
Expand Down
2 changes: 1 addition & 1 deletion types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CLI } from './spektr.ts'
import type { CLI } from './spektr.ts'

type OptionType = boolean | string | number

Expand Down

0 comments on commit cdd2b2f

Please sign in to comment.