
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.
npm i yaup -D
It's common to publish dual CommonJS/ES module packages with an extra TypeScript declaration file, all you need is creating a yaup.config.ts:
import { defineConfig } from 'yaup'
export default defineConfig({
input: './src/index.ts',
output: [
{
format: 'esm',
dir: 'dist/esm',
},
{
format: 'cjs',
dir: 'dist/cjs',
},
{
format: 'dts',
dir: 'dist/types',
},
],
})
Run yaup in this directory, it will emit:
dist/esm/index.jsdist/cjs/index.jsdist/types/index.d.tsThen, configure package.json accordingly:
{
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"default": "./dist/cjs/index.js"
}
}
}
Bug fixes are welcome, I'm not accepting new features unless it's absolutely necessary.
MIT © EGOIST
FAQs
A more advanced CLI for esbuild
The npm package yaup receives a total of 126 weekly downloads. As such, yaup popularity was classified as not popular.
We found that yaup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.