
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
lab-transform-typescript
Advanced tools
lab-transform-typescript transforms TypeScript for use with lab,
permitting npm test without having to transpile first in a pretest script.
Usage:
npm install --save-dev lab-transform-typescriptlab --sourcemaps --transform node_modules/lab-transform-typescriptIf you'd like typings support for lab and code, also:
typings install --save --global github:garthk/lab-transform-typescript/typings-local/lab.d.tstypings install --save --global github:garthk/lab-transform-typescript/typings-local/code.d.tsThe typings for code are thorough. The typings for lab are pretty thin.
I'd much appreciate feedback on and pull requests for improvements on either.
Issues:
#1 aka hapijs/lab#614: lab --coverage output shows
the transpiled JavaScript, not the source TypeScript.Caveats:
Which version of typescript you get depends on how you installed it:
npm install as above, you'll get the typescript from your project's node_modulesnpm link to take a reference to lab-transform-typescript while fixing a bug in it, you'll get the typescript from lab-transform-typescript/node_modulesEnvironment Variables:
Set DEBUG=* or DEBUG=lab-transform-typescript to see a version report and configuration loading details on stderr.
Set TSCONFIG to override TypeScript's default search for tsconfig.json, as if you'd set -p on the tsc command line.
Change Log:
TSCONFIG envar to override location)typescript from dependencies to devDependencies for testing and peerDependencies for production uselabFAQs
transform TypeScript for the lab testing framework
We found that lab-transform-typescript 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 joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.