longmo-unplugin-info 1.0.0

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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +508 -0
  3. package/client.d.ts +106 -0
  4. package/dist/astro.cjs +25 -0
  5. package/dist/astro.d.cts +11 -0
  6. package/dist/astro.d.mts +11 -0
  7. package/dist/astro.d.ts +11 -0
  8. package/dist/astro.mjs +23 -0
  9. package/dist/esbuild.cjs +16 -0
  10. package/dist/esbuild.d.cts +7 -0
  11. package/dist/esbuild.d.mts +7 -0
  12. package/dist/esbuild.d.ts +7 -0
  13. package/dist/esbuild.mjs +14 -0
  14. package/dist/index.cjs +16 -0
  15. package/dist/index.d.cts +7 -0
  16. package/dist/index.d.mts +7 -0
  17. package/dist/index.d.ts +7 -0
  18. package/dist/index.mjs +10 -0
  19. package/dist/nuxt.cjs +43 -0
  20. package/dist/nuxt.d.cts +16 -0
  21. package/dist/nuxt.d.mts +16 -0
  22. package/dist/nuxt.d.ts +16 -0
  23. package/dist/nuxt.mjs +41 -0
  24. package/dist/rollup.cjs +16 -0
  25. package/dist/rollup.d.cts +7 -0
  26. package/dist/rollup.d.mts +7 -0
  27. package/dist/rollup.d.ts +7 -0
  28. package/dist/rollup.mjs +14 -0
  29. package/dist/rspack.cjs +16 -0
  30. package/dist/rspack.d.cts +7 -0
  31. package/dist/rspack.d.mts +7 -0
  32. package/dist/rspack.d.ts +7 -0
  33. package/dist/rspack.mjs +14 -0
  34. package/dist/shared/longmo-unplugin-info.B4uHFilH.mjs +609 -0
  35. package/dist/shared/longmo-unplugin-info.D5mpeSYM.cjs +619 -0
  36. package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.cts +69 -0
  37. package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.mts +69 -0
  38. package/dist/shared/longmo-unplugin-info.zS6I--Tu.d.ts +69 -0
  39. package/dist/vite.cjs +16 -0
  40. package/dist/vite.d.cts +7 -0
  41. package/dist/vite.d.mts +7 -0
  42. package/dist/vite.d.ts +7 -0
  43. package/dist/vite.mjs +14 -0
  44. package/dist/webpack.cjs +16 -0
  45. package/dist/webpack.d.cts +7 -0
  46. package/dist/webpack.d.mts +7 -0
  47. package/dist/webpack.d.ts +7 -0
  48. package/dist/webpack.mjs +14 -0
  49. package/package.json +168 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 XLor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,508 @@
