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

@@ -105,8 +105,6 @@ export async function createOptimizedBuildConfig(mode: string): Promise<UserConf
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'),
@@ -116,8 +114,8 @@ export async function createOptimizedBuildConfig(mode: string): Promise<UserConf
},
optimizeDeps: {
include: [
'@nostr/tools',
'@nostr/tools/nip06',
'nostr-tools',
'nostr-tools/nip06',
'vue',
'vue-router',
'pinia',