Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@ozkarjs/template
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)
The npm package @ozkarjs/template receives a total of 3 weekly downloads. As such, @ozkarjs/template popularity was classified as not popular.
We found that @ozkarjs/template 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.