1
+ # unplugin-info
2
+
3
+ [![Demo](https://img.shields.io/badge/unplugin--info-demo-00CCAA)](https://yjl9903.github.io/unplugin-info/)
4
+ [![version](https://img.shields.io/npm/v/unplugin-info?label=unplugin-info)](https://www.npmjs.com/package/unplugin-info)
5
+ [![install size](https://packagephobia.com/badge?p=unplugin-info)](https://packagephobia.com/result?p=unplugin-info)
6
+ [![GitHub License](https://img.shields.io/github/license/yjl9903/unplugin-info)](https://github.com/yjl9903/unplugin-info/blob/main/LICENSE)
7
+ [![CI](https://github.com/yjl9903/unplugin-info/actions/workflows/ci.yml/badge.svg)](https://github.com/yjl9903/unplugin-info/actions/workflows/ci.yml)
8
+
9
+ Export build information as virutal module.
10
+
11
+ This plugin helps you add **build timestamp** / **commit SHA** / **CI environment** / `package.json` / ... to your application. So you can easily check whether the production version meets your expectations, or config your application.
12
+
13
+ > **Migration from v0 to v1**
14
+ >
15
+ > + Move git related information from `~build/info` to `~build/git`
16
+ > + Move CI related information from `~build/info` to `~build/ci`
17
+ > + Remove `commitsSinceLastTag` from `~build/git`
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ npm i -D unplugin-info
23
+ ```
24
+
25
+ <details>
26
+ <summary>Vite</summary><br>
27
+
28
+ ```ts
29
+ // vite.config.ts
30
+
31
+ import Info from 'unplugin-info/vite';
32
+
33
+ export default defineConfig({
34
+ plugins: [
35
+ Info()
36
+ ]
37
+ });
38
+ ```
39
+
40
+ Full example is located at [examples/vite](https://github.com/yjl9903/unplugin-info/blob/main/examples/vite).
41
+
42
+ <br></details>
43
+
44
+ <details>
45
+ <summary>Rollup</summary><br>
46
+
47
+ ```ts
48
+ // rollup.config.js
49
+
50
+ import Info from 'unplugin-info/rollup';
51
+
52
+ export default {
53
+ plugins: [
54
+ Info()
55
+ ]
56
+ };
57
+ ```
58
+
59
+ <br></details>
60
+
61
+ <details>
62
+ <summary>Webpack</summary><br>
63
+
64
+ ```ts
65
+ // webpack.config.js
66
+
67
+ module.exports = {
68
+ /* ... */
69
+ plugins: [
70
+ require('unplugin-info/webpack')()
71
+ ]
72
+ };
73
+ ```
74
+
75
+ Full example is located at [examples/webpack](https://github.com/yjl9903/unplugin-info/blob/main/examples/webpack).
76
+
77
+ <br></details>
78
+
79
+ <details>
80
+ <summary>Nuxt</summary><br>
81
+
82
+ ```ts
83
+ // nuxt.config.ts
84
+
85
+ export default defineNuxtConfig({
86
+ modules: ['unplugin-info/nuxt'],
87
+ info: {
88
+ // Your unplugin-info options ...
89
+ }
90
+ });
91
+ ```
92
+
93
+ Full example is located at [examples/nuxt](https://github.com/yjl9903/unplugin-info/blob/main/examples/nuxt).
94
+
95
+ <br></details>
96
+
97
+ <details>
98
+ <summary>Vue CLI</summary><br>
99
+
100
+ ```ts
101
+ // vue.config.js
102
+
103
+ module.exports = {
104
+ configureWebpack: {
105
+ plugins: [
106
+ require('unplugin-info/webpack')()
107
+ ]
108
+ }
109
+ };
110
+ ```
111
+
112
+ <br></details>
113
+
114
+ <details>
115
+ <summary>Quasar</summary><br>
116
+
117
+ ```ts
118
+ // quasar.conf.js [Vite]
119
+ module.exports = {
120
+ vitePlugins: [
121
+ [
122
+ 'unplugin-info/vite',
123
+ {
124
+ /* options */
125
+ }
126
+ ]
127
+ ]
128
+ };
129
+ ```
130
+
131
+ ```ts
132
+ // quasar.conf.js [Webpack]
133
+ const Info = require('unplugin-info/webpack');
134
+
135
+ module.exports = {
136
+ build: {
137
+ chainWebpack(chain) {
138
+ chain.plugin('unplugin-info').use(
139
+ Info()
140
+ );
141
+ }
142
+ }
143
+ };
144
+ ```
145
+
146
+ <br></details>
147
+
148
+ <details>
149
+ <summary>esbuild</summary><br>
150
+
151
+ ```ts
152
+ // esbuild.config.js
153
+ import { build } from 'esbuild';
154
+
155
+ build({
156
+ /* ... */
157
+ plugins: [
158
+ require('unplugin-info/esbuild')({
159
+ /* options */
160
+ }),
161
+ ],
162
+ });
163
+ ```
164
+
165
+ <br>
166
+ </details>
167
+
168
+ <details>
169
+ <summary>Astro</summary><br>
170
+
171
+ ```ts
172
+ // astro.config.mjs
173
+
174
+ import Info from 'unplugin-info/astro';
175
+
176
+ export default defineConfig({
177
+ integrations: [
178
+ Info()
179
+ ],
180
+ });
181
+ ```
182
+
183
+ <br>
184
+ </details>
185
+
186
+ ### TypeScript
187
+
188
+ To make the TypeScript work, you can add `unplugin-info/client` to your corresponding `tsconfig.json`.
189
+
190
+ ```json5
191
+ {
192
+ "compilerOptions": {
193
+ // ...
194
+ "types": [
195
+ "unplugin-info/client"
196
+ ],
197
+ },
198
+ // ...
199
+ }
200
+ ```
201
+
202
+ Or you can add TypeScript [triple-slash directives](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) to your `.d.ts` (i.e. for projects initialized by Vite, it may be `src/env.d.ts`).
203
+
204
+ ```ts
205
+ // Your .d.ts file
206
+
207
+ /// <reference types="unplugin-info/client" />
208
+ ```
209
+
210
+ Or if you did some advanced modification (see below), you can just copy and paste [client.d.ts](https://github.com/yjl9903/unplugin-info/blob/main/client.d.ts) to your project, and then do anything you want.
211
+
212
+ ## Usage
213
+
214
+ `unplugin-info` creates several virtual modules, `~build/time`, `~build/git`, `~build/svn`, `~build/ci`, `~build/console`, `~build/meta`, `~build/env`, and `~build/package`.
215
+
216
+ You can just import these modules as usual, and do anything with them. Common use cases may be like:
217
+
218
+ ```ts
219
+ // main.ts
220
+
221
+ import now from '~build/time'
222
+ import { sha } from '~build/git'
223
+ import { revision } from '~build/svn'
224
+
225
+ // console log the build info
226
+ console.log(`Build ${sha} at ${now}`)
227
+ console.log(`SVN Revision: ${revision}`)
228
+ ```
229
+
230
+ ```tsx
231
+ // App.tsx
232
+
233
+ import now from '~build/time'
234
+
235
+ // Render it in your app
236
+ function App() {
237
+ return <span>{now.toLocaleString()}</span>
238
+ }
239
+ ```
240
+
241
+ ### ~build/time
242
+
243
+ It exports the timestamp when the vite started.
244
+
245
+ ```ts
246
+ import now from '~build/time'
247
+
248
+ console.log(now)
249
+ // There will be a log like "Fri Jun 24 2022 16:30:30 GMT+0800 (中国标准时间)"
250
+ ```
251
+
252
+ ### ~build/git
253
+
254
+ It exports the infomation about the current git repo, which is powered by [simple-git](https://www.npmjs.com/package/simple-git).
255
+
256
+ ```ts
257
+ import {
258
+ github,
259
+ sha,
260
+ abbreviatedSha,
261
+ tag,
262
+ lastTag,
263
+ committer,
264
+ committerEmail,
265
+ committerDate,
266
+ author,
267
+ authorEmail,
268
+ authorDate,
269
+ commitMessage
270
+ } from '~build/git';
271
+
272
+ // ...
273
+ ```
274
+
275
+ > [!NOTE]
276
+ >
277
+ > From `unplugin-info@0.6.0`, the original virtual module called `~build/info` will be renamed to `~build/git`, and the CI/CD related information will be moved to another virtual module called `~build/ci`.
278
+
279
+ You can even **custom or override the exported git information**.
280
+
281
+ All the functions will be executed during the generation of `~build/git`, and the return result with its corresponding field name will be merged into `~build/git`. The following example adds another `isClean` field to `~build/git`.
282
+
283
+ ```ts
284
+ // vite.config.ts
285
+
286
+ import Info from 'unplugin-info/vite';
287
+
288
+ export default defineConfig({
289
+ plugins: [
290
+ Info({
291
+ git: {
292
+ // Gets whether this represents a clean working branch.
293
+ isClean: async (git) => {
294
+ const status = await git.status()
295
+ return status.isClean()
296
+ }
297
+ }
298
+ })
299
+ ]
300
+ });
301
+ ```
302
+
303
+ Full example is located at [examples/vite](https://github.com/yjl9903/unplugin-info/blob/main/examples/vite/vite.config.ts).
304
+
305
+ ### ~build/svn
306
+
307
+ It exports the information about the current SVN repo, which is powered by executing SVN commands.
308
+
309
+ ```ts
310
+ import {
311
+ url,
312
+ repositoryRoot,
313
+ repositoryUuid,
314
+ revision,
315
+ nodeKind,
316
+ lastChangedRev,
317
+ lastChangedDate,
318
+ lastChangedAuthor,
319
+ sha,
320
+ abbreviatedSha,
321
+ commitMessage,
322
+ author,
323
+ authorDate,
324
+ authorEmail,
325
+ branch,
326
+ tag,
327
+ tags,
328
+ lastTag,
329
+ describe
330
+ } from '~build/svn';
331
+
332
+ // ...
333
+ ```
334
+
335
+ > [!NOTE]
336
+ >
337
+ > This module is only available when the project is under SVN version control. If not in an SVN repo, all exported fields will be `null`.
338
+
339
+ You can also **custom or override the exported SVN information**.
340
+
341
+ The following example adds another custom field to `~build/svn`.
342
+
343
+ ```ts
344
+ // vite.config.ts
345
+
346
+ import Info from 'unplugin-info/vite';
347
+
348
+ export default defineConfig({
349
+ plugins: [
350
+ Info({
351
+ svn: {
352
+ // Add custom field
353
+ customInfo: async () => {
354
+ return 'Custom SVN info';
355
+ }
356
+ }
357
+ })
358
+ ]
359
+ });
360
+ ```
361
+
362
+ ### ~build/ci
363
+
364
+ It exports the current CI/CD environment information, which is powered by [ci-info](https://github.com/watson/ci-info).
365
+
366
+ ```ts
367
+ import { isCI, isPR, name } from '~build/ci'
368
+ ```
369
+
370
+ ### ~build/console
371
+
372
+ It will print some helpful logs in your browser.
373
+
374
+ ```ts
375
+ import '~build/console';
376
+ ```
377
+
378
+ ### ~build/meta
379
+
380
+ It exports some meta data from the options of the plugin.
381
+
382
+ ```ts
383
+ // vite.config.ts
384
+ export default defineConfig({
385
+ plugins: [
386
+ BuildInfo({
387
+ meta: { message: 'This is set from vite.config.ts' }
388
+ })
389
+ ]
390
+ })
391
+ ```
392
+
393
+ You can also generate meta data lazily.
394
+
395
+ ```ts
396
+ // vite.config.ts
397
+ export default defineConfig({
398
+ plugins: [
399
+ BuildInfo({
400
+ meta: async () => ({ message: 'This is set from vite.config.ts' })
401
+ })
402
+ ]
403
+ })
404
+ ```
405
+
406
+ Then you can import them in your app.
407
+
408
+ ```ts
409
+ import { message } from '~build/meta'
410
+
411
+ console.log(message)
412
+ // This is set from vite.config.ts
413
+ ```
414
+
415
+ > [!NOTE]
416
+ >
417
+ > Meta data will be serialized to JSON format, so you should gen it in you `vite.config.ts` and pass the result object.
418
+
419
+ To get TypeScript support, you can add type declaration in your `env.d.ts` (It is include in the [official Vite project template](https://vitejs.dev/guide/#scaffolding-your-first-vite-project)).
420
+
421
+ ```ts
422
+ declare module '~build/meta' {
423
+ export const message: string;
424
+ }
425
+ ```
426
+
427
+ Full example is located at [examples/vite](https://github.com/yjl9903/unplugin-info/blob/main/examples/vite/vite.config.ts).
428
+
429
+ ### ~build/env
430
+
431
+ > [!NOTE]
432
+ >
433
+ > Now it only suports for Vite.
434
+
435
+ It exports some environment data from the options of the plugin.
436
+
437
+ ```ts
438
+ // vite.config.ts
439
+ export default defineConfig({
440
+ plugins: [
441
+ BuildInfo({
442
+ env: { BUILD_MESSAGE: 'This is a default value set from vite.config.ts' }
443
+ })
444
+ ]
445
+ })
446
+ ```
447
+
448
+ Compared with `~build/meta`, `~build/env` is targeted at accessing environment variables for the SSR runtime (like Nuxt, Remix, Astro, and so on).
449
+
450
+ Then you can import them in your Vite app.
451
+
452
+ ```ts
453
+ import { BUILD_MESSAGE } from '~build/env'
454
+
455
+ console.log(BUILD_MESSAGE)
456
+ ```
457
+
458
+ In the client-side, this will always output `This is a default value set from vite.config.ts`.
459
+
460
+ But in the server-side, the output log is determined by the corresponding environment variable `process.env.BUILD_MESSAGE`.
461
+
462
+ To get TypeScript support, you can add type declaration in your `env.d.ts` (It is include in the [official Vite project template](https://vitejs.dev/guide/#scaffolding-your-first-vite-project)).
463
+
464
+ ```ts
465
+ declare module '~build/env' {
466
+ export const BUILD_MESSAGE: string;
467
+ }
468
+ ```
469
+
470
+ ### ~build/package
471
+
472
+ It exports the information of the current `package.json`.
473
+
474
+ ```ts
475
+ import { name, version } from '~build/package';
476
+ ```
477
+
478
+ You can also **control which fields should be exported**. By default, we only export fields name, version, description, keywords, license, author from your package.json.
479
+
480
+ ```ts
481
+ // vite.config.ts
482
+
483
+ import Info from 'unplugin-info/vite';
484
+
485
+ export default defineConfig({
486
+ plugins: [
487
+ Info({
488
+ package: {
489
+ dependencies: true
490
+ }
491
+ })
492
+ ]
493
+ });
494
+ ```
495
+
496
+ Full example is located at [examples/vite](https://github.com/yjl9903/unplugin-info/blob/main/examples/vite/vite.config.ts).
497
+
498
+ ## Relationship with [vite-plugin-info](https://www.npmjs.com/package/vite-plugin-info)
499
+
500
+ This pacakge was initially called [vite-plugin-info](https://www.npmjs.com/package/vite-plugin-info). It has been refactored using [unplugin](https://www.npmjs.com/package/unplugin) to support additional tools, including Webpack and so on.
501
+
502
+ We recommend migrating from [vite-plugin-info](https://www.npmjs.com/package/vite-plugin-info) to [unplugin-info](https://www.npmjs.com/package/unplugin-info), as [unplugin-info](https://www.npmjs.com/package/unplugin-info) will continue to be maintained and new features will be added.
503
+
504
+ However, you can still use [vite-plugin-info](https://www.npmjs.com/package/vite-plugin-info), as it works fine. Thanks to Vite's compatibility, and the source code of [vite-plugin-info](https://www.npmjs.com/package/vite-plugin-info) can be founded [here](https://github.com/yjl9903/unplugin-info/tree/vite-plugin-info).
505
+
506
+ ## License
507
+
508
+ MIT License © 2023 [XLor](https://github.com/yjl9903)
package/client.d.ts ADDED
@@ -0,0 +1,106 @@
1
+ declare module '~build/time' {
2
+ const time: Date;
3
+
4
+ export = time;
5
+ }
6
+
7
+ declare module '~build/git' {
8
+ /** Github repo url */
9
+ export const github: string | null;
10
+
11
+ /** The current branch */
12
+ export const branch: string;
13
+
14
+ /** SHA of the current commit */
15
+ export const sha: string;
16
+
17
+ /** The first 10 chars of the current SHA */
18
+ export const abbreviatedSha: string;
19
+
20
+ /** The tag for the current SHA (or `null` if no tag exists) */
21
+ export const tag: string | null;
22
+
23
+ /** The tags for the current SHA */
24
+ export const tags: string[] | null;
25
+
26
+ /** Tag for the closest tagged ancestor (or `null` if no ancestor is tagged) */
27
+ export const lastTag: string | null;
28
+
29
+ /** Output of `git describe --always` for the current commit */
30
+ export const describe: string;
31
+
32
+ /** The committer of the current SHA */
33
+ export const committer: string;
34
+
35
+ /** The committer email of the current SHA */
36
+ export const committerEmail: string;
37
+
38
+ /** The commit date of the current SHA */
39
+ export const committerDate: string;
40
+
41
+ /** The author for the current SHA */
42
+ export const author: string;
43
+
44
+ /** The author email for the current SHA */
45
+ export const authorEmail: string;
46
+
47
+ /** The authored date for the current SHA */
48
+ export const authorDate: string;
49
+
50
+ /** The commit message for the current SHA */
51
+ export const commitMessage: string;
52
+ }
53
+
54
+ declare module '~build/ci' {
55
+ /**
56
+ * Returns a boolean. Will be `true` if the code is running on a CI server,
57
+ * otherwise `false`.
58
+ *
59
+ * Some CI servers not listed here might still trigger the `ci.isCI`
60
+ * boolean to be set to `true` if they use certain vendor neutral environment
61
+ * variables. In those cases `ci.name` will be `null` and no vendor specific
62
+ * boolean will be set to `true`.
63
+ */
64
+ export const isCI: boolean;
65
+
66
+ /**
67
+ * Returns a boolean if PR detection is supported for the current CI server.
68
+ * Will be `true` if a PR is being tested, otherwise `false`. If PR detection is
69
+ * not supported for the current CI server, the value will be `null`.
70
+ */
71
+ export const isPR: boolean | null;
72
+
73
+ /** CI environment name */
74
+ export const name: string | null;
75
+ }
76
+
77
+ declare module '~build/console' {
78
+ /**
79
+ * Print build info
80
+ */
81
+ export const print: () => void;
82
+ }
83
+
84
+ declare module '~build/meta' {}
85
+
86
+ declare module '~build/env' {}
87
+
88
+ declare module '~build/package' {
89
+ /** Package name */
90
+ export const name: string;
91
+
92
+ /** Package version */
93
+ export const version: string;
94
+
95
+ /** Package description */
96
+ export const description: string;
97
+
98
+ /** Package keywords */
99
+ export const keywords: string[];
100
+
101
+ /** Package license */
102
+ export const license: string;
103
+
104
+ /** Package author */
105
+ export const author: string;
106
+ }
package/dist/astro.cjs ADDED
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ const vite = require('./vite.cjs');
4
+ require('./shared/longmo-unplugin-info.D5mpeSYM.cjs');
5
+ require('node:path');
6
+ require('node:process');
7
+ require('unplugin');
8
+ require('ci-info');
9
+ require('simple-git');
10
+ require('git-url-parse');
11
+ require('node:child_process');
12
+ require('node:util');
13
+ require('node:fs');
14
+
15
+ const astro = (options = {}) => ({
16
+ name: "unplugin-info",
17
+ hooks: {
18
+ "astro:config:setup": async (astro) => {
19
+ astro.config.vite.plugins ||= [];
20
+ astro.config.vite.plugins.push(vite(options));
21
+ }
22
+ }
23
+ });
24
+
25
+ module.exports = astro;
@@ -0,0 +1,11 @@
1
+ import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.cjs';
2
+ import 'simple-git';
3
+
4
+ declare const _default: (options?: Options) => {
5
+ name: string;
6
+ hooks: {
7
+ 'astro:config:setup': (astro: any) => Promise<void>;
8
+ };
9
+ };
10
+
11
+ export = _default;
@@ -0,0 +1,11 @@
1
+ import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.mjs';
2
+ import 'simple-git';
3
+
4
+ declare const _default: (options?: Options) => {
5
+ name: string;
6
+ hooks: {
7
+ 'astro:config:setup': (astro: any) => Promise<void>;
8
+ };
9
+ };
10
+
11
+ export { _default as default };
@@ -0,0 +1,11 @@
1
+ import { O as Options } from './shared/longmo-unplugin-info.zS6I--Tu.js';
2
+ import 'simple-git';
3
+
4
+ declare const _default: (options?: Options) => {
5
+ name: string;
6
+ hooks: {
7
+ 'astro:config:setup': (astro: any) => Promise<void>;
8
+ };
9
+ };
10
+
11
+ export = _default;