Socket
Socket
Sign inDemoInstall

@nabla/tnode

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nabla/tnode - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

26

package.json
{
"name": "@nabla/tnode",
"version": "0.5.0",
"description": "Simple node wrapper that runs esbuild on TS files",
"version": "0.6.0",
"license": "MIT",
"description": "Simple node wrapper that runs esbuild on TS files",
"homepage": "https://github.com/nabla/tnode#readme",
"author": "arnaud@nabla.com",
"repository": {
"type": "git",
"url": "git+https://github.com/nabla/tnode.git"
},
"bugs": {
"url": "https://github.com/nabla/tnode/issues"
},
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
"bin": {
"tnode": "tnode.js"
},
"files": [
"*.js"
],
"repository": "github:nabla/tnode",
"keywords": [

@@ -23,5 +19,11 @@ "node",

],
"scripts": {
"prettier": "prettier --write '**/*.{js,json,md,yml}'"
},
"dependencies": {
"esbuild": "^0.13.13"
"esbuild": "^0.14.18"
},
"devDependencies": {
"prettier": "^2.5.1"
}
}

@@ -8,6 +8,6 @@ # tnode

```shell
yarn add @nabla/tnode
npm i -D @nabla/tnode
```
## Usage in package.json scripts
## Usage in package.json scripts

@@ -40,3 +40,3 @@ ```json

```shell
yarn global add @nabla/tnode
npm i -g @nabla/tnode
```

@@ -47,3 +47,3 @@

console.log("It just works!")
console.log("It just works!");
```

@@ -8,5 +8,11 @@ #!/usr/bin/env node

if (process.setSourceMapsEnabled) {
process.setSourceMapsEnabled(true);
} else {
console.warn("Use node >= 16.6 to get source maps support");
}
Module._extensions[".ts"] = (mod, filename) => {
mod._compile(
transform(fs.readFileSync(filename, { encoding: "utf-8" })),
transform(fs.readFileSync(filename, { encoding: "utf-8" }), filename),
filename

@@ -13,0 +19,0 @@ );

const { transformSync } = require("esbuild");
module.exports = (src) => {
module.exports = (src, sourcefile) => {
const { code, warnings } = transformSync(src, {

@@ -8,3 +8,4 @@ loader: "ts",

format: "cjs",
sourcemap: false,
sourcemap: "inline",
sourcefile,
});

@@ -11,0 +12,0 @@ for (const warning of warnings) console.log(warning.location, warning.text);

Sorry, the diff of this file is not supported yet

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