Comparing version 1.3.1 to 1.4.0
import { CommonOptions } from 'esbuild'; | ||
import { AcceptedPlugin, ProcessOptions } from 'postcss'; | ||
import { Options } from 'postcss-nested'; | ||
import { Options as Options$1 } from 'autoprefixer'; | ||
import { Options as Options$2 } from 'cssnano'; | ||
@@ -7,2 +11,3 @@ declare const loaders: { | ||
sass: Loader; | ||
postcss: Loader; | ||
}; | ||
@@ -32,6 +37,13 @@ type LoaderName = keyof typeof loaders; | ||
interface LoaderOptions { | ||
ext?: "mjs" | "js" | "ts"; | ||
ext?: "js" | "mjs" | "cjs" | "ts" | "mts" | "cts"; | ||
format?: "cjs" | "esm"; | ||
declaration?: boolean; | ||
esbuild?: CommonOptions; | ||
postcss?: false | { | ||
nested?: false | Options; | ||
autoprefixer?: false | Options$1; | ||
cssnano?: false | Options$2; | ||
plugins?: AcceptedPlugin[]; | ||
processOptions?: Omit<ProcessOptions, "from">; | ||
}; | ||
} | ||
@@ -38,0 +50,0 @@ interface LoaderContext { |
{ | ||
"name": "mkdist", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Lightweight file-to-file transformer", | ||
"repository": "unjs/mkdist", | ||
"license": "MIT", | ||
"main": "./dist/index.cjs", | ||
"exports": { | ||
@@ -15,2 +14,3 @@ ".": { | ||
}, | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts", | ||
@@ -33,5 +33,7 @@ "bin": { | ||
"dependencies": { | ||
"citty": "^0.1.4", | ||
"autoprefixer": "^10.4.14", | ||
"citty": "^0.1.5", | ||
"cssnano": "^6.0.1", | ||
"defu": "^6.1.3", | ||
"esbuild": "^0.19.5", | ||
"esbuild": "^0.19.7", | ||
"fs-extra": "^11.1.1", | ||
@@ -42,12 +44,14 @@ "globby": "^13.2.2", | ||
"mri": "^1.2.0", | ||
"pathe": "^1.1.1" | ||
"pathe": "^1.1.1", | ||
"postcss": "^8.4.26", | ||
"postcss-nested": "^6.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/mri": "^1.1.4", | ||
"@types/node": "^20.9.0", | ||
"@types/mri": "^1.1.5", | ||
"@types/node": "^20.9.4", | ||
"@vitest/coverage-v8": "^0.34.6", | ||
"c8": "latest", | ||
"changelogen": "^0.5.5", | ||
"eslint": "^8.53.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-unjs": "^0.2.1", | ||
@@ -57,3 +61,3 @@ "modern-normalize": "^2.0.0", | ||
"sass": "^1.69.5", | ||
"typescript": "^5.2.2", | ||
"typescript": "^5.3.2", | ||
"unbuild": "^2.0.0", | ||
@@ -64,3 +68,3 @@ "vitest": "^0.34.6" | ||
"sass": "^1.69.5", | ||
"typescript": ">=5.2.2" | ||
"typescript": ">=5.3.2" | ||
}, | ||
@@ -67,0 +71,0 @@ "peerDependenciesMeta": { |
@@ -20,2 +20,4 @@ # mkdist | ||
✅ Support [postcss](https://postcss.org/) ([autoprefixer](https://github.com/postcss/autoprefixer), [cssnano](https://cssnano.co/) and [postcss-nested](https://www.npmjs.com/package/postcss-nested) enabled out of the box!) | ||
## ❓ Why? | ||
@@ -43,12 +45,10 @@ | ||
<!-- Badges --> | ||
[npm-version-src]: https://img.shields.io/npm/v/mkdist?style=flat-square | ||
[npm-version-href]: https://npmjs.com/package/mkdist | ||
[npm-downloads-src]: https://img.shields.io/npm/dm/mkdist?style=flat-square | ||
[npm-downloads-href]: https://npmjs.com/package/mkdist | ||
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/mkdist/ci.yml?branch=main&style=flat-square | ||
[github-actions-href]: https://github.com/unjs/mkdist/actions?query=workflow%3Aci | ||
[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/mkdist/main?style=flat-square | ||
[codecov-href]: https://codecov.io/gh/unjs/mkdist |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41876
1115
15
+ Addedautoprefixer@^10.4.14
+ Addedcssnano@^6.0.1
+ Addedpostcss@^8.4.26
+ Addedpostcss-nested@^6.0.1
+ Added@trysound/sax@0.2.0(transitive)
+ Addedautoprefixer@10.4.20(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-api@3.0.0(transitive)
+ Addedcaniuse-lite@1.0.30001669(transitive)
+ Addedcolord@2.9.3(transitive)
+ Addedcommander@7.2.0(transitive)
+ Addedcss-declaration-sorter@7.2.0(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-tree@2.2.12.3.1(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addedcssesc@3.0.0(transitive)
+ Addedcssnano@6.1.2(transitive)
+ Addedcssnano-preset-default@6.1.2(transitive)
+ Addedcssnano-utils@4.0.2(transitive)
+ Addedcsso@5.0.5(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedelectron-to-chromium@1.5.42(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedfraction.js@4.3.7(transitive)
+ Addedlilconfig@3.1.2(transitive)
+ Addedlodash.memoize@4.1.2(transitive)
+ Addedlodash.uniq@4.5.0(transitive)
+ Addedmdn-data@2.0.282.0.30(transitive)
+ Addednanoid@3.3.7(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addednormalize-range@0.1.2(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.47(transitive)
+ Addedpostcss-calc@9.0.1(transitive)
+ Addedpostcss-colormin@6.1.0(transitive)
+ Addedpostcss-convert-values@6.1.0(transitive)
+ Addedpostcss-discard-comments@6.0.2(transitive)
+ Addedpostcss-discard-duplicates@6.0.3(transitive)
+ Addedpostcss-discard-empty@6.0.3(transitive)
+ Addedpostcss-discard-overridden@6.0.2(transitive)
+ Addedpostcss-merge-longhand@6.0.5(transitive)
+ Addedpostcss-merge-rules@6.1.1(transitive)
+ Addedpostcss-minify-font-values@6.1.0(transitive)
+ Addedpostcss-minify-gradients@6.0.3(transitive)
+ Addedpostcss-minify-params@6.1.0(transitive)
+ Addedpostcss-minify-selectors@6.0.4(transitive)
+ Addedpostcss-nested@6.2.0(transitive)
+ Addedpostcss-normalize-charset@6.0.2(transitive)
+ Addedpostcss-normalize-display-values@6.0.2(transitive)
+ Addedpostcss-normalize-positions@6.0.2(transitive)
+ Addedpostcss-normalize-repeat-style@6.0.2(transitive)
+ Addedpostcss-normalize-string@6.0.2(transitive)
+ Addedpostcss-normalize-timing-functions@6.0.2(transitive)
+ Addedpostcss-normalize-unicode@6.1.0(transitive)
+ Addedpostcss-normalize-url@6.0.2(transitive)
+ Addedpostcss-normalize-whitespace@6.0.2(transitive)
+ Addedpostcss-ordered-values@6.0.2(transitive)
+ Addedpostcss-reduce-initial@6.1.0(transitive)
+ Addedpostcss-reduce-transforms@6.0.2(transitive)
+ Addedpostcss-selector-parser@6.1.2(transitive)
+ Addedpostcss-svgo@6.0.3(transitive)
+ Addedpostcss-unique-selectors@6.0.4(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedstylehacks@6.1.1(transitive)
+ Addedsvgo@3.3.2(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
Updatedcitty@^0.1.5
Updatedesbuild@^0.19.7