chore(deps): use npm nostr-tools instead of JSR @nostr/tools

- Replace "npm:@jsr/nostr__tools" with "nostr-tools" to fix npm 404
- Update imports in NewEditProjectView and Vite configs
- Remove Vite aliases so resolution uses package exports
This commit is contained in:
Jose Olarte III
2026-03-09 20:25:20 +08:00
parent f3cf228b48
commit 7ae36ec361
9 changed files with 7889 additions and 220 deletions

View File

@@ -91,8 +91,6 @@ export async function createBuildConfig(platform: string): Promise<UserConfig> {
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@nostr/tools': path.resolve(__dirname, 'node_modules/@nostr/tools'),
'@nostr/tools/nip06': path.resolve(__dirname, 'node_modules/@nostr/tools/nip06'),
...appConfig.aliasConfig,
'path': path.resolve(__dirname, './src/utils/node-modules/path.js'),
'fs': path.resolve(__dirname, './src/utils/node-modules/fs.js'),
@@ -102,8 +100,8 @@ export async function createBuildConfig(platform: string): Promise<UserConfig> {
},
optimizeDeps: {
include: [
'@nostr/tools',
'@nostr/tools/nip06',
'nostr-tools',
'nostr-tools/nip06',
'@jlongster/sql.js',
'absurd-sql',
'absurd-sql/dist/indexeddb-main-thread',