Skip to content

Commit

Permalink
1.1.36
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Apr 17, 2023
1 parent 69e1c0d commit e7b631b
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 35 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.36

- Cleanup

## 1.1.35

- Switches to the files-pipe component
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/sharp-read.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { IMG } from "../options/img.js";
import type { optionExecutionsFile } from "files-pipe/options/index.js";
import type { optionExecutionsFile } from "files-pipe/dist/options/index.js";
import type { Sharp } from "sharp";
export interface sharpBuffer extends Sharp {
[key: string]: unknown;
Expand Down
2 changes: 1 addition & 1 deletion dist/options/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Options as OptionsBase } from "files-pipe/dist/options/index.js";
import type { CSS } from "./css.js";
import type { HTML } from "./html.js";
import type { IMG } from "./img.js";
import type { JS } from "./js.js";
import type { MAP } from "./map.js";
import type { SVG } from "./svg.js";
import type { Options as OptionsBase } from "files-pipe/options/index.js";
export interface Options extends OptionsBase {
[key: string]: unknown;
css?: boolean | CSS;
Expand Down
2 changes: 1 addition & 1 deletion dist/options/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-compress",
"version": "1.1.35",
"version": "1.1.36",
"type": "module",
"description": "🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more.",
"repository": {
Expand Down Expand Up @@ -35,15 +35,15 @@
"@types/html-minifier-terser": "7.0.0",
"@types/sharp": "0.31.1",
"csso": "5.0.5",
"files-pipe": "0.0.1",
"files-pipe": "0.0.2",
"html-minifier-terser": "7.2.0",
"sharp": "0.32.0",
"svgo": "3.0.2",
"terser": "5.16.9"
},
"devDependencies": {
"@lightrix/config": "0.0.8",
"@lightrix/scripts": "0.1.6",
"@lightrix/config": "0.0.9",
"@lightrix/scripts": "0.1.7",
"astro": "2.3.0"
},
"publishConfig": {
Expand Down
14 changes: 3 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import type { executions, optionPath } from "files-pipe/options/index.js";

import type { executions, optionPath } from "files-pipe/dist/options/index.js";
import formatBytes from "./lib/format-bytes.js";

import deepmerge from "files-pipe/lib/deepmerge.js";

import deepmerge from "files-pipe/dist/lib/deepmerge.js";
import type { AstroIntegration } from "astro";

import type { Options } from "./options/index.js";

import defaults from "files-pipe/options/index.js";
import defaults from "files-pipe/dist/options/index.js";
import defaultsCompress from "./options/index.js";

import { files } from "files-pipe";

import { minify as csso } from "csso";
import { minify as htmlMinifierTerser } from "html-minifier-terser";
import sharp from "sharp";
import { optimize as svgo } from "svgo";
import { minify as terser } from "terser";

import type { Output } from "svgo";
import type { ongoingSharp } from "./lib/sharp-read.js";
import sharpRead from "./lib/sharp-read.js";
Expand Down
4 changes: 1 addition & 3 deletions src/lib/sharp-read.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { IMG } from "../options/img.js";

import type { optionExecutionsFile } from "files-pipe/options/index.js";
import type { optionExecutionsFile } from "files-pipe/dist/options/index.js";
import type { Sharp } from "sharp";

import defaults from "../options/index.js";

export interface sharpBuffer extends Sharp {
Expand Down
22 changes: 9 additions & 13 deletions src/options/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import deepmerge from "files-pipe/dist/lib/deepmerge.js";
import type { Options as OptionsBase } from "files-pipe/dist/options/index.js";
import defaults from "files-pipe/dist/options/index.js";
import formatBytes from "../lib/format-bytes.js";

import deepmerge from "files-pipe/lib/deepmerge.js";
import defaults from "files-pipe/options/index.js";

import defaultsCSS from "./css.js";
import defaultsHTML from "./html.js";
import defaultsIMG from "./img.js";
import defaultsJS from "./js.js";
import defaultsMAP from "./map.js";
import defaultsSVG from "./svg.js";

import type { CSS } from "./css.js";
import defaultsCSS from "./css.js";
import type { HTML } from "./html.js";
import defaultsHTML from "./html.js";
import type { IMG } from "./img.js";
import defaultsIMG from "./img.js";
import type { JS } from "./js.js";
import defaultsJS from "./js.js";
import type { MAP } from "./map.js";
import defaultsMAP from "./map.js";
import type { SVG } from "./svg.js";

import type { Options as OptionsBase } from "files-pipe/options/index.js";
import defaultsSVG from "./svg.js";

export interface Options extends OptionsBase {
[key: string]: unknown;
Expand Down

0 comments on commit e7b631b

Please sign in to comment.