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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user