Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit a0a5731

Browse files
committed
Fix hello command
1 parent 52c1cdc commit a0a5731

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

__tests__/commands/hello.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import HelloCommand from '../../commands/hello'
1+
import HelloCommand from '../../src/commands/hello'
22

33
describe('hello', () => {
44
let result: string | undefined;

bin/run

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

33
require('@oclif/command').run()
4-
.then(require('@oclif/command/flush'))
5-
.catch(require('@oclif/errors/handle'))
4+
.then(require('@oclif/command/flush'))
5+
.catch(require('@oclif/errors/handle'))

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"dependencies": {
1111
"@oclif/command": "^1",
1212
"@oclif/config": "^1",
13+
"@oclif/errors": "^1.3.5",
1314
"@oclif/plugin-help": "^3",
1415
"tslib": "^1"
1516
},
@@ -43,14 +44,14 @@
4344
"types": "lib/index.d.ts",
4445
"devDependencies": {
4546
"@fluent/syntax": "^0.17.0",
46-
"@vue/compiler-dom": "^3.2.6",
47-
"@vue/compiler-sfc": "^3.2.6",
4847
"@oclif/dev-cli": "^1",
4948
"@oclif/test": "^1",
5049
"@types/jest": "^27.0.1",
5150
"@types/node": "^10.17.60",
5251
"@typescript-eslint/eslint-plugin": "^4.30.0",
5352
"@typescript-eslint/parser": "^4.30.0",
53+
"@vue/compiler-dom": "^3.2.6",
54+
"@vue/compiler-sfc": "^3.2.6",
5455
"eslint": "^5.13",
5556
"eslint-config-oclif": "^3.1",
5657
"eslint-config-oclif-typescript": "^0.1",

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export { merge as mergeVue, getMessages as getVueMessages } from './vue'
22
export { merge as mergeFtl, getMessages as getFtlMessages } from './ftl'
33
export { MessagesWithLocale } from './types'
4+
5+
export { default as Hello } from './commands/hello'
46
export { run } from '@oclif/command'

0 commit comments

Comments
 (0)