obsidian-plugin-config 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/obsidian-inject.js +1 -1
- package/package.json +2 -2
- package/scripts/help.ts +14 -7
- package/versions.json +3 -1
package/bin/obsidian-inject.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "obsidian-plugin-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Système d'injection pour plugins Obsidian autonomes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"inject": "tsx scripts/inject-prompt.ts",
|
|
38
38
|
"check-plugin": "tsx scripts/inject-path.ts --dry-run",
|
|
39
39
|
"build-npm": "tsx scripts/build-npm.ts",
|
|
40
|
-
"publish
|
|
40
|
+
"publish": "tsx scripts/build-npm.ts",
|
|
41
41
|
"help": "tsx scripts/help.ts",
|
|
42
42
|
"h": "tsx scripts/help.ts"
|
|
43
43
|
},
|
package/scripts/help.ts
CHANGED
|
@@ -25,8 +25,8 @@ GIT & VERSION:
|
|
|
25
25
|
yarn v, update-version # Update version (package.json + versions.json)
|
|
26
26
|
|
|
27
27
|
NPM PUBLISHING:
|
|
28
|
-
yarn
|
|
29
|
-
yarn
|
|
28
|
+
yarn publish # Complete NPM workflow (exports + bin + publish)
|
|
29
|
+
yarn build-npm # Alias for publish
|
|
30
30
|
|
|
31
31
|
HELP:
|
|
32
32
|
yarn run help, h # This help
|
|
@@ -48,15 +48,22 @@ Usage:
|
|
|
48
48
|
|
|
49
49
|
═══════════════════════════════════════════════════════════════════
|
|
50
50
|
|
|
51
|
-
🚀 COMPLETE WORKFLOW (Development → NPM)
|
|
51
|
+
🚀 COMPLETE WORKFLOW (Development → GitHub → NPM)
|
|
52
52
|
|
|
53
53
|
1. Make changes to obsidian-plugin-config
|
|
54
54
|
2. yarn lint:fix # Fix any linting issues
|
|
55
|
-
3. yarn v # Update version (package.json + versions.json)
|
|
56
|
-
4. yarn bacp # Commit and push to GitHub
|
|
57
|
-
5. yarn
|
|
55
|
+
3. yarn v # Update version (package.json + versions.json + push)
|
|
56
|
+
4. yarn bacp # Commit and push changes to GitHub
|
|
57
|
+
5. yarn publish # Complete NPM workflow (exports + bin + publish)
|
|
58
58
|
6. npm install -g obsidian-plugin-config # Update global package
|
|
59
|
-
7. Test injection
|
|
59
|
+
7. Test injection: cd any-plugin && obsidian-inject
|
|
60
|
+
|
|
61
|
+
SIMPLE NPM WORKFLOW:
|
|
62
|
+
yarn publish # One command does everything:
|
|
63
|
+
# → Update exports
|
|
64
|
+
# → Generate bin/obsidian-inject.js
|
|
65
|
+
# → Verify package
|
|
66
|
+
# → Publish to NPM
|
|
60
67
|
|
|
61
68
|
═══════════════════════════════════════════════════════════════════
|
|
62
69
|
|