Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

mkdist

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkdist - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

dist/chunks/make.cjs

51

package.json
{
"name": "mkdist",
"version": "0.3.10",
"version": "0.3.11",
"description": "Lightweight file-to-file transformer",
"repository": "unjs/mkdist",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.cjs",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"types": "./dist/index.d.ts",
"bin": {
"mkdist": "./dist/cli.js"
"mkdist": "./dist/cli.cjs"
},

@@ -15,13 +21,5 @@ "files": [

],
"scripts": {
"build": "siroc build",
"dev": "yarn mkdist test/fixture -d",
"lint": "eslint --ext .ts .",
"mkdist": "jiti src/cli",
"release": "yarn test && yarn build && standard-version && git push --follow-tags && npm publish",
"test": "yarn lint && jest"
},
"dependencies": {
"defu": "^5.0.0",
"esbuild": "^0.13.8",
"defu": "^6.0.0",
"esbuild": "^0.14.47",
"fs-extra": "^10.0.0",

@@ -36,11 +34,10 @@ "globby": "^11.0.3",

"@types/fs-extra": "latest",
"@types/jest": "latest",
"@types/mri": "latest",
"@types/node": "latest",
"eslint": "^7",
"jest": "latest",
"siroc": "latest",
"c8": "latest",
"eslint": "latest",
"standard-version": "latest",
"ts-jest": "latest",
"typescript": "^4.5.5"
"typescript": "latest",
"unbuild": "latest",
"vitest": "latest"
},

@@ -54,3 +51,13 @@ "peerDependencies": {

}
}
}
},
"packageManager": "pnpm@6.32.3",
"scripts": {
"build": "unbuild",
"dev": "pnpm mkdist test/fixture -d",
"lint": "eslint --ext .ts .",
"mkdist": "jiti src/cli",
"release": "pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
},
"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## ❓ 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] [--pattern=glob] [--format=cjs|esm] [-d|--declaration] [--ext=mjs|js|ts]\n```\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- Badges -->\n[npm-version-src]: https://img.shields.io/npm/v/mkdist?style=flat-square\n[npm-version-href]: https://npmjs.com/package/mkdist\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/mkdist?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/mkdist\n\n[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/mkdist/ci/main?style=flat-square\n[github-actions-href]: https://github.com/unjs/mkdist/actions?query=workflow%3Aci\n\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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc