Skip to content
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
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {fileURLToPath} from 'node:url'

const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')

export default [
const configs = [
includeIgnoreFile(gitignorePath),
...oclif,
prettier,
Expand All @@ -23,3 +23,5 @@ export default [
},
},
]

export default configs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@types/node": "^18",
"chai": "^4.5.0",
"commitlint": "^19",
"eslint": "^9.39.5",
"eslint-config-oclif": "^6.0.179",
"eslint": "^10.8.1",
"eslint-config-oclif": "^7.1.5",
"eslint-config-prettier": "^10.1.8",
"husky": "^9.1.7",
"lint-staged": "^15",
Expand Down
1 change: 1 addition & 0 deletions src/commands/which.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class Which extends Command {
description: 'Wrap command in quotes to use spaces as separators.',
},
]

static strict = false

async run(): Promise<WhichResult> {
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export default {}
const exports = {}

export default exports
4 changes: 2 additions & 2 deletions test/commands/which.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {runCommand} from '@oclif/test'
import {expect} from 'chai'
import {dirname, join} from 'node:path'
import path from 'node:path'
import {fileURLToPath} from 'node:url'

const root = join(dirname(fileURLToPath(import.meta.url)), '..', 'fixtures/test-plugin')
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'fixtures/test-plugin')

describe('which', () => {
it('should return plugin name for colon separated command', async () => {
Expand Down
Loading
Loading