obsidian-plugin-config 1.0.2
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/.vscode/settings.json +4 -0
- package/README.md +45 -0
- package/bin/obsidian-inject.js +98 -0
- package/obsidian-plugin-config-1.0.2.tgz +0 -0
- package/package.json +88 -0
- package/scripts/acp.ts +71 -0
- package/scripts/build-npm.ts +137 -0
- package/scripts/esbuild.config.ts +311 -0
- package/scripts/help.ts +46 -0
- package/scripts/inject-path.ts +487 -0
- package/scripts/inject-prompt.ts +399 -0
- package/scripts/open-editor.mjs +18 -0
- package/scripts/release.ts +97 -0
- package/scripts/update-exports.js +91 -0
- package/scripts/update-version-config.ts +98 -0
- package/scripts/update-version.ts +102 -0
- package/scripts/utils.ts +117 -0
- package/src/index.ts +6 -0
- package/src/main_test.ts +106 -0
- package/src/modals/GenericConfirmModal.ts +67 -0
- package/src/modals/index.ts +3 -0
- package/src/test-centralized-utils.ts +23 -0
- package/src/tools/index.ts +9 -0
- package/src/utils/NoticeHelper.ts +102 -0
- package/src/utils/SettingsHelper.ts +180 -0
- package/src/utils/index.ts +3 -0
- package/templates/.vscode/settings.json +4 -0
- package/templates/eslint.config.ts +48 -0
- package/templates/help-plugin.ts +39 -0
- package/templates/package-versions.json +28 -0
- package/templates/tsconfig.json +37 -0
- package/test-plugin/manifest.json +10 -0
- package/test-plugin/package.json +38 -0
- package/test-plugin/scripts/acp.ts +71 -0
- package/test-plugin/scripts/esbuild.config.ts +165 -0
- package/test-plugin/scripts/help.ts +29 -0
- package/test-plugin/scripts/release.ts +97 -0
- package/test-plugin/scripts/update-version.ts +102 -0
- package/test-plugin/scripts/utils.ts +117 -0
- package/test-plugin/src/main.ts +11 -0
- package/test-plugin/yarn.lock +386 -0
- package/test-plugin-v2/main.js +5 -0
- package/test-plugin-v2/manifest.json +10 -0
- package/test-plugin-v2/package.json +40 -0
- package/test-plugin-v2/scripts/acp.ts +71 -0
- package/test-plugin-v2/scripts/esbuild.config.ts +165 -0
- package/test-plugin-v2/scripts/help.ts +29 -0
- package/test-plugin-v2/scripts/release.ts +97 -0
- package/test-plugin-v2/scripts/update-version.ts +102 -0
- package/test-plugin-v2/scripts/utils.ts +117 -0
- package/test-plugin-v2/src/main.ts +11 -0
- package/test-plugin-v2/tsconfig.json +31 -0
- package/test-plugin-v2/yarn.lock +1986 -0
- package/tsconfig.json +38 -0
- package/versions.json +5 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
2
|
+
# yarn lockfile v1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
"@esbuild/aix-ppc64@0.25.5":
|
|
6
|
+
version "0.25.5"
|
|
7
|
+
resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz#4e0f91776c2b340e75558f60552195f6fad09f18"
|
|
8
|
+
integrity sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==
|
|
9
|
+
|
|
10
|
+
"@esbuild/android-arm64@0.17.3":
|
|
11
|
+
version "0.17.3"
|
|
12
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.3.tgz#35d045f69c9b4cf3f8efcd1ced24a560213d3346"
|
|
13
|
+
integrity sha512-XvJsYo3dO3Pi4kpalkyMvfQsjxPWHYjoX4MDiB/FUM4YMfWcXa5l4VCwFWVYI1+92yxqjuqrhNg0CZg3gSouyQ==
|
|
14
|
+
|
|
15
|
+
"@esbuild/android-arm64@0.25.5":
|
|
16
|
+
version "0.25.5"
|
|
17
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.25.5.tgz#bc766407f1718923f6b8079c8c61bf86ac3a6a4f"
|
|
18
|
+
integrity sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==
|
|
19
|
+
|
|
20
|
+
"@esbuild/android-arm@0.17.3":
|
|
21
|
+
version "0.17.3"
|
|
22
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.17.3.tgz#4986d26306a7440078d42b3bf580d186ef714286"
|
|
23
|
+
integrity sha512-1Mlz934GvbgdDmt26rTLmf03cAgLg5HyOgJN+ZGCeP3Q9ynYTNMn2/LQxIl7Uy+o4K6Rfi2OuLsr12JQQR8gNg==
|
|
24
|
+
|
|
25
|
+
"@esbuild/android-arm@0.25.5":
|
|
26
|
+
version "0.25.5"
|
|
27
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.25.5.tgz#4290d6d3407bae3883ad2cded1081a234473ce26"
|
|
28
|
+
integrity sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==
|
|
29
|
+
|
|
30
|
+
"@esbuild/android-x64@0.17.3":
|
|
31
|
+
version "0.17.3"
|
|
32
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.17.3.tgz#a1928cd681e4055103384103c8bd34df7b9c7b19"
|
|
33
|
+
integrity sha512-nuV2CmLS07Gqh5/GrZLuqkU9Bm6H6vcCspM+zjp9TdQlxJtIe+qqEXQChmfc7nWdyr/yz3h45Utk1tUn8Cz5+A==
|
|
34
|
+
|
|
35
|
+
"@esbuild/android-x64@0.25.5":
|
|
36
|
+
version "0.25.5"
|
|
37
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.25.5.tgz#40c11d9cbca4f2406548c8a9895d321bc3b35eff"
|
|
38
|
+
integrity sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==
|
|
39
|
+
|
|
40
|
+
"@esbuild/darwin-arm64@0.17.3":
|
|
41
|
+
version "0.17.3"
|
|
42
|
+
resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.17.3.tgz#e4af2b392e5606a4808d3a78a99d38c27af39f1d"
|
|
43
|
+
integrity sha512-01Hxaaat6m0Xp9AXGM8mjFtqqwDjzlMP0eQq9zll9U85ttVALGCGDuEvra5Feu/NbP5AEP1MaopPwzsTcUq1cw==
|
|
44
|
+
|
|
45
|
+
"@esbuild/darwin-arm64@0.25.5":
|
|
46
|
+
version "0.25.5"
|
|
47
|
+
resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.25.5.tgz#49d8bf8b1df95f759ac81eb1d0736018006d7e34"
|
|
48
|
+
integrity sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==
|
|
49
|
+
|
|
50
|
+
"@esbuild/darwin-x64@0.17.3":
|
|
51
|
+
version "0.17.3"
|
|
52
|
+
resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.17.3.tgz#cbcbfb32c8d5c86953f215b48384287530c5a38e"
|
|
53
|
+
integrity sha512-Eo2gq0Q/er2muf8Z83X21UFoB7EU6/m3GNKvrhACJkjVThd0uA+8RfKpfNhuMCl1bKRfBzKOk6xaYKQZ4lZqvA==
|
|
54
|
+
|
|
55
|
+
"@esbuild/darwin-x64@0.25.5":
|
|
56
|
+
version "0.25.5"
|
|
57
|
+
resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.25.5.tgz#e27a5d92a14886ef1d492fd50fc61a2d4d87e418"
|
|
58
|
+
integrity sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==
|
|
59
|
+
|
|
60
|
+
"@esbuild/freebsd-arm64@0.17.3":
|
|
61
|
+
version "0.17.3"
|
|
62
|
+
resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.3.tgz#90ec1755abca4c3ffe1ad10819cd9d31deddcb89"
|
|
63
|
+
integrity sha512-CN62ESxaquP61n1ZjQP/jZte8CE09M6kNn3baos2SeUfdVBkWN5n6vGp2iKyb/bm/x4JQzEvJgRHLGd5F5b81w==
|
|
64
|
+
|
|
65
|
+
"@esbuild/freebsd-arm64@0.25.5":
|
|
66
|
+
version "0.25.5"
|
|
67
|
+
resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.5.tgz#97cede59d638840ca104e605cdb9f1b118ba0b1c"
|
|
68
|
+
integrity sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==
|
|
69
|
+
|
|
70
|
+
"@esbuild/freebsd-x64@0.17.3":
|
|
71
|
+
version "0.17.3"
|
|
72
|
+
resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.17.3.tgz#8760eedc466af253c3ed0dfa2940d0e59b8b0895"
|
|
73
|
+
integrity sha512-feq+K8TxIznZE+zhdVurF3WNJ/Sa35dQNYbaqM/wsCbWdzXr5lyq+AaTUSER2cUR+SXPnd/EY75EPRjf4s1SLg==
|
|
74
|
+
|
|
75
|
+
"@esbuild/freebsd-x64@0.25.5":
|
|
76
|
+
version "0.25.5"
|
|
77
|
+
resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.25.5.tgz#71c77812042a1a8190c3d581e140d15b876b9c6f"
|
|
78
|
+
integrity sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==
|
|
79
|
+
|
|
80
|
+
"@esbuild/linux-arm64@0.17.3":
|
|
81
|
+
version "0.17.3"
|
|
82
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.17.3.tgz#13916fc8873115d7d546656e19037267b12d4567"
|
|
83
|
+
integrity sha512-JHeZXD4auLYBnrKn6JYJ0o5nWJI9PhChA/Nt0G4MvLaMrvXuWnY93R3a7PiXeJQphpL1nYsaMcoV2QtuvRnF/g==
|
|
84
|
+
|
|
85
|
+
"@esbuild/linux-arm64@0.25.5":
|
|
86
|
+
version "0.25.5"
|
|
87
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.25.5.tgz#f7b7c8f97eff8ffd2e47f6c67eb5c9765f2181b8"
|
|
88
|
+
integrity sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==
|
|
89
|
+
|
|
90
|
+
"@esbuild/linux-arm@0.17.3":
|
|
91
|
+
version "0.17.3"
|
|
92
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.17.3.tgz#15f876d127b244635ddc09eaaa65ae97bc472a63"
|
|
93
|
+
integrity sha512-CLP3EgyNuPcg2cshbwkqYy5bbAgK+VhyfMU7oIYyn+x4Y67xb5C5ylxsNUjRmr8BX+MW3YhVNm6Lq6FKtRTWHQ==
|
|
94
|
+
|
|
95
|
+
"@esbuild/linux-arm@0.25.5":
|
|
96
|
+
version "0.25.5"
|
|
97
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.25.5.tgz#2a0be71b6cd8201fa559aea45598dffabc05d911"
|
|
98
|
+
integrity sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==
|
|
99
|
+
|
|
100
|
+
"@esbuild/linux-ia32@0.17.3":
|
|
101
|
+
version "0.17.3"
|
|
102
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.17.3.tgz#6691f02555d45b698195c81c9070ab4e521ef005"
|
|
103
|
+
integrity sha512-FyXlD2ZjZqTFh0sOQxFDiWG1uQUEOLbEh9gKN/7pFxck5Vw0qjWSDqbn6C10GAa1rXJpwsntHcmLqydY9ST9ZA==
|
|
104
|
+
|
|
105
|
+
"@esbuild/linux-ia32@0.25.5":
|
|
106
|
+
version "0.25.5"
|
|
107
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.25.5.tgz#763414463cd9ea6fa1f96555d2762f9f84c61783"
|
|
108
|
+
integrity sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==
|
|
109
|
+
|
|
110
|
+
"@esbuild/linux-loong64@0.17.3":
|
|
111
|
+
version "0.17.3"
|
|
112
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.17.3.tgz#f77ef657f222d8b3a8fbd530a09e40976c458d48"
|
|
113
|
+
integrity sha512-OrDGMvDBI2g7s04J8dh8/I7eSO+/E7nMDT2Z5IruBfUO/RiigF1OF6xoH33Dn4W/OwAWSUf1s2nXamb28ZklTA==
|
|
114
|
+
|
|
115
|
+
"@esbuild/linux-loong64@0.25.5":
|
|
116
|
+
version "0.25.5"
|
|
117
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.25.5.tgz#428cf2213ff786a502a52c96cf29d1fcf1eb8506"
|
|
118
|
+
integrity sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==
|
|
119
|
+
|
|
120
|
+
"@esbuild/linux-mips64el@0.17.3":
|
|
121
|
+
version "0.17.3"
|
|
122
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.17.3.tgz#fa38833cfc8bfaadaa12b243257fe6d19d0f6f79"
|
|
123
|
+
integrity sha512-DcnUpXnVCJvmv0TzuLwKBC2nsQHle8EIiAJiJ+PipEVC16wHXaPEKP0EqN8WnBe0TPvMITOUlP2aiL5YMld+CQ==
|
|
124
|
+
|
|
125
|
+
"@esbuild/linux-mips64el@0.25.5":
|
|
126
|
+
version "0.25.5"
|
|
127
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.25.5.tgz#5cbcc7fd841b4cd53358afd33527cd394e325d96"
|
|
128
|
+
integrity sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==
|
|
129
|
+
|
|
130
|
+
"@esbuild/linux-ppc64@0.17.3":
|
|
131
|
+
version "0.17.3"
|
|
132
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.17.3.tgz#c157a602b627c90d174743e4b0dfb7630b101dbf"
|
|
133
|
+
integrity sha512-BDYf/l1WVhWE+FHAW3FzZPtVlk9QsrwsxGzABmN4g8bTjmhazsId3h127pliDRRu5674k1Y2RWejbpN46N9ZhQ==
|
|
134
|
+
|
|
135
|
+
"@esbuild/linux-ppc64@0.25.5":
|
|
136
|
+
version "0.25.5"
|
|
137
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.25.5.tgz#0d954ab39ce4f5e50f00c4f8c4fd38f976c13ad9"
|
|
138
|
+
integrity sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==
|
|
139
|
+
|
|
140
|
+
"@esbuild/linux-riscv64@0.17.3":
|
|
141
|
+
version "0.17.3"
|
|
142
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.17.3.tgz#7bf79614bd544bd932839b1fcff6cf1f8f6bdf1a"
|
|
143
|
+
integrity sha512-WViAxWYMRIi+prTJTyV1wnqd2mS2cPqJlN85oscVhXdb/ZTFJdrpaqm/uDsZPGKHtbg5TuRX/ymKdOSk41YZow==
|
|
144
|
+
|
|
145
|
+
"@esbuild/linux-riscv64@0.25.5":
|
|
146
|
+
version "0.25.5"
|
|
147
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.25.5.tgz#0e7dd30730505abd8088321e8497e94b547bfb1e"
|
|
148
|
+
integrity sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==
|
|
149
|
+
|
|
150
|
+
"@esbuild/linux-s390x@0.17.3":
|
|
151
|
+
version "0.17.3"
|
|
152
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.17.3.tgz#6bb50c5a2613d31ce1137fe5c249ecadbecccdea"
|
|
153
|
+
integrity sha512-Iw8lkNHUC4oGP1O/KhumcVy77u2s6+KUjieUqzEU3XuWJqZ+AY7uVMrrCbAiwWTkpQHkr00BuXH5RpC6Sb/7Ug==
|
|
154
|
+
|
|
155
|
+
"@esbuild/linux-s390x@0.25.5":
|
|
156
|
+
version "0.25.5"
|
|
157
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.25.5.tgz#5669af81327a398a336d7e40e320b5bbd6e6e72d"
|
|
158
|
+
integrity sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==
|
|
159
|
+
|
|
160
|
+
"@esbuild/linux-x64@0.17.3":
|
|
161
|
+
version "0.17.3"
|
|
162
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.17.3.tgz#aa140d99f0d9e0af388024823bfe4558d73fbbf9"
|
|
163
|
+
integrity sha512-0AGkWQMzeoeAtXQRNB3s4J1/T2XbigM2/Mn2yU1tQSmQRmHIZdkGbVq2A3aDdNslPyhb9/lH0S5GMTZ4xsjBqg==
|
|
164
|
+
|
|
165
|
+
"@esbuild/linux-x64@0.25.5":
|
|
166
|
+
version "0.25.5"
|
|
167
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.25.5.tgz#b2357dd153aa49038967ddc1ffd90c68a9d2a0d4"
|
|
168
|
+
integrity sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==
|
|
169
|
+
|
|
170
|
+
"@esbuild/netbsd-arm64@0.25.5":
|
|
171
|
+
version "0.25.5"
|
|
172
|
+
resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.5.tgz#53b4dfb8fe1cee93777c9e366893bd3daa6ba63d"
|
|
173
|
+
integrity sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==
|
|
174
|
+
|
|
175
|
+
"@esbuild/netbsd-x64@0.17.3":
|
|
176
|
+
version "0.17.3"
|
|
177
|
+
resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.17.3.tgz#b6ae9948b03e4c95dc581c68358fb61d9d12a625"
|
|
178
|
+
integrity sha512-4+rR/WHOxIVh53UIQIICryjdoKdHsFZFD4zLSonJ9RRw7bhKzVyXbnRPsWSfwybYqw9sB7ots/SYyufL1mBpEg==
|
|
179
|
+
|
|
180
|
+
"@esbuild/netbsd-x64@0.25.5":
|
|
181
|
+
version "0.25.5"
|
|
182
|
+
resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.25.5.tgz#a0206f6314ce7dc8713b7732703d0f58de1d1e79"
|
|
183
|
+
integrity sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==
|
|
184
|
+
|
|
185
|
+
"@esbuild/openbsd-arm64@0.25.5":
|
|
186
|
+
version "0.25.5"
|
|
187
|
+
resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.5.tgz#2a796c87c44e8de78001d808c77d948a21ec22fd"
|
|
188
|
+
integrity sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==
|
|
189
|
+
|
|
190
|
+
"@esbuild/openbsd-x64@0.17.3":
|
|
191
|
+
version "0.17.3"
|
|
192
|
+
resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.17.3.tgz#cda007233e211fc9154324bfa460540cfc469408"
|
|
193
|
+
integrity sha512-cVpWnkx9IYg99EjGxa5Gc0XmqumtAwK3aoz7O4Dii2vko+qXbkHoujWA68cqXjhh6TsLaQelfDO4MVnyr+ODeA==
|
|
194
|
+
|
|
195
|
+
"@esbuild/openbsd-x64@0.25.5":
|
|
196
|
+
version "0.25.5"
|
|
197
|
+
resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.25.5.tgz#28d0cd8909b7fa3953af998f2b2ed34f576728f0"
|
|
198
|
+
integrity sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==
|
|
199
|
+
|
|
200
|
+
"@esbuild/sunos-x64@0.17.3":
|
|
201
|
+
version "0.17.3"
|
|
202
|
+
resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.17.3.tgz#f1385b092000c662d360775f3fad80943d2169c4"
|
|
203
|
+
integrity sha512-RxmhKLbTCDAY2xOfrww6ieIZkZF+KBqG7S2Ako2SljKXRFi+0863PspK74QQ7JpmWwncChY25JTJSbVBYGQk2Q==
|
|
204
|
+
|
|
205
|
+
"@esbuild/sunos-x64@0.25.5":
|
|
206
|
+
version "0.25.5"
|
|
207
|
+
resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.25.5.tgz#a28164f5b997e8247d407e36c90d3fd5ddbe0dc5"
|
|
208
|
+
integrity sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==
|
|
209
|
+
|
|
210
|
+
"@esbuild/win32-arm64@0.17.3":
|
|
211
|
+
version "0.17.3"
|
|
212
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.17.3.tgz#14e9dd9b1b55aa991f80c120fef0c4492d918801"
|
|
213
|
+
integrity sha512-0r36VeEJ4efwmofxVJRXDjVRP2jTmv877zc+i+Pc7MNsIr38NfsjkQj23AfF7l0WbB+RQ7VUb+LDiqC/KY/M/A==
|
|
214
|
+
|
|
215
|
+
"@esbuild/win32-arm64@0.25.5":
|
|
216
|
+
version "0.25.5"
|
|
217
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.25.5.tgz#6eadbead38e8bd12f633a5190e45eff80e24007e"
|
|
218
|
+
integrity sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==
|
|
219
|
+
|
|
220
|
+
"@esbuild/win32-ia32@0.17.3":
|
|
221
|
+
version "0.17.3"
|
|
222
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.17.3.tgz#de584423513d13304a6925e01233499a37a4e075"
|
|
223
|
+
integrity sha512-wgO6rc7uGStH22nur4aLFcq7Wh86bE9cOFmfTr/yxN3BXvDEdCSXyKkO+U5JIt53eTOgC47v9k/C1bITWL/Teg==
|
|
224
|
+
|
|
225
|
+
"@esbuild/win32-ia32@0.25.5":
|
|
226
|
+
version "0.25.5"
|
|
227
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.25.5.tgz#bab6288005482f9ed2adb9ded7e88eba9a62cc0d"
|
|
228
|
+
integrity sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==
|
|
229
|
+
|
|
230
|
+
"@esbuild/win32-x64@0.17.3":
|
|
231
|
+
version "0.17.3"
|
|
232
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.3.tgz#2f69ea6b37031b0d1715dd2da832a8ae5eb36e74"
|
|
233
|
+
integrity sha512-FdVl64OIuiKjgXBjwZaJLKp0eaEckifbhn10dXWhysMJkWblg3OEEGKSIyhiD5RSgAya8WzP3DNkngtIg3Nt7g==
|
|
234
|
+
|
|
235
|
+
"@esbuild/win32-x64@0.25.5":
|
|
236
|
+
version "0.25.5"
|
|
237
|
+
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.25.5.tgz#7fc114af5f6563f19f73324b5d5ff36ece0803d1"
|
|
238
|
+
integrity sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==
|
|
239
|
+
|
|
240
|
+
"@types/codemirror@5.60.8":
|
|
241
|
+
version "5.60.8"
|
|
242
|
+
resolved "https://registry.yarnpkg.com/@types/codemirror/-/codemirror-5.60.8.tgz#b647d04b470e8e1836dd84b2879988fc55c9de68"
|
|
243
|
+
integrity sha512-VjFgDF/eB+Aklcy15TtOTLQeMjTo07k7KAjql8OK5Dirr7a6sJY4T1uVBDuTVG9VEmn1uUsohOpYnVfgC6/jyw==
|
|
244
|
+
dependencies:
|
|
245
|
+
"@types/tern" "*"
|
|
246
|
+
|
|
247
|
+
"@types/estree@*":
|
|
248
|
+
version "1.0.7"
|
|
249
|
+
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.7.tgz#4158d3105276773d5b7695cd4834b1722e4f37a8"
|
|
250
|
+
integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==
|
|
251
|
+
|
|
252
|
+
"@types/semver@^7.5.8":
|
|
253
|
+
version "7.7.0"
|
|
254
|
+
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.0.tgz#64c441bdae033b378b6eef7d0c3d77c329b9378e"
|
|
255
|
+
integrity sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==
|
|
256
|
+
|
|
257
|
+
"@types/tern@*":
|
|
258
|
+
version "0.23.9"
|
|
259
|
+
resolved "https://registry.yarnpkg.com/@types/tern/-/tern-0.23.9.tgz#6f6093a4a9af3e6bb8dde528e024924d196b367c"
|
|
260
|
+
integrity sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==
|
|
261
|
+
dependencies:
|
|
262
|
+
"@types/estree" "*"
|
|
263
|
+
|
|
264
|
+
builtin-modules@^4.0.0:
|
|
265
|
+
version "4.0.0"
|
|
266
|
+
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-4.0.0.tgz#348db54ec0e6b197494423d26845f1674025ee46"
|
|
267
|
+
integrity sha512-p1n8zyCkt1BVrKNFymOHjcDSAl7oq/gUvfgULv2EblgpPVQlQr9yHnWjg9IJ2MhfwPqiYqMMrr01OY7yQoK2yA==
|
|
268
|
+
|
|
269
|
+
dedent@^1.5.3:
|
|
270
|
+
version "1.6.0"
|
|
271
|
+
resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.6.0.tgz#79d52d6389b1ffa67d2bcef59ba51847a9d503b2"
|
|
272
|
+
integrity sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==
|
|
273
|
+
|
|
274
|
+
dotenv@^16.4.5:
|
|
275
|
+
version "16.5.0"
|
|
276
|
+
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.5.0.tgz#092b49f25f808f020050051d1ff258e404c78692"
|
|
277
|
+
integrity sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==
|
|
278
|
+
|
|
279
|
+
esbuild@0.17.3:
|
|
280
|
+
version "0.17.3"
|
|
281
|
+
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.17.3.tgz#d9aa02a3bc441ed35f9569cd9505812ae3fcae61"
|
|
282
|
+
integrity sha512-9n3AsBRe6sIyOc6kmoXg2ypCLgf3eZSraWFRpnkto+svt8cZNuKTkb1bhQcitBcvIqjNiK7K0J3KPmwGSfkA8g==
|
|
283
|
+
optionalDependencies:
|
|
284
|
+
"@esbuild/android-arm" "0.17.3"
|
|
285
|
+
"@esbuild/android-arm64" "0.17.3"
|
|
286
|
+
"@esbuild/android-x64" "0.17.3"
|
|
287
|
+
"@esbuild/darwin-arm64" "0.17.3"
|
|
288
|
+
"@esbuild/darwin-x64" "0.17.3"
|
|
289
|
+
"@esbuild/freebsd-arm64" "0.17.3"
|
|
290
|
+
"@esbuild/freebsd-x64" "0.17.3"
|
|
291
|
+
"@esbuild/linux-arm" "0.17.3"
|
|
292
|
+
"@esbuild/linux-arm64" "0.17.3"
|
|
293
|
+
"@esbuild/linux-ia32" "0.17.3"
|
|
294
|
+
"@esbuild/linux-loong64" "0.17.3"
|
|
295
|
+
"@esbuild/linux-mips64el" "0.17.3"
|
|
296
|
+
"@esbuild/linux-ppc64" "0.17.3"
|
|
297
|
+
"@esbuild/linux-riscv64" "0.17.3"
|
|
298
|
+
"@esbuild/linux-s390x" "0.17.3"
|
|
299
|
+
"@esbuild/linux-x64" "0.17.3"
|
|
300
|
+
"@esbuild/netbsd-x64" "0.17.3"
|
|
301
|
+
"@esbuild/openbsd-x64" "0.17.3"
|
|
302
|
+
"@esbuild/sunos-x64" "0.17.3"
|
|
303
|
+
"@esbuild/win32-arm64" "0.17.3"
|
|
304
|
+
"@esbuild/win32-ia32" "0.17.3"
|
|
305
|
+
"@esbuild/win32-x64" "0.17.3"
|
|
306
|
+
|
|
307
|
+
esbuild@~0.25.0:
|
|
308
|
+
version "0.25.5"
|
|
309
|
+
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.25.5.tgz#71075054993fdfae76c66586f9b9c1f8d7edd430"
|
|
310
|
+
integrity sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==
|
|
311
|
+
optionalDependencies:
|
|
312
|
+
"@esbuild/aix-ppc64" "0.25.5"
|
|
313
|
+
"@esbuild/android-arm" "0.25.5"
|
|
314
|
+
"@esbuild/android-arm64" "0.25.5"
|
|
315
|
+
"@esbuild/android-x64" "0.25.5"
|
|
316
|
+
"@esbuild/darwin-arm64" "0.25.5"
|
|
317
|
+
"@esbuild/darwin-x64" "0.25.5"
|
|
318
|
+
"@esbuild/freebsd-arm64" "0.25.5"
|
|
319
|
+
"@esbuild/freebsd-x64" "0.25.5"
|
|
320
|
+
"@esbuild/linux-arm" "0.25.5"
|
|
321
|
+
"@esbuild/linux-arm64" "0.25.5"
|
|
322
|
+
"@esbuild/linux-ia32" "0.25.5"
|
|
323
|
+
"@esbuild/linux-loong64" "0.25.5"
|
|
324
|
+
"@esbuild/linux-mips64el" "0.25.5"
|
|
325
|
+
"@esbuild/linux-ppc64" "0.25.5"
|
|
326
|
+
"@esbuild/linux-riscv64" "0.25.5"
|
|
327
|
+
"@esbuild/linux-s390x" "0.25.5"
|
|
328
|
+
"@esbuild/linux-x64" "0.25.5"
|
|
329
|
+
"@esbuild/netbsd-arm64" "0.25.5"
|
|
330
|
+
"@esbuild/netbsd-x64" "0.25.5"
|
|
331
|
+
"@esbuild/openbsd-arm64" "0.25.5"
|
|
332
|
+
"@esbuild/openbsd-x64" "0.25.5"
|
|
333
|
+
"@esbuild/sunos-x64" "0.25.5"
|
|
334
|
+
"@esbuild/win32-arm64" "0.25.5"
|
|
335
|
+
"@esbuild/win32-ia32" "0.25.5"
|
|
336
|
+
"@esbuild/win32-x64" "0.25.5"
|
|
337
|
+
|
|
338
|
+
fsevents@~2.3.3:
|
|
339
|
+
version "2.3.3"
|
|
340
|
+
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
|
|
341
|
+
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
|
|
342
|
+
|
|
343
|
+
get-tsconfig@^4.7.5:
|
|
344
|
+
version "4.10.1"
|
|
345
|
+
resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.10.1.tgz#d34c1c01f47d65a606c37aa7a177bc3e56ab4b2e"
|
|
346
|
+
integrity sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==
|
|
347
|
+
dependencies:
|
|
348
|
+
resolve-pkg-maps "^1.0.0"
|
|
349
|
+
|
|
350
|
+
moment@2.29.4:
|
|
351
|
+
version "2.29.4"
|
|
352
|
+
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
|
|
353
|
+
integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==
|
|
354
|
+
|
|
355
|
+
obsidian@latest:
|
|
356
|
+
version "1.8.7"
|
|
357
|
+
resolved "https://registry.yarnpkg.com/obsidian/-/obsidian-1.8.7.tgz#601e9ea1724289effa4c9bb3b4e20d327263634f"
|
|
358
|
+
integrity sha512-h4bWwNFAGRXlMlMAzdEiIM2ppTGlrh7uGOJS6w4gClrsjc+ei/3YAtU2VdFUlCiPuTHpY4aBpFJJW75S1Tl/JA==
|
|
359
|
+
dependencies:
|
|
360
|
+
"@types/codemirror" "5.60.8"
|
|
361
|
+
moment "2.29.4"
|
|
362
|
+
|
|
363
|
+
resolve-pkg-maps@^1.0.0:
|
|
364
|
+
version "1.0.0"
|
|
365
|
+
resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f"
|
|
366
|
+
integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==
|
|
367
|
+
|
|
368
|
+
semver@^7.6.3:
|
|
369
|
+
version "7.7.2"
|
|
370
|
+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
|
|
371
|
+
integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
|
|
372
|
+
|
|
373
|
+
tsx@^4.19.4:
|
|
374
|
+
version "4.19.4"
|
|
375
|
+
resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.19.4.tgz#647b4141f4fdd9d773a9b564876773d2846901f4"
|
|
376
|
+
integrity sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==
|
|
377
|
+
dependencies:
|
|
378
|
+
esbuild "~0.25.0"
|
|
379
|
+
get-tsconfig "^4.7.5"
|
|
380
|
+
optionalDependencies:
|
|
381
|
+
fsevents "~2.3.3"
|
|
382
|
+
|
|
383
|
+
typescript@4.7.4:
|
|
384
|
+
version "4.7.4"
|
|
385
|
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
|
|
386
|
+
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
3
|
+
if you want to view the source, please visit the github repository of this plugin
|
|
4
|
+
*/
|
|
5
|
+
"use strict";var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(l,o)=>{for(var e in o)a(l,e,{get:o[e],enumerable:!0})},r=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of c(o))!g.call(l,n)&&n!==e&&a(l,n,{get:()=>o[n],enumerable:!(s=u(o,n))||s.enumerable});return l};var f=l=>r(a({},"__esModule",{value:!0}),l);var m={};i(m,{default:()=>d});module.exports=f(m);var t=require("obsidian"),d=class extends t.Plugin{async onload(){console.log("Test Plugin V2 loaded")}onunload(){console.log("Test Plugin V2 unloaded")}};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "test-plugin-v2",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Plugin de test pour injection v2",
|
|
5
|
+
"main": "main.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "tsx scripts/esbuild.config.ts",
|
|
8
|
+
"build": "tsc -noEmit -skipLibCheck && tsx scripts/esbuild.config.ts production",
|
|
9
|
+
"start": "yarn install && yarn dev",
|
|
10
|
+
"real": "tsx scripts/esbuild.config.ts production real",
|
|
11
|
+
"acp": "tsx scripts/acp.ts",
|
|
12
|
+
"bacp": "tsx scripts/acp.ts -b",
|
|
13
|
+
"update-version": "tsx scripts/update-version.ts",
|
|
14
|
+
"v": "tsx scripts/update-version.ts",
|
|
15
|
+
"release": "tsx scripts/release.ts",
|
|
16
|
+
"r": "tsx scripts/release.ts",
|
|
17
|
+
"help": "tsx scripts/help.ts",
|
|
18
|
+
"h": "tsx scripts/help.ts"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"author": "3C0D",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"obsidian": "*",
|
|
25
|
+
"typescript": "^5.8.2",
|
|
26
|
+
"esbuild": "latest",
|
|
27
|
+
"@types/node": "^22.15.26",
|
|
28
|
+
"@types/semver": "^7.7.0",
|
|
29
|
+
"builtin-modules": "3.3.0",
|
|
30
|
+
"dedent": "^1.6.0",
|
|
31
|
+
"dotenv": "^16.4.5",
|
|
32
|
+
"obsidian-typings": "^3.9.5",
|
|
33
|
+
"semver": "^7.7.2",
|
|
34
|
+
"tsx": "^4.19.4"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"npm": "please-use-yarn",
|
|
38
|
+
"yarn": ">=1.22.0"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { execSync } from "child_process";
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import {
|
|
5
|
+
askQuestion,
|
|
6
|
+
cleanInput,
|
|
7
|
+
createReadlineInterface,
|
|
8
|
+
gitExec
|
|
9
|
+
} from "./utils.ts";
|
|
10
|
+
|
|
11
|
+
const rl = createReadlineInterface();
|
|
12
|
+
|
|
13
|
+
// Check if we're in the centralized config repo
|
|
14
|
+
function isInCentralizedRepo(): boolean {
|
|
15
|
+
const packageJsonPath = path.join(process.cwd(), "package.json");
|
|
16
|
+
if (!fs.existsSync(packageJsonPath)) return false;
|
|
17
|
+
|
|
18
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
19
|
+
return packageJson.name === "obsidian-plugin-config";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function main(): Promise<void> {
|
|
23
|
+
try {
|
|
24
|
+
if (process.argv.includes("-b")) {
|
|
25
|
+
console.log("Building...");
|
|
26
|
+
gitExec("yarn build");
|
|
27
|
+
console.log("Build successful.");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Only update exports if we're in the centralized repo and not explicitly disabled
|
|
31
|
+
if (!process.argv.includes("-ne") && !process.argv.includes("--no-exports") && isInCentralizedRepo()) {
|
|
32
|
+
console.log("Updating exports...");
|
|
33
|
+
gitExec("yarn run update-exports");
|
|
34
|
+
console.log("Exports updated.");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const input: string = await askQuestion("Enter commit message: ", rl);
|
|
38
|
+
|
|
39
|
+
const cleanedInput = cleanInput(input);
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
gitExec("git add -A");
|
|
43
|
+
gitExec(`git commit -m "${cleanedInput}"`);
|
|
44
|
+
} catch {
|
|
45
|
+
console.log("Commit already exists or failed.");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// get current branch name
|
|
50
|
+
const currentBranch = execSync("git rev-parse --abbrev-ref HEAD").toString().trim();
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
gitExec(`git push origin ${currentBranch}`);
|
|
54
|
+
console.log("Commit and push successful.");
|
|
55
|
+
} catch {
|
|
56
|
+
// new branch
|
|
57
|
+
console.log(`New branch detected. Setting upstream for ${currentBranch}...`);
|
|
58
|
+
gitExec(`git push --set-upstream origin ${currentBranch}`);
|
|
59
|
+
console.log("Upstream branch set and push successful.");
|
|
60
|
+
}
|
|
61
|
+
} catch (error) {
|
|
62
|
+
console.error("Error:", error instanceof Error ? error.message : String(error));
|
|
63
|
+
} finally {
|
|
64
|
+
rl.close();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
main().catch(console.error).finally(() => {
|
|
69
|
+
console.log("Exiting...");
|
|
70
|
+
process.exit();
|
|
71
|
+
});
|