switch(pnpm): add pnpm get rid of npm

On branch master
 Your branch is up to date with 'origin/master'.
 Changes to be committed:
	modified:   .npmrc
	deleted:    lcontent-farm.code-workspace
	modified:   main.ts
	deleted:    package-lock.json
	modified:   package.json
	new file:   pnpm-lock.yaml
	modified:   versions.json
This commit is contained in:
mpstaton 2025-06-07 18:25:25 +03:00
parent fbfaa55bf7
commit 0145a51fd7
7 changed files with 11 additions and 16 deletions

4
.npmrc
View file

@ -1 +1,3 @@
tag-version-prefix=""
shamefully-hoist=true
auto-install-peers=true
shared-workspace-lockfile=false

View file

@ -1,7 +0,0 @@
{
"folders": [
{
"path": "."
}
]
}

View file

@ -17,9 +17,9 @@ export default class MyPlugin extends Plugin {
await this.loadSettings();
// This creates an icon in the left ribbon.
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => {
const ribbonIconEl = this.addRibbonIcon('dice', 'Content Farm', (evt: MouseEvent) => {
// Called when the user clicks the icon.
new Notice('This is a notice!');
new Notice('This is Lossless notice!');
});
// Perform additional things with the ribbon
ribbonIconEl.addClass('my-plugin-ribbon-class');
@ -31,7 +31,7 @@ export default class MyPlugin extends Plugin {
// This adds a simple command that can be triggered anywhere
this.addCommand({
id: 'open-sample-modal-simple',
name: 'Open sample modal (simple)',
name: 'Open new modal (simple)',
callback: () => {
new SampleModal(this.app).open();
}

BIN
package-lock.json generated

Binary file not shown.

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-sample-plugin",
"version": "1.0.0",
"name": "content-farm",
"version": "0.0.0.1",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
@ -8,8 +8,8 @@
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"keywords": ["Obsidian", "Plugin", "Content-Farm", "AI"],
"author": "The Lossless Group",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",

BIN
pnpm-lock.yaml Normal file

Binary file not shown.

View file

@ -1,3 +1,3 @@
{
"1.0.0": "0.15.0"
"0.0.0.1": "0.15.0"
}