update package/npm since migrating jsbrains to workspace

This commit is contained in:
Brian Joseph Petro 2025-04-20 18:44:39 -04:00
parent 8a0d75df35
commit 60bb760cae
5 changed files with 939 additions and 256 deletions

2
.npmrc Normal file
View file

@ -0,0 +1,2 @@
install-links=true
install-strategy=hoisted

View file

@ -149,8 +149,8 @@ export class LinkDepthModal extends SuggestModal {
* @param {DepthInfo} item
*/
async onChooseSuggestion(item) {
const { context, stats } = await item.sc_item.compile({ link_depth: item.depth });
await this.plugin.copy_to_clipboard(context);
const { context, stats, images } = await item.sc_item.compile({ link_depth: item.depth });
await this.plugin.copy_to_clipboard(context, images);
this.plugin.showStatsNotice(stats, `Depth ${item.depth} selected`);
new Notice('Copied context to clipboard!');

View file

@ -146,8 +146,8 @@ export default class SmartContextPlugin extends Plugin {
context_items: { [folder.path]: true },
});
const { context, stats } = await sc_item.compile({ link_depth: 0 });
await this.copy_to_clipboard(context);
const { context, stats, images } = await sc_item.compile({ link_depth: 0 });
await this.copy_to_clipboard(context, images);
this.showStatsNotice(stats, `Folder: ${folder.path}`);
}

1182
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -39,5 +39,6 @@
"ava": "^5.3.1",
"dotenv": "^16.4.7",
"esbuild": "^0.24.0"
}
},
"workspaces": ["../jsbrains/*"]
}