@nabla/tnode
Advanced tools
Comparing version 0.5.0 to 0.6.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3122
33
1
1
2
3
1
+ Added@esbuild/linux-loong64@0.14.54(transitive)
+ Addedesbuild@0.14.54(transitive)
+ Addedesbuild-android-64@0.14.54(transitive)
+ Addedesbuild-android-arm64@0.14.54(transitive)
+ Addedesbuild-darwin-64@0.14.54(transitive)
+ Addedesbuild-darwin-arm64@0.14.54(transitive)
+ Addedesbuild-freebsd-64@0.14.54(transitive)
+ Addedesbuild-freebsd-arm64@0.14.54(transitive)
+ Addedesbuild-linux-32@0.14.54(transitive)
+ Addedesbuild-linux-64@0.14.54(transitive)
+ Addedesbuild-linux-arm@0.14.54(transitive)
+ Addedesbuild-linux-arm64@0.14.54(transitive)
+ Addedesbuild-linux-mips64le@0.14.54(transitive)
+ Addedesbuild-linux-ppc64le@0.14.54(transitive)
+ Addedesbuild-linux-riscv64@0.14.54(transitive)
+ Addedesbuild-linux-s390x@0.14.54(transitive)
+ Addedesbuild-netbsd-64@0.14.54(transitive)
+ Addedesbuild-openbsd-64@0.14.54(transitive)
+ Addedesbuild-sunos-64@0.14.54(transitive)
+ Addedesbuild-windows-32@0.14.54(transitive)
+ Addedesbuild-windows-64@0.14.54(transitive)
+ Addedesbuild-windows-arm64@0.14.54(transitive)
- Removedesbuild@0.13.15(transitive)
- Removedesbuild-android-arm64@0.13.15(transitive)
- Removedesbuild-darwin-64@0.13.15(transitive)
- Removedesbuild-darwin-arm64@0.13.15(transitive)
- Removedesbuild-freebsd-64@0.13.15(transitive)
- Removedesbuild-freebsd-arm64@0.13.15(transitive)
- Removedesbuild-linux-32@0.13.15(transitive)
- Removedesbuild-linux-64@0.13.15(transitive)
- Removedesbuild-linux-arm@0.13.15(transitive)
- Removedesbuild-linux-arm64@0.13.15(transitive)
- Removedesbuild-linux-mips64le@0.13.15(transitive)
- Removedesbuild-linux-ppc64le@0.13.15(transitive)
- Removedesbuild-netbsd-64@0.13.15(transitive)
- Removedesbuild-openbsd-64@0.13.15(transitive)
- Removedesbuild-sunos-64@0.13.15(transitive)
- Removedesbuild-windows-32@0.13.15(transitive)
- Removedesbuild-windows-64@0.13.15(transitive)
- Removedesbuild-windows-arm64@0.13.15(transitive)
Updatedesbuild@^0.14.18