{"_id":"@dword-design/mkdist-fork","_rev":"2-f56edc6e54407275886fa868f817ff71","name":"@dword-design/mkdist-fork","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@dword-design/mkdist-fork","version":"0.0.1","license":"MIT","_id":"@dword-design/mkdist-fork@0.0.1","maintainers":[{"name":"dword-design","email":"info@sebastianlandwehr.com"}],"homepage":"https://github.com/unjs/mkdist#readme","bugs":{"url":"https://github.com/unjs/mkdist/issues"},"bin":{"mkdist":"dist/cli.cjs"},"dist":{"shasum":"01aff3a5b0b59434a2c84eb4e14b8ea3837cc227","tarball":"https://registry.npmjs.org/@dword-design/mkdist-fork/-/mkdist-fork-0.0.1.tgz","fileCount":15,"integrity":"sha512-6HxeXoG9OUeqtVT+PeJ35L4MPHzycDCc2HYvg/X9nHv/7MGtkzpzvCql6RWBCK9v4thsaoI/xuEeD7ifQnG6tg==","signatures":[{"sig":"MEUCIQC65d06QgArsNJUsE6GIZOaaMLheQyyRK37W6ZObAi22AIgIv+pPJ7RItawUCYGS/dEmk93ivbGXJrYd+wXGToLAGY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69332},"main":"./dist/index.cjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"fa0392fbb7392e48641dd8b5dedd00f04654828d","scripts":{"dev":"pnpm mkdist test/fixture -d","lint":"eslint . && prettier --check src test","test":"pnpm lint && vitest run --coverage","build":"unbuild","mkdist":"jiti src/cli","release":"pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags","lint:fix":"eslint --fix . && prettier --write -c src test"},"_npmUser":{"name":"dword-design","email":"info@sebastianlandwehr.com"},"repository":{"url":"git+https://github.com/unjs/mkdist.git","type":"git"},"_npmVersion":"10.9.4","description":"Lightweight file-to-file transformer","directories":{},"_nodeVersion":"22.21.1","dependencies":{"defu":"^6.1.4","jiti":"^1.21.7","mlly":"^1.8.0","citty":"^0.1.6","pathe":"^2.0.3","semver":"^7.7.2","cssnano":"^8.0.1","esbuild":"^0.28.1","postcss":"^8.5.6","pkg-types":"^2.3.0","tinyglobby":"^0.2.15","autoprefixer":"^10.4.21","postcss-nested":"^7.0.2"},"_hasShrinkwrap":false,"packageManager":"pnpm@11.1.2","devDependencies":{"c8":"latest","vue":"3.5.21","sass":"1.92.1","eslint":"10.0.2","vitest":"4.0.1","unbuild":"3.6.1","vue-tsc":"3.0.6","prettier":"3.6.2","vue-tsc1":"npm:vue-tsc@^1.8.27","typescript":"5.9.2","vue-tsc2.0":"npm:vue-tsc@2.0.29","@types/node":"24.10.0","changelogen":"0.6.2","@types/semver":"7.7.1","modern-normalize":"3.0.1","@volar/typescript":"2.4.23","@vue/language-core":"3.0.6","eslint-config-unjs":"0.6.2","@vitest/coverage-v8":"4.0.1","vue-sfc-transformer":"0.1.17","@vue/language-core2.0":"npm:@vue/language-core@2.0.29"},"peerDependencies":{"vue":"^3.5.21","sass":"^1.92.1","vue-tsc":"^1.8.27 || ^2.0.21 || ^3.0.0","typescript":">=5.9.2","vue-sfc-transformer":"^0.1.1"},"peerDependenciesMeta":{"vue":{"optional":true},"sass":{"optional":true},"vue-tsc":{"optional":true},"typescript":{"optional":true},"vue-sfc-transformer":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mkdist-fork_0.0.1_1785529045555_0.011447624720609895","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@dword-design/mkdist-fork","version":"0.0.2","description":"Lightweight file-to-file transformer","repository":{"type":"git","url":"git+https://github.com/unjs/mkdist.git"},"license":"MIT","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"main":"./dist/index.cjs","types":"./dist/index.d.ts","bin":{"mkdist":"dist/cli.cjs"},"scripts":{"build":"unbuild","dev":"pnpm mkdist test/fixture -d","lint":"eslint . && prettier --check src test","lint:fix":"eslint --fix . && prettier --write -c src test","mkdist":"jiti src/cli","release":"pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags","test":"pnpm lint && vitest run --coverage"},"dependencies":{"autoprefixer":"^10.4.21","citty":"^0.1.6","cssnano":"^8.0.1","defu":"^6.1.4","esbuild":"^0.28.1","jiti":"^2.5.1","mlly":"^1.8.0","pathe":"^2.0.3","pkg-types":"^2.3.0","postcss":"^8.5.6","postcss-nested":"^7.0.2","semver":"^7.7.2","tinyglobby":"^0.2.15"},"devDependencies":{"@types/node":"24.10.0","@types/semver":"7.7.1","@vitest/coverage-v8":"4.0.1","@volar/typescript":"2.4.23","@vue/language-core":"3.0.6","@vue/language-core2.0":"npm:@vue/language-core@2.0.29","c8":"latest","changelogen":"0.6.2","eslint":"10.0.2","eslint-config-unjs":"0.6.2","modern-normalize":"3.0.1","prettier":"3.6.2","sass":"1.92.1","typescript":"5.9.2","unbuild":"3.6.1","vitest":"4.0.1","vue":"3.5.21","vue-sfc-transformer":"0.1.17","vue-tsc":"3.0.6","vue-tsc1":"npm:vue-tsc@^1.8.27","vue-tsc2.0":"npm:vue-tsc@2.0.29"},"peerDependencies":{"sass":"^1.92.1","typescript":">=5.9.2","vue":"^3.5.21","vue-sfc-transformer":"^0.1.1","vue-tsc":"^1.8.27 || ^2.0.21 || ^3.0.0"},"peerDependenciesMeta":{"sass":{"optional":true},"typescript":{"optional":true},"vue":{"optional":true},"vue-sfc-transformer":{"optional":true},"vue-tsc":{"optional":true}},"packageManager":"pnpm@11.1.2","_id":"@dword-design/mkdist-fork@0.0.2","gitHead":"cae59db1ae5d6225362cd94b21a1c8ca3f3a30ae","bugs":{"url":"https://github.com/unjs/mkdist/issues"},"homepage":"https://github.com/unjs/mkdist#readme","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-2/PLAHFAD/GTcRI7X/U0gC7XnRAN5FIO8ZPo8PCbOR8ZgvHxtU6SOAdRnUSpFRQ2Um5vY1NDDxTBNnxhbE61/g==","shasum":"4eba2dc560928d62ec65b66023685072f64470d4","tarball":"https://registry.npmjs.org/@dword-design/mkdist-fork/-/mkdist-fork-0.0.2.tgz","fileCount":15,"unpackedSize":69384,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC6DAP8xzyzYaa//FSBFZvohQ255eKDyPmuAjm7IDw83QIgbfaLiIzIOELq8c2MfGogj2vcQM/fMSe/9M7JRj6C+S4="}]},"_npmUser":{"name":"dword-design","email":"info@sebastianlandwehr.com"},"directories":{},"maintainers":[{"name":"dword-design","email":"info@sebastianlandwehr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mkdist-fork_0.0.2_1785530035654_0.20899960541657214"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-31T20:17:25.427Z","modified":"2026-07-31T20:33:55.995Z","0.0.1":"2026-07-31T20:17:25.716Z","0.0.2":"2026-07-31T20:33:55.790Z"},"bugs":{"url":"https://github.com/unjs/mkdist/issues"},"license":"MIT","homepage":"https://github.com/unjs/mkdist#readme","repository":{"type":"git","url":"git+https://github.com/unjs/mkdist.git"},"description":"Lightweight file-to-file transformer","maintainers":[{"name":"dword-design","email":"info@sebastianlandwehr.com"}],"readme":"# mkdist\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\n<!-- ![...](.github/banner.svg) -->\n\n> Lightweight file-to-file transformer\n\n✅ Copies all assets\n\n✅ Supports [Vue Single File Components](https://vuejs.org/v2/guide/single-file-components.html)\n\n✅ Fast and minimal transform by [esbuild](https://github.com/evanw/esbuild)\n\n✅ `.d.ts` generation for `.ts`, `.js` and `.vue` files\n\n✅ Support [postcss](https://postcss.org/) ([autoprefixer](https://github.com/postcss/autoprefixer), [cssnano](https://cssnano.co/) and [postcss-nested](https://npmx.dev/package/postcss-nested) enabled out of the box!)\n\n## ❓ Why?\n\nBundling libraries isn't always the best choice:\n\n- We lose original file structure\n- We lose modern syntax by transpiling in bundle\n- We lose critical-css by extracting css to a global dist (vue)\n- Dependencies will be always imported from bundle even if not used (a second bundling step might fix this but it usually won't happen in development and for dependencies with side-effects)\n\nWhile there are tools like [tsc](https://www.typescriptlang.org/docs/handbook/compiler-options.html) and [@babel/cli](https://babeljs.io/docs/en/babel-cli), they mostly focus on transpiling rather than keeping source level quality. Also they lack support for handling custom extensions like `.vue` and copying assets.\n\n## 🚀 Usage\n\n```bash\nnpx mkdist [rootDir] [--src=src] [--dist=dist] [--no-clean] [--pattern=glob [--pattern=more-glob]] [--format=cjs|esm] [-d|--declaration] [--ext=mjs|js|ts]\n```\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- Badges -->\n\n[npm-version-src]: https://npmx.dev/api/registry/badge/version/mkdist\n[npm-version-href]: https://npmx.dev/package/mkdist\n[npm-downloads-src]: https://npmx.dev/api/registry/badge/downloads/mkdist\n[npm-downloads-href]: https://npmx.dev/package/mkdist\n[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/mkdist/ci.yml?branch=main&style=flat-square\n[github-actions-href]: https://github.com/unjs/mkdist/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/mkdist/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/unjs/mkdist\n","readmeFilename":"README.md"}