Skip to content

Commit

Permalink
1.1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Dec 14, 2022
1 parent 993fdb7 commit 85adb47
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.22

- Cleanup

## 1.1.21

- Bug fix
Expand Down
5 changes: 2 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AstroIntegration } from "astro";
import type { Options as PipelineOptions } from "@nikolarhristov/pipeline/dist/options/index.js";
import type { Options as CrittersOptions } from "@nikolarhristov/pipeline/dist/options/lib/critters/index.js";
declare const _default: (_options?: PipelineOptions & CrittersOptions) => AstroIntegration;
import type { Options } from "@nikolarhristov/pipeline/dist/options/lib/critters/index.js";
declare const _default: (options?: Options) => AstroIntegration;
export default _default;
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{pipeline as i}from"@nikolarhristov/pipeline";var r=(t={})=>({name:"astro-critters",hooks:{"astro:build:done":async()=>{await new i(t).critters()}}});export{r as default};
import{pipeline as o}from"@nikolarhristov/pipeline";var r=(t={})=>({name:"astro-critters",hooks:{"astro:build:done":async()=>{await new o(t).critters()}}});export{r as default};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-critters",
"version": "1.1.21",
"version": "1.1.22",
"type": "module",
"description": "🦔 AstroJS GoogleChromeLabs critters integration. Inline your critical CSS with Astro.",
"repository": {
Expand All @@ -27,7 +27,7 @@
"build": "lightrix build src/index.ts"
},
"dependencies": {
"@nikolarhristov/pipeline": "0.1.6"
"@nikolarhristov/pipeline": "0.1.7"
},
"devDependencies": {
"@lightrix/config": "0.0.6",
Expand Down
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import type { AstroIntegration } from "astro";

import { pipeline } from "@nikolarhristov/pipeline";
import type { Options as PipelineOptions } from "@nikolarhristov/pipeline/dist/options/index.js";
import type { Options as CrittersOptions } from "@nikolarhristov/pipeline/dist/options/lib/critters/index.js";
import type { Options } from "@nikolarhristov/pipeline/dist/options/lib/critters/index.js";

export default (
_options: PipelineOptions & CrittersOptions = {}
): AstroIntegration => ({
export default (options: Options = {}): AstroIntegration => ({
name: "astro-critters",
hooks: {
"astro:build:done": async () => {
await new pipeline(_options).critters();
await new pipeline(options).critters();
},
},
});

0 comments on commit 85adb47

Please sign in to comment.