Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
create-typescript-library
Advanced tools
This is a nodejs command line util that will setup the basic structure for my (and your) next typescript library.
Simply run npx create-typescript-library
in an empty directory where you want to create your typescript library. If you are using yarn
, run yarn exec create-typescript-library
.
create-typescript-library
will run an interactive prompt to gather information from you, and generate a basic working typescript library for you. Some examples include:
tsc
) to compile your library:
npm
/yarn
scripts for easy build
dev
to compile or bundle codedev:watch
to watch the file changes (by nodemon) and run the dev
scriptbuild
to generate minimized code for publishingtest
to run test against bundle results, library and demoInspired by the awesome blog post Compiling and bundling TypeScript libraries with Webpack by Marco Botto
FAQs
nodejs executable for creating typescript library
The npm package create-typescript-library receives a total of 1 weekly downloads. As such, create-typescript-library popularity was classified as not popular.
We found that create-typescript-library 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.