
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@borderless/ts-scripts
Advanced tools
Simple, mostly opinionated, scripts to build TypeScript modules
Simple, mostly opinionated, scripts to build TypeScript modules.
npm install @borderless/ts-scripts --save-dev
In your package.json you can use the scripts:
{
"scripts": {
"format": "ts-scripts format",
"specs": "ts-scripts specs",
"test": "ts-scripts test", // Runs `check`, `specs --coverage`, `build`.
"build": "ts-scripts build",
"prepublishOnly": "npm run build",
"prepare": "ts-scripts install"
}
}
You will also need to install typescript for building and vitest for specs.
Note: If using bun, you don't need vitest. You can use bun test instead.
install - Installs husky and lint-staged for git commit hooksformat - Uses prettier --write on all supported files in src and the root directoryspecs - Uses vitest to run test files match *.{test,spec}.* files
--watch <index> Runs vitest in watch mode on the config at <index>--update Updates the snapshot files--changed Runs tests on only changed files--since <commit> Runs tests on files changed since <commit>--test-pattern Runs tests matching the specified patternbuild - Uses rimraf and tsccheck - Uses prettier --check and tsc on each test "project"test - Runs check, specs, and buildConfiguration can get specified in your package.json file under ts-scripts:
src - An array of source file directories (default: ["src"])ignore - An array of patterns to ignore (default: [])dist - An array of output directories to clean before build (default: ["dist"])project An array of TSConfig files to build using TypeScript (default: ["tsconfig.json"])checkProject An array of TSConfig files to type check using TypeScript (default: ["tsconfig.json"])test An array of test configuration objects (default: [{}])
dir The directory to read tests from (default: undefined, root directory)config The configuration file to use for this test (default: undefined, discovered by vitest)Specific configuration can be disabled for customized configuration by setting src, dist, project, or test to an empty array.
MIT
FAQs
Simple, mostly opinionated, scripts to build TypeScript modules
The npm package @borderless/ts-scripts receives a total of 931 weekly downloads. As such, @borderless/ts-scripts popularity was classified as not popular.
We found that @borderless/ts-scripts 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.