Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@ozkarjs/fhir
Advanced tools
[![trunk](https://github.com/jasonkuhrt/template-typescript-lib/actions/workflows/trunk.yaml/badge.svg)](https://github.com/jasonkuhrt/template-typescript-lib/actions/workflows/trunk.yaml)
Project template for Node libraries. Features:
Make sure you have corepack
enabled:
$ corepack enable
The following will get you a ready to go new repository on GitHub based on this one.
Run:
gh repo create foobar --template jasonkuhrt/template-typescript-lib --clone --public && \
cd foobar && \
pnpm install && \
pnpm bootstrap
Setup a repo secret called NPM_TOKEN
containing an npm token for CI package publishing.
The following will get you a ready to go new repository on GitHub based on this one.
Run:
gh repo clone jasonkuhrt/template-typescript-lib <directory> && \
cd <directory> && \
pnpm install && \
pnpm bootstrap
Setup a repo secret called NPM_TOKEN
containing an npm token for CI package publishing.
Optimal settings for type safety via @tsconfig/node18
and @tsconfig/strictest
.tsbuildinfo
cache setup, output discretely into node_modules/.cache
Base tsconfig.json
shared across tests
and src
.
Optimal output setup for your users
declaration
so your users can power their intellisense with your packages typings.declarationMap
enabled to make your published source code be navigated to when your users use "go to definition".package.json
typeVersions
used to emit only one set of declaration files shared by both CJS and ESM builds.sourceMap
enabled to allow your users' tools to base off the source for e.g. stack traces instead of the less informative derived built JS.src
with build files so that jump-to-definition tools work optimally for users.tsx
for running TypeScript scripts/modules.
Just Works :)
clean
to remove cache and build filesbuild
that runs clean
beforehandprepublishOnly
that runs build
beforehandformat
to run dprint
over whole codebaselint
to run eslint
over whole codebasepackage.json
will be used. And note this is a PnPM binary shipped with Node now. In a future version of Node you will not need to even opt-in into Corepack. Make sure you've done corepack enable
at least once.An actually working hybrid CJS/ESM build.
build/*
, snapshots, lock files, and more.typescript.enablePromptUseWorkspaceTsdk
so that oneself and collaborators will get prompted to use the workspace version of TypeScript instead of the one in the editor.markdown-toc
Here are some TypeScript libraries you might want to use for your new project:
FAQs
[![trunk](https://github.com/jasonkuhrt/template-typescript-lib/actions/workflows/trunk.yaml/badge.svg)](https://github.com/jasonkuhrt/template-typescript-lib/actions/workflows/trunk.yaml)
We found that @ozkarjs/fhir demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.