Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: Require Ink v4. #199

Merged
merged 9 commits into from
Feb 11, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix messages.
  • Loading branch information
milesj committed Feb 11, 2024
commit 734f4b6d3d3133c7fb265a53e61a667c29f248b3
2 changes: 1 addition & 1 deletion packages/cli/examples/commands/ScaffoldCommand.mjs
Original file line number Diff line number Diff line change
@@ -17,6 +17,6 @@ export default class ScaffoldCommand extends Command {
}

async run() {
return this.renderHelp();
return this.render(await this.createHelp());
}
}
1 change: 1 addition & 0 deletions packages/cli/moon.yml
Original file line number Diff line number Diff line change
@@ -3,4 +3,5 @@ type: 'application'
tasks:
dev:
command: 'node ./examples/bin.mjs'
deps: ['build']
local: true
6 changes: 5 additions & 1 deletion packages/cli/src/translate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { createTranslator } from '@boost/translate';

export const msg = createTranslator(['cli', 'prompt'], path.join(__dirname, '../res'));
export const msg = createTranslator(
['cli', 'prompt'],
path.join(path.dirname(fileURLToPath(import.meta.url)), '../res'),
);