@inox-tools/astro-when
Advanced tools
Comparing version 0.1.1 to 0.1.2
/// <reference path="../virtual.d.ts" /> | ||
import * as astro from 'astro'; | ||
import { HookParameters } from 'astro-integration-kit'; | ||
type HookParams = HookParameters<'astro:config:setup'>; | ||
declare const _default: (options?: undefined) => astro.AstroIntegration & { | ||
hooks: { | ||
'astro:config:setup': (params: HookParams) => void; | ||
}; | ||
}; | ||
declare const _default: (options?: undefined) => astro.AstroIntegration & {}; | ||
export { _default as default }; |
{ | ||
"name": "@inox-tools/astro-when", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Integration that informs when in Astro's lifecycle the code is running", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"astro-integration-kit": "^0.11.0" | ||
"astro-integration-kit": "^0.13.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -1,6 +0,4 @@ | ||
import { defineIntegration, addVitePlugin, type HookParameters } from 'astro-integration-kit'; | ||
import { defineIntegration, addVitePlugin } from 'astro-integration-kit'; | ||
import { z } from 'astro/zod'; | ||
type HookParams = HookParameters<'astro:config:setup'>; | ||
const VIRTUAL_MODULE_ID = '@it-astro:when'; | ||
@@ -17,3 +15,3 @@ const RESOLVED_MODULE_ID = `\x00${VIRTUAL_MODULE_ID}`; | ||
hooks: { | ||
'astro:config:setup': (params: HookParams) => { | ||
'astro:config:setup': (params) => { | ||
const outputMode = params.config.output; | ||
@@ -20,0 +18,0 @@ const command = params.command; |
Sorry, the diff of this file is not supported yet
9558
125
+ Addedarray-iterate@2.0.1(transitive)
+ Addedastro-integration-kit@0.13.3(transitive)
- Removedastro-integration-kit@0.11.3(transitive)