Skip to content

Commit

Permalink
fix(imagemin): should use ./index.js instaed of . for esm (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 18, 2021
1 parent 5e41496 commit 6c446dc
Show file tree
Hide file tree
Showing 10 changed files with 467 additions and 898 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-pumas-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pkgr/imagemin": patch
---

fix: should use ./index.js instaed of . for esm
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"devDependencies": {
"@1stg/app-config": "^2.2.1",
"@1stg/tslint-config": "^2.0.0",
"@angular/common": "^12.2.0",
"@angular/compiler": "^12.2.0",
"@angular/compiler-cli": "^12.2.0",
"@angular/core": "^12.2.0",
"@angular/platform-browser": "^12.2.0",
"@angular/platform-browser-dynamic": "^12.2.0",
"@angular/common": "^12.2.2",
"@angular/compiler": "^12.2.2",
"@angular/compiler-cli": "^12.2.2",
"@angular/core": "^12.2.2",
"@angular/platform-browser": "^12.2.2",
"@angular/platform-browser-dynamic": "^12.2.2",
"@babel/types": "^7.15.0",
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.16.0",
Expand All @@ -67,21 +67,21 @@
"@types/friendly-errors-webpack-plugin": "^0.1.4",
"@types/imagemin": "^7.0.1",
"@types/is-glob": "^4.0.2",
"@types/jest": "^26.0.24",
"@types/jest": "^27.0.1",
"@types/lodash-es": "^4.14.172",
"@types/micromatch": "^4.0.2",
"@types/mini-css-extract-plugin": "^2.0.1",
"@types/node": "^16.4.13",
"@types/mini-css-extract-plugin": "^2.2.0",
"@types/node": "^16.6.1",
"@types/postcss-load-config": "^3.0.1",
"@types/prettier": "^2.3.2",
"@types/react": "^17.0.16",
"@types/react": "^17.0.18",
"@types/react-dom": "^17.0.9",
"@types/resolve": "^1.20.1",
"@types/webpack-dev-server": "^3.11.5",
"@types/webpack-env": "^1.16.2",
"@types/workbox-webpack-plugin": "^5.1.8",
"@vue/compiler-sfc": "^3.1.5",
"core-js": "^3.16.0",
"@vue/compiler-sfc": "^3.2.4",
"core-js": "^3.16.2",
"jest": "^27.0.6",
"postcss": "^8.3.6",
"react": "^17.0.2",
Expand All @@ -90,12 +90,12 @@
"rxjs": "^7.3.0",
"serve": "^12.0.0",
"svelte": "^3.42.1",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"tslint": "^6.1.3",
"type-coverage": "^2.18.0",
"typescript": "^4.3.5",
"vue": "^3.1.5",
"vue": "^3.2.4",
"zone.js": "^0.11.4"
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lib"
],
"dependencies": {
"imagemin": "^8.0.0",
"imagemin": "^8.0.1",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0",
Expand All @@ -33,7 +33,7 @@
"imagemin-webp": "^6.0.0",
"is-glob": "^4.0.1",
"tiny-glob": "^0.2.9",
"tslib": "^2.3.0"
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/imagemin/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import isGlob from 'is-glob'
import glob from 'tiny-glob'

import imagemin from '.'
import imagemin from './index.js'

process.argv
.slice(2)
Expand All @@ -19,7 +19,7 @@ process.argv
Promise.resolve<string[]>([]),
)
.then(files => Promise.all(files.map(imagemin)))
.catch((e: Error) => {
console.error(e)
.catch((err: Error) => {
console.error(err)
process.exitCode = 1
})
10 changes: 5 additions & 5 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
"@rxts/rollup-plugin-alias": "^0.1.1",
"builtin-modules": "^3.1.0",
"commander": "^8.1.0",
"core-js": "^3.16.0",
"core-js": "^3.16.2",
"debug": "^4.3.2",
"esbuild": "^0.12.18",
"esbuild": "^0.12.20",
"is-glob": "^4.0.1",
"jsox": "^1.1.121",
"lodash-es": "^4.17.21",
"micromatch": "^4.0.4",
"rollup": "^2.56.0",
"rollup": "^2.56.2",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-esbuild": "^4.5.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-vue": "^6.0.0",
"rollup-plugin-vue-jsx-compat": "^0.0.6",
"tslib": "^2.3.0"
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"is-glob": "^4.0.1",
"open": "^8.2.1",
"tiny-glob": "^0.2.9",
"tslib": "^2.3.0"
"tslib": "^2.3.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@angular/core": "^12.0.0"
},
"dependencies": {
"@ngtools/webpack": "^12.2.0",
"@ngtools/webpack": "^12.2.1",
"@pkgr/webpack": "^1.1.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@pkgr/webpack": "^1.1.0",
"vue-loader": "^16.4.1",
"vue-loader": "^16.5.0",
"vue-style-loader": "^4.1.3",
"vue-svg-loader": "^0.16.0"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"commander": "^8.1.0",
"copy-webpack-plugin": "^9.0.1",
"core-js": "^3.16.0",
"core-js": "^3.16.2",
"css-loader": "^6.2.0",
"debug": "^4.3.2",
"file-loader": "^6.0.0",
Expand All @@ -48,18 +48,18 @@
"pug-loader": "^2.4.0",
"pug-plain-loader": "^1.0.0",
"raw-loader": "^4.0.1",
"sass": "^1.37.5",
"sass": "^1.38.0",
"sass-loader": "^12.1.0",
"style-loader": "^3.2.1",
"stylus": "^0.54.7",
"stylus-loader": "^6.1.0",
"thread-loader": "^3.0.4",
"tsconfig-paths-webpack-plugin": "^3.5.1",
"tslib": "^2.3.0",
"tslib": "^2.3.1",
"url-loader": "^4.1.0",
"webpack": "^5.48.0",
"webpack-dev-server": "^4.0.0-rc.0",
"workbox-webpack-plugin": "^6.2.0"
"webpack": "^5.50.0",
"webpack-dev-server": "^4.0.0",
"workbox-webpack-plugin": "^6.2.4"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 6c446dc

Please sign in to comment.