**chore(version): bump version to 0.9.18 and update build configurations**

- Updated version to `0.9.18` in `package.json`, `cli-package/package.json`, and `src/utils/version.ts`.
- Updated npm badge in `README.md` to reflect version `0.9.18`.
- Adjusted `publish-cli.js` to synchronize publishing of the main and CLI packages with enhanced build steps.
- Introduced `tsconfig.json` updates to include type paths (`types.d.ts`) in CLI for better type handling.
- Refined CLI scripts for improved TypeScript annotations and better code structure.
- Removed `@types/omelette` and `omelette` dependencies along with associated CLI configurations to simplify the codebase.
- Updated `.gitignore` to exclude CLI `dist` directory for cleaner repository management.
- Added `deploy:both` npm script for combined publishing of main and CLI packages.

This release ensures version consistency, improves CLI workflows, and enhances type handling while decluttering unused dependencies.
This commit is contained in:
David Snelling 2025-07-02 12:15:35 -07:00
parent da9a37b15c
commit 6abc0ee5c1
10 changed files with 266 additions and 130 deletions

View file

@ -39,22 +39,26 @@ try {
console.log('Building main package...')
execSync('npm run build', { stdio: 'inherit', cwd: rootDir })
// Step 3: Build the CLI package
// Step 3: Publish the main package
console.log('Publishing main package...')
execSync('npm publish', { stdio: 'inherit', cwd: rootDir })
// Step 4: Wait a moment to ensure the package is available
console.log('Waiting for package to be available...')
await new Promise(resolve => setTimeout(resolve, 5000))
// Step 5: Build the CLI package
console.log('Building CLI package...')
execSync('npm run build', { stdio: 'inherit', cwd: cliPackageDir })
// Step 4: Verify the CLI was built successfully
// Step 6: Verify the CLI was built successfully
const cliPath = path.join(cliPackageDir, 'dist', 'cli.js')
if (!fs.existsSync(cliPath)) {
console.error(`Error: CLI build failed. File not found at ${cliPath}`)
process.exit(1)
}
// Step 5: Publish the main package
console.log('Publishing main package...')
execSync('npm publish', { stdio: 'inherit', cwd: rootDir })
// Step 6: Publish the CLI package
// Step 7: Publish the CLI package
console.log('Publishing CLI package...')
execSync('npm publish', { stdio: 'inherit', cwd: cliPackageDir })