- Created package.json and package-lock.json for CLI package. - Implemented argument parsing in args.ts to handle various flags and commands. - Developed main CLI logic in cli.ts to execute commands and handle errors. - Added configuration loading from a JSON file in config.ts, with environment variable support. - Implemented prompt resolution and provider interaction in prompt.ts. - Added usage documentation for the CLI. - Configured TypeScript settings in tsconfig.json for the CLI package. - Updated README in vscode package to reflect the new CLI functionality. - Refactored root tsconfig.json to streamline project structure.
34 lines
940 B
TypeScript
34 lines
940 B
TypeScript
import { resolve } from 'node:path';
|
|
import { defineConfig } from 'wxt';
|
|
import pkg from './package.json';
|
|
|
|
export default defineConfig({
|
|
extensionApi: 'chrome',
|
|
// Shared-code alias. Deliberately NOT "~" or "@" — WXT force-overwrites those
|
|
// to srcDir, so they cannot point at the monorepo shared lib.
|
|
alias: {
|
|
'@lib': resolve(__dirname, '../../src/lib'),
|
|
},
|
|
modules: ['@wxt-dev/module-react'],
|
|
manifest: {
|
|
name: 'LexAI - AI Writing Assistant',
|
|
description: 'Grammar checking and writing assistance powered by your own LLM API key',
|
|
// Single source of truth: manifest version always follows package.json.
|
|
version: pkg.version,
|
|
icons: {
|
|
'16': 'icon-16.png',
|
|
'32': 'icon-32.png',
|
|
'48': 'icon-48.png',
|
|
'128': 'icon-128.png',
|
|
},
|
|
permissions: [
|
|
'storage',
|
|
'activeTab',
|
|
'contextMenus',
|
|
],
|
|
host_permissions: [
|
|
'<all_urls>',
|
|
],
|
|
},
|
|
});
|