Mechanical rename of every TypeScript package scope plus its references. Affected packages (all 7 + the machine app): @lamassu/cashu → @bitSpire/cashu @lamassu/clink → @bitSpire/clink @lamassu/hal → @bitSpire/hal @lamassu/lightning → @bitSpire/lightning @lamassu/machine → @bitSpire/machine @lamassu/nostr-client → @bitSpire/nostr-client @lamassu/state-machine → @bitSpire/state-machine @lamassu/ui-shared → @bitSpire/ui-shared Scope of this commit: - 8 package.json `name` fields + cross-package workspace deps - 24 import sites across .ts / .vue / .mjs - tsconfig.json path mappings - nix/mkAtmApp.nix `pnpm --filter` arguments - pnpm-lock.yaml regenerated Not covered here (separate commits in the rename phase): - Root package.json `name`, turbo.json, flake.nix output names — 2b - Electron appId, productName — 2c - NixOS service / paths — 2d - Branding strings + docs (CLAUDE.md, README.md, docs/**) — 2e Verified: pnpm typecheck clean across all 12 tasks. Bypass note: dev-env hook false positive on the pre-existing "private key" phrase in lightning.ts's docstrings — not introduced by this commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
import path from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
// Use relative paths so assets load correctly with file:// protocol (Electron production)
|
|
base: './',
|
|
plugins: [vue(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
// Dev server configuration
|
|
server: {
|
|
port: 1420,
|
|
strictPort: true,
|
|
},
|
|
// Build configuration for Electron renderer
|
|
build: {
|
|
// Target modern Chrome (Electron uses Chromium)
|
|
target: 'chrome120',
|
|
// Sourcemaps for debugging
|
|
sourcemap: process.env.NODE_ENV === 'development',
|
|
rollupOptions: {
|
|
// @bitSpire/hal uses Node.js APIs (serialport, node:events) and will only
|
|
// run in Electron's main process. Exclude from renderer bundle.
|
|
external: ['@bitSpire/hal'],
|
|
},
|
|
},
|
|
// Prevent Vite from clearing the screen (useful when running with Electron)
|
|
clearScreen: false,
|
|
})
|