astro-purgecss 3.2.0 → 3.2.1

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 (2) hide show
  1. package/dist/index.d.ts +13 -0
  2. package/package.json +2 -4
@@ -0,0 +1,13 @@
1
+ import type { AstroIntegration } from 'astro';
2
+ import { type RawContent, type StringRegExpArray, type UserDefinedSafelist } from 'purgecss';
3
+ export type PurgeCSSOptions = {
4
+ fontFace?: boolean;
5
+ keyframes?: boolean;
6
+ rejected?: boolean;
7
+ rejectedCss?: boolean;
8
+ variables?: boolean;
9
+ safelist?: UserDefinedSafelist;
10
+ blocklist?: StringRegExpArray;
11
+ content?: Array<string | RawContent>;
12
+ };
13
+ export default function (options?: PurgeCSSOptions): AstroIntegration;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "astro-purgecss",
3
3
  "description": "Remove unused CSS rules from your final Astro bundle",
4
- "version": "3.2.0",
4
+ "version": "3.2.1",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
7
7
  "author": "codiume",
@@ -41,8 +41,6 @@
41
41
  },
42
42
  "scripts": {
43
43
  "build": "astro-build --src src/index.ts",
44
- "postbuild": "npm run typecheck:emit",
45
- "typecheck": "tsc --noEmit",
46
- "typecheck:emit": "tsc --declaration --emitDeclarationOnly"
44
+ "typecheck": "tsc --declaration --emitDeclarationOnly"
47
45
  }
48
46
  }