Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bob-ts

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bob-ts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

2

package.json
{
"name": "bob-ts",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/PabloSzx/bob-esbuild",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/PabloSzx/bob-esbuild/issues",

# bob-ts
Transpile your **TypeScript** projects quickly using **esbuild** + **rollup**, made to accelerate and simplify the TypeScript development with watcher and first class support for JavaScript testing frameworks.
![npm](https://img.shields.io/npm/v/bob-ts)
> This library doesn't handle type definitions, but you can add them simply doing `tsc --declaration --emitDeclarationOnly`
Transpile your **TypeScript** projects quickly using **esbuild** + **rollup**, made to accelerate and simplify the TypeScript development with file watcher and first-class support for JavaScript testing frameworks.
> This library doesn't handle type definitions, but you can add them simply by doing `tsc --declaration --emitDeclarationOnly`
## Install

@@ -63,3 +65,3 @@

--no-clean No clean output dir (default: true)
--cwd <dir> Custom target directory (default: "/home/pablosz/learner-model-gql/gateway")
--cwd <dir> Custom target directory (default: "__current_directory__")
-c, --command <cmd> Execute script after successful JS build

@@ -77,6 +79,10 @@ -h, --help display help for command

### Usage with Testing
## Usage with Testing
The primary reason that for the default input being `"."` is because this library has primary support for being used for JavaScript test frameworks like [Mocha](https://mochajs.org/) and [Node-Tap](https://node-tap.org/), and having all the tests files inside an specific test directory, for example, `test`, and simply executing the transpiled version of your tests with all the sourcemaps, being a better and faster alternative than `ts-node/register`, specially for **ESM support**, which `ts-node` struggles with.
The main reason for the default input being `"."` is because this library has first-class support for being used for JavaScript test frameworks like [Mocha](https://mochajs.org/) and [Node-Tap](https://node-tap.org/).
You can have all the tests files inside a specific test directory, for example, `test`, and use the transpiled version of your code with all the required source maps.
In the end, a better and faster alternative than `ts-node/register`, and the solution for **ESM support** with TypeScript, where `ts-node` struggles a lot.
> Example structure

@@ -92,3 +98,3 @@

## Mocha
### Mocha

@@ -107,3 +113,3 @@ ```sh

### ESM
#### ESM

@@ -126,3 +132,3 @@ ```json

### CJS
#### CJS

@@ -143,3 +149,3 @@ ```json

## Node Tap
### Node Tap

@@ -158,3 +164,3 @@ ```sh

### ESM
#### ESM

@@ -177,3 +183,3 @@ > Assumming that your tests are inside a `test` directory

### CJS
#### CJS

@@ -180,0 +186,0 @@ ```json

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc